Llm Prices MCP Server

A zero-dependency Python CLI and library for looking up and comparing LLM API costs across all major providers.

Local serverstdioPython

What is the Llm Prices MCP server?

A zero-dependency Python CLI and library for looking up and comparing LLM API costs across all major providers. That is what the llm prices mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The tools it exposes

The server publishes 7 tools. What each one is for:

  • get_model_pricing — Get pricing for a specific model
  • calculate_api_cost — Calculate exact cost for input+output tokens
  • compare_models — Compare cost of a workload across multiple models
  • find_cheapest_models — Find the N cheapest models for your workload
  • list_providers — List all 24 providers with min pricing
  • search_llm_models — Search models by name or filter by provider
  • Sources — The Sources tool exposed by this server

Getting it running

The server ships on PyPI as git, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

How it compares

Among the AI and media services options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Llm Prices's toolset — get_model_pricing, calculate_api_cost, compare_models and 4 more — is a fair guide to whether it matches your workflow. It is maintained by benbencodes; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Llm Prices's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
get_model_pricingGet pricing for a specific model
calculate_api_costCalculate exact cost for input+output tokens
compare_modelsCompare cost of a workload across multiple models
find_cheapest_modelsFind the N cheapest models for your workload
list_providersList all 24 providers with min pricing
search_llm_modelsSearch models by name or filter by provider
SourcesThe Sources tool exposed by this server.

How to install the Llm Prices MCP server

Or for `uvx` users:
```json
{
  "mcpServers": {
    "llm-prices": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/benbencodes/llm-prices[mcp]", "llm-prices-mcp"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Llm Prices to get model pricing.
  • Use Llm Prices to calculate api cost.
  • Use Llm Prices to compare models.

Frequently asked questions

It connects Llm Prices to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (get_model_pricing, calculate_api_cost, compare_models, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Llm Prices directly.