API Meter
Per-customer API usage analytics: sign up, get ingest snippets, read usage by customer and endpoint.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
claude mcp add --transport http api-meter 'https://api-meter-lab.pages.dev/mcp'
{
"mcpServers": {
"api-meter": {
"type": "http",
"url": "https://api-meter-lab.pages.dev/mcp"
}
}
}
api-meter-mcpclaude mcp add api-meter -- npx -y api-meter-mcp@1.0.0
{
"mcpServers": {
"api-meter": {
"command": "npx",
"args": [
"-y",
"api-meter-mcp@1.0.0"
]
}
}
}
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
API 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: canada.site.ops@gmail.com
الأسئلة الشائعة
ما هو API Meter؟
Per-customer API usage analytics: sign up, get ingest snippets, read usage by customer and endpoint.
كيف أثبّت API Meter؟
يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http api-meter 'https://api-meter-lab.pages.dev/mcp'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج API Meter إلى مفتاح API؟
لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.
هل API Meter مفتوح المصدر؟
شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.
من يصون API Meter؟
ينشره Surface-ops. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.