LiteLLM registry를 사용하여 LLM 가격 조회, 비용 추정 및 모델 비교 기능을 제공합니다.
다른 이름 atriumn/tokencost-dev
- 스타
- 1
- Tools
- 2
- 다운로드, 30일
- —
- 최신 버전
- 0.1.3
- 마지막 커밋
- 2026년 11월 13일
- 라이선스
- MIT
tokencost MCP란?
tokencost은(는) MCP server입니다. LiteLLM registry를 사용하여 LLM 가격 조회, 비용 추정 및 모델 비교 기능을 제공합니다. 2개 도구를 제공합니다. 예: gpt-4o-mini, gpt-4o.
프로젝트 README에서 생성된 요약
tokencost MCP server 정보
tokencost-dev를 사용하면 개발자가 대규모 언어 모델의 비용을 추정하고 모델 사양을 비교할 수 있습니다. 이 server는 AI 클라이언트에 연결하여 다양한 모델의 가격 데이터, 컨텍스트 윈도우 제한 및 기능 상세 정보를 즉시 제공합니다. npx를 통해 로컬에서 작동하며, 작동을 위해 API key, 계정 또는 복잡한 설정 파일이 필요하지 않습니다.
사용자는 특정 모델을 조회하는 get_model_details나 특정 토큰 수에 대한 가격을 결정하는 calculate_estimate와 같은 도구를 통해 server와 상호작용할 수 있습니다. 시스템은 LiteLLM 커뮤니티 registry를 사용하여 데이터를 가져오며, 이 정보를 24시간 동안 로컬에 캐싱합니다. 최신 데이터가 즉시 필요한 경우 refresh_prices 도구를 사용하여 캐시를 우회할 수 있습니다.
이 도구는 Claude Code 또는 Cursor를 사용하는 사용자에게 특히 유용합니다. 퍼지 매칭(fuzzy matching)을 지원하므로 정확한 기술적 문자열 대신 자연스러운 이름을 사용하여 모델에 대해 질문할 수 있습니다. compare_models를 사용하면 특정 제공업체나 모드 중에서 가장 비용 효율적인 옵션을 식별할 수 있습니다.
활용 사례
- 1특정 토큰 비용 계산모델의 특정 입력 및 출력 토큰 수에 대한 정확한 가격을 결정합니다.
- 2모델 가격 비교특정 제공업체 또는 카테고리 내에서 가장 경제적인 모델을 찾습니다.
- 3모델 사양 조회모델의 컨텍스트 윈도우 및 지원 기능에 관한 상세 정보를 가져옵니다.
- 4빠른 가격 조회자연어 질문을 통해 특정 모델의 비용을 확인합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
tokencost MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 tokencost MCP 설치
$ claude mcp add tokencost-dev -- npx -y tokencost-devCursor에 tokencost MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"tokencost-dev": {
"command": "npx",
"args": [
"-y",
"tokencost-dev"
]
}
}
}VS Code에 tokencost MCP 설치
.vscode/mcp.json
{
"servers": {
"tokencost-dev": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"tokencost-dev"
]
}
}
}VS Code CLI에 tokencost MCP 설치
$ code --add-mcp '{"name":"tokencost-dev","type":"stdio","command":"npx","args":["-y","tokencost-dev"]}'Claude Desktop에 tokencost MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"tokencost-dev": {
"command": "npx",
"args": [
"-y",
"tokencost-dev"
]
}
}
}Codex에 tokencost MCP 설치
$ codex mcp add tokencost-dev -- npx -y tokencost-devCodex config.toml에 tokencost MCP 설치
~/.codex/config.toml
[mcp_servers.tokencost-dev] command = "npx" args = ["-y", "tokencost-dev"]
Gemini CLI에 tokencost MCP 설치
$ gemini mcp add -s user tokencost-dev npx -- -y tokencost-devGemini settings.json에 tokencost MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"tokencost-dev": {
"command": "npx",
"args": [
"-y",
"tokencost-dev"
]
}
}
}tokencost MCP 도구 2
README에서 감지됨gpt-4o-minigpt-4o
| gpt-4o-mini | — | |
| gpt-4o | — |
자동 검사
2026년 11월 13일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능atriumn/tokencost-dev is public and reachablegithub.com/atriumn/tokencost-dev ↗통과
- 패키지가 이 저장소를 소스로 명시tokencost-dev names atriumn/tokencost-dev as sourcenpmjs.com/package/tokencost-dev ↗통과
- 빌드 출처(Sigstore 증명)Sigstore attestation for tokencost-devnpmjs.com/package/tokencost-dev/v/0.1.3#provenance ↗통과
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-11-03github.com/atriumn/tokencost-dev ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음No popular package one edit away from tokencost-dev통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음100 resolved dependencies checked; no critical advisoryosv.dev ↗통과
- 모델에 대한 숨겨진 지침 없음2 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨No tool named like delete, drop or exec통과
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기Install in 30 seconds
Claude Code:
claude mcp add tokencost-dev -- npx -y tokencost-dev
Then ask: "How much would 1M input tokens cost on claude-sonnet-4-5?"
Cursor (.cursor/mcp.json):
{
"mcpServers": {
"tokencost-dev": {
"command": "npx",
"args": ["-y", "tokencost-dev"]
}
}
}
No API keys. No accounts. No configuration files. Pricing data is fetched from the LiteLLM community registry and cached locally for 24 hours.
Tools
get_model_details
Look up pricing, context window, and capabilities for any model. Fuzzy matching means "sonnet 4.5" works just as well as "claude-sonnet-4-5-20250514".
> "What are Claude Sonnet 4.5's pricing and capabilities?"
Model: claude-sonnet-4-5
Provider: anthropic | Mode: chat
Pricing (per 1M tokens):
Input: $3.00
Output: $15.00
Context Window:
Max Input: 200K
Max Output: 8K
Capabilities: vision, function_calling, parallel_function_calling
calculate_estimate
Estimate cost for a given number of input and output tokens.
> "How much will 1000 input + 500 output tokens cost on Claude Sonnet 4.5?"
Cost Estimate for claude-sonnet-4-5
Input: 1K tokens × $3.00/1M = $0.003000
Output: 500 tokens × $15.00/1M = $0.007500
─────────────────────────────
Total: $0.0105
compare_models
Find the most cost-effective models matching your requirements.
> "What are the cheapest OpenAI chat models?"
Top 2 most cost-effective models (provider: openai) (mode: chat):
1. gpt-4o-mini
Provider: openai | Mode: chat
Input: $0.15/1M | Output: $0.60/1M
Context: 128K in / 16K out
2. gpt-4o
Provider: openai | Mode: chat
Input: $5.00/1M | Output: $15.00/1M
Context: 128K in / 16K out
refresh_prices
Force re-fetch pricing data from the LiteLLM registry (cache is refreshed automatically every 24h).
Docs
Full documentation at tokencost.dev
License
MIT
tokencost MCP 질문
tokencost MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add tokencost-dev -- npx -y tokencost-dev를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
tokencost MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
tokencost MCP는 어떤 도구를 제공하나요?
2개 도구를 제공합니다. 예: gpt-4o-mini, gpt-4o.
tokencost를 사용하려면 API key가 필요한가요?
아니요, 이 MCP server는 API key, 계정 또는 설정 파일이 필요하지 않습니다.