Skip to main content
Glama
README.md
# API Meter MCP server

Remote MCP server for [API Meter](https://api-meter-lab.pages.dev): 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

```json
{ "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: canada.site.ops@gmail.com