Official public integration libraries for Meter, an MCP prepaid-credit and usage-billing platform.
This repository intentionally contains only public client libraries, protocol types, adapters, examples, and the public OpenAPI contract. Meter's billing engine, ledger, Stripe and payout processing, MCP Gateway, dashboards, database schema, and operational infrastructure are maintained separately and are not part of this repository.
| Package | Purpose |
|---|---|
@meter-mcp/sdk |
Typed server-side API client and webhook verification |
@meter-mcp/mcp |
paidTool and registerPaidTool MCP billing wrappers |
@meter-mcp/adapters |
Fetch, Next.js, Hono, and Express hosted-session adapters |
@meter-mcp/cli |
meter command-line interface for services, keys, customers, usage, and webhooks |
npm install @meter-mcp/sdk
npx @meter-mcp/cli init my-serverAll packages support ESM and CommonJS on Node.js 20, 22, and 24. Service API keys must only be used in trusted server-side code.
npm install
npm run verifyThe verification gate builds and tests every package, checks ESM and CommonJS type resolution, installs the exact npm tarballs into clean consumers, compiles the examples, validates the OpenAPI document, scans dependencies, and lints package metadata.
See the API reference, CLI reference, examples, and release runbook.
Report vulnerabilities according to SECURITY.md. Do not place service keys or webhook secrets in browser bundles, examples, issues, or logs.
Source code is available under the MIT License. The license does not grant rights to use Meter names or marks; see TRADEMARKS.md.