Skip to main content

llmledger-mcp

Ask Claude (or Cursor, ChatGPT desktop, any app that speaks MCP) which AI model to use and what it costs, in the middle of your work. The answers come from llmledger: LiteLLM's public price catalogue, Arena's ratings by task, and every price change since 2023 with how likely a price is to change next. Rebuilt every day.

Install

Needs uv. Nothing to host and no keys: the plug-in runs on your computer and reads the day's data from the llmledger page, cached for a day, with a bundled copy for offline use.

Claude Code:

claude mcp add llmledger -- uvx llmledger-mcp

Claude Desktop (Settings, Developer, Edit config) or Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "llmledger": { "command": "uvx", "args": ["llmledger-mcp"] }
  }
}

A LiteLLM proxy can offer it to a whole team through its MCP gateway, as a stdio server with the same command.

The same answers also come as an Agent Skill, which takes far less of an agent's context until it is used and needs only Python: skills/llmledger. In Claude Code: /plugin marketplace add pouriaetab/llmledger, then /plugin install llmledger@llmledger.

What you can ask

Tool For example
suggest_for_project "Which model and effort for this project?" with the starting prompt; pay can be claude or chatgpt to compare within a plan
compare_models "Opus 5.5 or Fable 5.1 for coding, and when is Fable cheaper?"
estimate_cost "What do 2,000 calls a day of 10K tokens in and 1K out cost on these three?", and with cached_tokens and cache_write_tokens, how much the cache saves
find_models "The best rated coding models under $10 per 1M answer tokens that read images"
price_history "Has Claude Opus 5.5's price changed, and how likely is it to change soon?"; with date, "What did it cost on 1 March?" Each change links the LiteLLM change behind it
not_yet_priced "Which new models on Arena have no price yet, and how long does a price usually take?"
estimate_time "How long will 5,000 calls of 2K tokens in and 600 out take on Opus 5.5 through the API, 4 at a time?" Learned from your own runs
log_run "I timed this call: 2,100 in, 640 out, 9.2 seconds", or a promptfoo results file; kept on your computer only
forecast_job "Here is a promptfoo run of 20 of my 5,000 tests: what will the whole job cost and take on each model, and which should I pick?" Reads the file only

Plus a resource, llmledger://snapshot (data dates and sources), and a prompt, pick_a_model.

Good to know

  • Costs and ratings are estimates. Arena ratings say which answers people preferred, not what will work best for you. Plan use (Claude, ChatGPT) assumes a plan runs down in step with API prices, because plans do not publish per-model limits. Not financial or procurement advice.
  • Effort levels come from LiteLLM; the suggested level is a rule of thumb. No open source measures tokens per task at each effort level yet.
  • Many price changes in the catalogue fix a wrong entry rather than change a price: in a labelled sample, about 6 in 10 first price changes. price_history says what each flag on a change means (a likely correction, a unit fix, a change undone) and how often such changes were corrections.
  • Every answer carries the date of its data. When the data is 3 or more days old, the answer says so.
  • Times come only from your own runs (and the sample's own timed calls for forecast_job), always as a usual time and a slow day. How often a model was right is the share of a sample's checks it passed, with a 95% range; with 20 tests the range is wide, and the answer says when two models cannot be told apart.
  • Set LLMLEDGER_DATA to a local data.json or another address to use your own copy.

Data and licences

Prices: LiteLLM's model_prices_and_context_window.json (MIT). Ratings: the Arena leaderboard (CC BY 4.0). Price history and outlook: llmledger (MIT). Built with FastMCP (Apache-2.0). Independent; not affiliated with BerriAI, LiteLLM or Arena.

Metadata

Release files for llmledger-mcp 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llmledger-mcp 0.1.6
File Size Uploaded Provenance
llmledger_mcp-0.1.6.tar.gz 364.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llmledger-mcp 0.1.6
File Interpreter ABI Platform
llmledger_mcp-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 720.6 kB

Release files / llmledger_mcp-0.1.6.tar.gz

Download URL llmledger_mcp-0.1.6.tar.gz
Size 364.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f3954377df667bd275a32836b05dc4307b6134d356b51d7af4383289130cfdf8
BLAKE2b-256 checksum
How to use checksums
c7379f3e81fb14509e5818d42d37eb61c2ad51d86b5f7980aceea76ee5485f60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Release files / llmledger_mcp-0.1.6-py3-none-any.whl

Download URL llmledger_mcp-0.1.6-py3-none-any.whl
Size 356.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a099e4e78317cc3186127799a3edcff6328f2686090a46f7e0f278ff53ba84fc
BLAKE2b-256 checksum
How to use checksums
d607b186d9b65b736059511cc043f7e64cb4f3d9d2c89d0ca4105088e4d846b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Security for llmledger-mcp 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for llmledger_mcp-0.1.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page