# Llmledger

> Llmledger is an open-source MCP server for ai models and llm tooling. Compare AI model prices and ratings, estimate costs and track price changes from chat. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux
- **Repository:** https://github.com/pouriaetab/llmledger/tree/HEAD/mcp
- **MCP Registry name:** io.github.pouriaetab/llmledger
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-23

## About

Llmledger answers the question of which model to use and what it will cost without leaving your assistant. It draws on LiteLLM's public price catalogue, Arena ratings by task and a record of price changes since 2023, rebuilt daily. The author notes that many logged price changes were really corrections to wrong catalogue entries, and the price history tool flags those.

The server runs on your own machine through uvx with no keys and nothing to host. It caches the day's data and bundles a copy for offline use; the only network call is the daily download of the data file. Prompts and result files you hand to it are read for numbers and names only, and timed runs stay local.

Beyond lookups it can forecast a promptfoo job, price a ccusage export on other models, and weigh buying local hardware against cloud calls. It is independent of LiteLLM, BerriAI and Arena.

## Features

- **Model comparison:** Compares models on price and Arena rating for a given kind of work.
- **Cost estimates:** Estimates spend for a call volume, including cache read and write savings.
- **Price history:** Shows past price changes, their likelihood to change again and likely corrections.
- **Usage repricing:** Prices a ccusage or codeburn export against other models.
- **Job forecasting:** Predicts cost and duration of a full promptfoo job from a small sample.
- **Local or cloud:** Weighs buying a computer for a local model against paying for API calls.
- **Runs locally:** Needs uv, no keys and no hosting; data is cached for a day.

## Good for

- Pick a model and effort level for a new project
- Estimate monthly API cost for a call volume
- Check whether a model's price recently changed
- Find the cheapest well-rated vision model
- Decide between running a model at home or in the cloud

## Install

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

```sh
claude mcp add llmledger -- uvx llmledger-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": {
    "llmledger": {
      "command": "uvx",
      "args": [
        "llmledger-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

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

Use .cursor/mcp.json in a project to share it with the project.

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

```json
{
  "mcpServers": {
    "llmledger": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "llmledger-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

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

```sh
codex mcp add llmledger -- uvx llmledger-mcp
```

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

```toml
[mcp_servers.llmledger]
command = "uvx"
args = ["llmledger-mcp"]
```

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

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

Or run: gemini mcp add -s user llmledger uvx -- llmledger-mcp

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

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

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

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

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": {
    "llmledger": {
      "command": "uvx",
      "args": [
        "llmledger-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "llmledger": {
      "command": "uvx",
      "args": [
        "llmledger-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": {
    "llmledger": {
      "command": "uvx",
      "args": [
        "llmledger-mcp"
      ]
    }
  }
}
```

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

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

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

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

## Tools

From the tool list in its README, going by the names, 1 of 11 tools changes data; 9 names don't say. From the server's own tool labels and tool names; not verified by us.

- `suggest_for_project`: Suggest a model and effort level for a project
- `compare_models`: Compare models for a kind of work
- `estimate_cost`: Estimate cost for a call volume, with cache savings
- `find_models` (name suggests: reads): Find models by rating, price and capability
- `price_history`: Show price changes and the likelihood of change
- `not_yet_priced`: List new Arena models with no price yet
- `estimate_time`: Estimate run time from your own logged runs
- `log_run` (name suggests: changes): Log a timed run or a promptfoo results file
- `forecast_job`: Forecast cost and time of a whole job from a sample run
- `local_or_cloud`: Compare buying local hardware with paying for cloud calls
- `price_my_usage`: Price a usage export on other models

## FAQ

### Does Llmledger need API keys?

No. It runs on your computer with nothing to host and no keys.

### Where does the pricing data come from?

LiteLLM's price catalogue, Arena ratings, EIA electricity data and llmledger's own price history.

### Is the data live?

It is rebuilt daily, and answers carry the data date and warn when it is three or more days old.

### Is Llmledger financial advice?

No. The README says costs and ratings are estimates and not financial or procurement advice.

### How do I add Llmledger to Claude Code?

Run this command in your terminal: claude mcp add llmledger -- uvx llmledger-mcp

### What are the best alternatives to Llmledger?

The closest alternatives to Llmledger are headroom, omniget, next-ai-draw-io, mcp-for-blender and Claude Code Ultimate Guide.

## 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.
- [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.
- [AiSOC](https://ai-powered.com/mcp/aisoc): AiSOC is an open-source MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/llmledger
