ai-token-counter

Cloudflare Workers MCP server: ai-token-counter

사용해야 할까요

품질 및 안전성

A
설명 품질
100%
스키마 완전성
80%
이름 품질
95%
오염 위험
100%
권한 일치
100%
프로토콜 준수
100%

도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.

컨텍스트 비용

~421토큰 (도구 정의)
~757 B일반적인 응답 크기
최소한의 주의 영향 (128k 컨텍스트의 0.33%)

이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.

설치

원클릭 설치

`claude_desktop_config.json` 파일에 다음을 추가하세요:

{
  "mcpServers": {
    "ai-token-counter": {
      "url": "https://api.lazy-mac.com/ai-token-counter/mcp"
    }
  }
}

원격 엔드포인트

https://api.lazy-mac.com/ai-token-counter/mcpstreamable-http

할 수 있는 일

도구 목록

도구 (4)

🟢 읽기 전용🟡 쓰기🔴 삭제⚪ 알 수 없음
🟢count_tokens(model, text, messages)

Count tokens for a text string or chat messages array for any supported AI model (GPT-4o, Claude, Gemini, Mistral, Llama).

입력 스키마

{
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "description": "Model ID, e.g. gpt-4o, claude-sonnet-4. Defaults to gpt-4o."
    },
    "text": {
      "type": "string",
      "description": "Plain text to count tokens for."
    },
    "messages": {
      "type": "array",
      "description": "Chat messages array in OpenAI/Anthropic format.",
      "items": {
        "type": "object"
      }
    }
  }
}
⚪estimate_cost(model, input_tokens, output_tokens, text, requests_per_day)

Estimate the cost of an AI API call given model and token counts or text. Returns input/output/total cost and optional monthly projection.

입력 스키마

{
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "description": "Model ID, e.g. gpt-4o, claude-opus-4, gemini-2.0-flash."
    },
    "input_tokens": {
      "type": "integer",
      "description": "Number of input tokens."
    },
    "output_tokens": {
      "type": "integer",
      "description": "Number of output tokens."
    },
    "text": {
      "type": "string",
      "description": "Text to tokenize for input (if input_tokens not given)."
    },
    "requests_per_day": {
      "type": "number",
      "description": "If given, adds daily/monthly/yearly cost projection."
    }
  },
  "required": [
    "model"
  ]
}
🟢get_model_pricing(model)

Get input/output pricing per 1M tokens for a specific AI model.

입력 스키마

{
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "description": "Model ID, e.g. gpt-4o, claude-haiku-3, llama-3-70b."
    }
  },
  "required": [
    "model"
  ]
}
🟢list_models

List all supported AI models with their pricing and context windows.

입력 스키마

{
  "type": "object",
  "properties": {}
}

커뮤니티

이 서버 평가하기

증거

최근 관측

검증됨버전이 기록되지 않음도구 4개
검증됨버전이 기록되지 않음도구 4개
검증됨버전이 기록되지 않음도구 4개