llm-cost
@comparedge
About llm-cost
MCP server: token cost math for LLM API calls, 69 models across 17 providers, prices verified by ComparEdge
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"llm-cost": {
"command": "npx",
"args": [
"-y",
"@comparedge/llm-cost-mcp@latest"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is llm-cost?
llm-cost is a zero-dependency MCP server that gives assistants current per-million-token pricing for 69 LLM models across 17 providers and does cost arithmetic locally: per call, per batch, per month. Rates are verified and date-stamped, so estimates stop relying on stale training data.
How to use llm-cost?
Add npx -y @comparedge/llm-cost-mcp@latest to your MCP client config (Claude Desktop, Cursor, VS Code). Restart the client and six tools appear. No API key, no account.
Key features of llm-cost
- Dollar estimates for a single call or thousands of identical calls.
- Same-call comparison across up to 6 models, cheapest first.
- Monthly budget projection from daily volume.
- Cheapest-model ranking with a context-window floor.
- Batch API and cached-input discounts where the provider offers them.
- Fuzzy model resolution: claude-opus-4-8, Opus 4.8 and anthropic/opus land on the same model.
Use cases of llm-cost
- "Price Claude Opus 4.8 on a 25k-token prompt with a 1k answer, run 5,000 times."
- "Compare that call on Opus, Sonnet, GPT and Gemini."
- "What does 10,000 support-bot conversations a day cost per month?"
- "Cheapest model with at least 200k context?"
More Data & Analytics MCP servers
Bright Data MCP
brightdata-comA powerful Model Context Protocol (MCP) server that provides an all-in-one solution for public web access.
HubSpot MCP Server
peakmojoA Model Context Protocol (MCP) server that enables AI assistants to interact with HubSpot CRM data, providing built-in vector storage and caching mechanisms help overcome HubSpot API limitations while improving response times.
Bright Data MCP
luminati-ioA powerful Model Context Protocol (MCP) server that provides an all-in-one solution for public web access.
ArXiv MCP Server
blazickjpA Model Context Protocol server for searching and analyzing arXiv papers
Healthcare MCP Server
CicatriizA Model Context Protocol (MCP) server providing AI assistants with access to healthcare data and medical information tools, including FDA drug info, PubMed, medRxiv, NCBI Bookshelf, clinical trials, ICD-10, DICOM metadata, and a medical calculator.
Comments