API Meter

Per-customer API usage analytics: sign up, get ingest snippets, read usage by customer and endpoint.

使うべきか

品質と安全性

A
説明の品質
100%
スキーマの完全性
89%
命名の品質
100%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~599トークン数(ツール定義)
~953 B一般的なレスポンスサイズ
注意への影響は最小限(128k コンテキストの 0.47%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

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

リモートエンドポイント

https://api-meter-lab.pages.dev/mcpstreamable-http

できること

ツール一覧

ツール(4)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
🟡create_account(email, api_name, origin_url)

Sign up an API for API Meter (free to 250K requests/month). Returns the slug, ingest key, dashboard key and proxy URL. Keys are shown once: store them. Limited to 5 signups per hour per network.

入力スキーマ

{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "description": "Contact email for the API owner (stored hashed)"
    },
    "api_name": {
      "type": "string",
      "description": "API name, 2-60 chars"
    },
    "origin_url": {
      "type": "string",
      "description": "Public https origin of the API, e.g. https://api.example.com"
    }
  },
  "required": [
    "email",
    "api_name",
    "origin_url"
  ]
}
🟢get_ingest_snippet(framework, slug)

Copy-paste server code that reports each request (method, route, status, latency, customer, plan) to API Meter. Batched, fail-open, never blocks your API.

入力スキーマ

{
  "type": "object",
  "properties": {
    "framework": {
      "type": "string",
      "enum": [
        "express",
        "hono",
        "fastapi",
        "flask",
        "django",
        "go",
        "curl"
      ]
    },
    "slug": {
      "type": "string",
      "description": "Optional: your slug, filled into the snippet"
    }
  },
  "required": [
    "framework"
  ]
}
🟢get_usage(slug, dashboard_key, month, group_by, limit)

Monthly (UTC) usage for one API, grouped by customer, endpoint or plan. Includes an agent bucket: requests whose plan label ends in '-agent' (AI agent / bot traffic, counted and billed like any request).

入力スキーマ

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "dashboard_key": {
      "type": "string",
      "description": "msd_... key from signup"
    },
    "month": {
      "type": "string",
      "description": "YYYY-MM, default current UTC month"
    },
    "group_by": {
      "type": "string",
      "enum": [
        "customer",
        "endpoint",
        "plan"
      ],
      "default": "customer"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200,
      "default": 25
    }
  },
  "required": [
    "slug",
    "dashboard_key"
  ]
}
🟢export_usage(slug, dashboard_key, month, view, format)

Billing-ready monthly usage rows (same as /api/export): view=detail (customer x plan x method x endpoint) or view=customers. Returns JSON rows, or CSV text with format=csv.

入力スキーマ

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "dashboard_key": {
      "type": "string"
    },
    "month": {
      "type": "string"
    },
    "view": {
      "type": "string",
      "enum": [
        "detail",
        "customers"
      ],
      "default": "detail"
    },
    "format": {
      "type": "string",
      "enum": [
        "json",
        "csv"
      ],
      "default": "json"
    }
  },
  "required": [
    "slug",
    "dashboard_key"
  ]
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 4 件