LLM Pricing
Verified LLM prices across 30+ providers, cost-and-quality routing and spend tracking
LLM Pricing is an open-source MCP server for ai models and llm tooling. It can run locally on your machine or as a hosted remote server.
- Pricing
- Open source
- Platforms
- API, CLI, Self-hosted
- Runs
- Locally or Remotely
- Version
- 1.79.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add --transport http llm-pricing-mcp-server https://llm-pricing-api.fly.dev/mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"llm-pricing-mcp-server": {
"type": "http",
"url": "https://llm-pricing-api.fly.dev/mcp"
}
}
}In Customize → Connectors → Add → Add custom connector
https://llm-pricing-api.fly.dev/mcpPaste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"llm-pricing-mcp-server": {
"url": "https://llm-pricing-api.fly.dev/mcp"
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"llm-pricing-mcp-server": {
"type": "http",
"url": "https://llm-pricing-api.fly.dev/mcp"
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
In chatgpt.com → Plugins → + → Add custom MCP server
https://llm-pricing-api.fly.dev/mcpPaste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.
Add with the CLI
Run in a terminal
codex mcp add llm-pricing-mcp-server --url https://llm-pricing-api.fly.dev/mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.llm-pricing-mcp-server]
url = "https://llm-pricing-api.fly.dev/mcp"Add to Grok Bot desktop app → Connect apps → Add a custom connector
https://llm-pricing-api.fly.dev/mcpEnter a Name (for example "LLM Pricing"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.
Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"llm-pricing-mcp-server": {
"type": "http",
"url": "https://llm-pricing-api.fly.dev/mcp"
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "llm-pricing-mcp-server": { "httpUrl": "https://llm-pricing-api.fly.dev/mcp" } } }Or run: gemini mcp add -s user --transport http llm-pricing-mcp-server https://llm-pricing-api.fly.dev/mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "llm-pricing-mcp-server": { "serverUrl": "https://llm-pricing-api.fly.dev/mcp" } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "llm-pricing-mcp-server": { "url": "https://llm-pricing-api.fly.dev/mcp", "transport": "http" } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "llm-pricing-mcp-server": { "type": "streamableHttp", "url": "https://llm-pricing-api.fly.dev/mcp" } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "llm-pricing-mcp-server": { "url": "https://llm-pricing-api.fly.dev/mcp" } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "llm-pricing-mcp-server": { "url": "https://llm-pricing-api.fly.dev/mcp" } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "llm-pricing-mcp-server": { "url": "https://llm-pricing-api.fly.dev/mcp" } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "llm-pricing-mcp-server": { "url": "https://llm-pricing-api.fly.dev/mcp" } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
LLM_PRICING_MCP_URLUpstream MCP endpoint to bridge to. Defaults to the hosted server; set to point at a self-hosted instance.LLM_PRICING_MCP_TIMEOUT_MSPer-request timeout to the upstream server, in milliseconds.LLM_PRICING_API_KEYOptional service API key (POST /billing/signup), sent as x-api-key. Only the usage and budget tools need it; they then act on your own org.
About LLM Pricing
Prices here are checked against a live external registry, and any curated price that has drifted more than 5% is withheld rather than served silently. A data-quality tool reports a trust score with counts of drift-withheld, never-priced and stale models, and every price notes whether its source is the provider or the registry.
Beyond quotes, it routes. It picks a model by cost and quality for a task and can restrict answers to models the calling client can run. A dispatch gateway runs the chosen model on your own provider keys, stored encrypted with AES-256-GCM, and returns a receipt with the model, reason, cost and savings. Dispatch is text-only and rejects tools, n above 1 and images.
It also records real usage, fires budget alerts that can hard-stop dispatch, and sends price-change webhooks protected by an SSRF guard. Estimates support 13 currencies. A support assistant answers only from the published FAQ and plan catalogue, escalating the rest. The README mentions 32 tools and also lists Anyscale as retired.
Tools this server provides (12)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 4 of 12 tools read data; 8 names don't say.
From the server's own tool labels and tool names; not verified by us.
- get_all_pricingName suggests: reads
- Returns pricing across providers.
- estimate_cost
- Estimates the cost of a request.
- compare_costs
- Compares costs between models.
- recommend_model
- Picks a model by cost and quality for a task.
- optimize_workload
- Optimizes a workload across models.
- check_price_driftName suggests: reads
- Reports per-model price drift.
- get_data_qualityName suggests: reads
- Returns a trust score for the data.
- get_pricing_historyName suggests: reads
- Returns price history.
- register_price_alert
- Registers a webhook for price changes.
- record_usage
- Records actual spend.
- register_budget_alert
- Sets a spend threshold alert.
- dispatch
- Runs the best eligible model on your keys.
What it does
- Drift-checked prices
- Prices that moved over 5% are withheld.
- Cost and quality routing
- Recommends a model for a task and client.
- Dispatch gateway
- Runs the best eligible model with a receipt.
- Usage and budgets
- Records spend and alerts at thresholds.
- Price alerts
- Webhooks on price changes with a self-managed token.
- Local currency
- Pricing and estimates in 13 currencies.
Good for
- Compare the cost of models before choosing one
- Route a workload to the cheapest model above a quality floor
- Track actual LLM spend with budget alerts
- Get notified when a provider changes prices
Pricing
Open source
MIT licence; hosted service plans exist, prices not published
LLM Pricing FAQ
How many tools?
32 MCP tools, plus a REST API and browser UIs.
Is a key needed?
The hosted server works without one. An optional service key is needed only for usage and budget tools.
Can I self-host?
Yes, the repo can run locally with Python 3.11 and uvicorn.
What licence?
The README shows an MIT badge.
Is LLM Pricing free?
Yes. LLM Pricing is open source, so you can use and self-host it for free.
How do I add LLM Pricing to Claude Code?
Run this command in your terminal: claude mcp add --transport http llm-pricing-mcp-server https://llm-pricing-api.fly.dev/mcp
What are the best alternatives to LLM Pricing?
The closest alternatives to LLM Pricing are headroom, omniget, Agent-Native Analytics, next-ai-draw-io and mcp-for-blender.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.



