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개