Overview

mcp-metering

What it includes#

  • Deduplication by idempotency key
  • A commit boundary, so events land before they are reported
  • Partial and failed handling
  • A configurable billing policy

It is built for MCP servers already in production: add it as middleware around what you shipped, no rewrite required.

What it does not include#

Auth, OAuth, API keys, quota management, rate limiting, Stripe integration and the dashboard stay in the full boilerplate.

Why it is free#

It is proof of quality, not a cut-down teaser. Install it, read the code, and decide whether the rest of the engineering is worth paying for. The generated first draft was never the hard part. The decisions and the tests that pin them down are.