API Meter

Per-customer API usage analytics for small B2B APIs. Counts requests by customer, endpoint and plan; MCP tools create_account, get_ingest_snippet, get_usage, export_usage. Free tier 250K requests/month. Remote endpoint (Streamable HTTP): https://api-meter-lab.pages.dev/mcp

Servidor MCP alojado

npx add-mcp 'https://api-meter-lab.pages.dev/mcp'

Se instala en Claude Code, Codex, Cursor y más

Documentación

API Meter MCP server

API Meter MCP server

Remote MCP server for API Meter: per-customer API usage analytics by Canada Site Ops.

Tools

ToolAuthWhat it does
create_accountnone (5 signups/hour per network)Sign up an API: returns slug, ingest key, dashboard key (shown once)
get_ingest_snippetnoneServer code for express, hono, fastapi, flask, django, go or curl
get_usagedashboard key (msd_...)Monthly usage by customer, endpoint or plan, with an agent_requests bucket (plan labels ending in -agent)
export_usagedashboard keyBilling-ready rows (detail or customers), JSON or CSV

AI agent traffic is normal usage: counted and billed like any request.

Client config

{ "mcpServers": { "api-meter": { "url": "https://api-meter-lab.pages.dev/mcp" } } }

Pass the dashboard key only to agents you trust. Free to 250K requests/month; Indie CA$19/month for 2M (beta, Stripe test mode).

npm (stdio bridge + ingest helper)

npx -y api-meter-mcp runs a stdio bridge to the hosted server for clients that only launch local servers; the same package exports createMeter() (batched, fail-open ingest + Express middleware). Source in npm/, package https://www.npmjs.com/package/api-meter-mcp

mcp.js is the Cloudflare Pages Function that serves the endpoint. License: MIT. Contact: canada.site.ops@gmail.com