About API Meter
API Meter is a remote MCP server for per-customer API usage analytics. It supports account setup, provides instrumentation snippets, and reports or exports usage by customer, endpoint, or plan.
Key features
- 01Create an API Meter account
- 02Get ingestion code snippets
- 03View monthly usage breakdowns
- 04Export billing-ready usage data
Use cases
- 01Set up API usage tracking
- 02Add ingestion code to a service
- 03Review usage by customer or endpoint
- 04Export usage records for billing
MCP support
Exposes account creation, ingestion-snippet retrieval, usage reporting, and export tools through a remote Streamable HTTP MCP endpoint. Usage queries and exports require a dashboard key.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://api-meter-lab.pages.dev/mcpclaude mcp add --transport http surface-ops-api-meter https://api-meter-lab.pages.dev/mcp{"mcpServers":{"surface-ops-api-meter":{"type":"http","url":"https://api-meter-lab.pages.dev/mcp"}}}Open in Cursor{"servers":{"surface-ops-api-meter":{"type":"http","url":"https://api-meter-lab.pages.dev/mcp"}}}Open in VS Code{"mcpServers":{"surface-ops-api-meter":{"type":"http","url":"https://api-meter-lab.pages.dev/mcp"}}}{"mcpServers":{"surface-ops-api-meter":{"serverUrl":"https://api-meter-lab.pages.dev/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
Details
From the project READMEAPI Meter MCP server
Remote MCP server for API Meter: per-customer API usage analytics by Canada Site Ops.
- URL:
https://api-meter-lab.pages.dev/mcp(Streamable HTTP, JSON responses, stateless; no session or OAuth) - Metadata: https://api-meter-lab.pages.dev/.well-known/mcp
Tools
| Tool | Auth | What it does |
|---|---|---|
create_account | none (5 signups/hour per network) | Sign up an API: returns slug, ingest key, dashboard key (shown once) |
get_ingest_snippet | none | Server code for express, hono, fastapi, flask, django, go or curl |
get_usage | dashboard key (msd_...) | Monthly usage by customer, endpoint or plan, with an agent_requests bucket (plan labels ending in -agent) |
export_usage | dashboard key | Billing-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).
mcp.js is the Cloudflare Pages Function that serves the endpoint. License: MIT. Contact: [email protected]
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.