# LLM Pricing

> LLM Pricing is an open-source MCP server for ai models and llm tooling. Verified LLM prices across 30+ providers, cost-and-quality routing and spend tracking. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, CLI, Self-hosted, Web
- **Repository:** https://github.com/skakumanu/llm-pricing-mcp-server
- **MCP Registry name:** io.github.skakumanu/llm-pricing-mcp-server
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http llm-pricing-mcp-server https://llm-pricing-api.fly.dev/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "llm-pricing-mcp-server": {
      "type": "http",
      "url": "https://llm-pricing-api.fly.dev/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://llm-pricing-api.fly.dev/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://llm-pricing-api.fly.dev/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add llm-pricing-mcp-server --url https://llm-pricing-api.fly.dev/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.llm-pricing-mcp-server]
url = "https://llm-pricing-api.fly.dev/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```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 (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "llm-pricing-mcp-server": {
      "url": "https://llm-pricing-api.fly.dev/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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 (~/.kiro/settings/mcp.json)

```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.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://llm-pricing-api.fly.dev/mcp
```

Enter a Name (for example "LLM Pricing"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "llm-pricing-mcp-server": {
      "type": "http",
      "url": "https://llm-pricing-api.fly.dev/mcp"
    }
  }
}
```

## Tools

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_pricing` (name 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_drift` (name suggests: reads): Reports per-model price drift.
- `get_data_quality` (name suggests: reads): Returns a trust score for the data.
- `get_pricing_history` (name 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.

## 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.

## Alternatives

- [headroom](https://ai-powered.com/mcp/headroom-3): headroom is an open-source MCP server for ai models and llm tooling.
- [omniget](https://ai-powered.com/mcp/omniget): omniget is an open-source MCP server for ai models and llm tooling.
- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [next-ai-draw-io](https://ai-powered.com/mcp/next-ai-draw-io-2): next-ai-draw-io is an open-source MCP server for ai models and llm tooling.
- [mcp-for-blender](https://ai-powered.com/mcp/mcp-for-blender): mcp-for-blender is an open-source MCP server for design and media.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [tyk](https://ai-powered.com/mcp/tyk): tyk is an open-source MCP server for developer tools.
- [unity-mcp](https://ai-powered.com/mcp/unity-mcp-2): unity-mcp is an open-source MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/llm-pricing
