Skip to content
MCP server

mcpcost

Look up daily health and token cost of MCP registry servers, or measure your own config

Install
Pricing
Open source
Platforms
Web, CLI, API
Runs
Remotely
Version
0.3.4
Listing updated
2 days ago

About mcpcost

mcpcost is an open-source MCP server for developer tools. It runs as a hosted remote server, so there is nothing to install locally.

The live board probes every remote server in the official MCP registry each day, 62,493 of them at the last probe shown. For each it records whether initialize and tools/list answer and how fast, the negotiated protocol version, whether auth is needed and by what route (OAuth with dynamic registration, a publisher-issued client id, or a key), whether it returns HTTP 402 for payment, and how many tools it has and how many tokens their definitions cost.

The token figure matters because every connected server hands its tool definitions to the model at the start of a session, and that cost is paid on every turn. The same project ships an npx command that reads configs for Claude Code, Claude Desktop, Cursor, VS Code, Windsurf and Gemini CLI, starts each server and prints the cost, with a budget flag that fails CI and a GitHub Action that does the same on pull requests.

For servers that return 401, stored credentials let later runs measure them, and where a publisher's npm or PyPI package exists the board can measure that instead. A monthly report and a CC BY 4.0 dataset are published.

Install

Run in a terminal

claude mcp add --transport http mcpcost https://mcpcost.ulehla.dev/mcp

Add to Settings → Connectors → Add custom connector

https://mcpcost.ulehla.dev/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcpcost": {
      "url": "https://mcpcost.ulehla.dev/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "mcpcost": {
      "type": "http",
      "url": "https://mcpcost.ulehla.dev/mcp"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcpcost": {
      "serverUrl": "https://mcpcost.ulehla.dev/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcpcost": {
      "type": "http",
      "url": "https://mcpcost.ulehla.dev/mcp"
    }
  }
}

What it does

Daily registry probe
Checks whether each registry server answers and how fast.
Token cost per server
Counts tokens used by tool definitions, as Claude counts them.
Auth detection
Identifies OAuth, key or payment requirements.
Config measurement
npx mcpcost reads common client configs and prices each server.
CI budget check
A flag and GitHub Action fail builds over a token budget.
Credential storage
Stored tokens allow measuring auth-gated servers.

Good for

  • Check whether an MCP server is alive before installing it
  • Find out how much context a server's tools consume
  • Fail a pull request that adds an expensive server
  • Compare tool counts across registry servers

Pricing

Open source

Prices change. Check mcpcost.ulehla.dev before you buy.

mcpcost FAQ

How do I measure my own servers?

Run npx mcpcost; it reads configs for several clients, starts each server and prints cost per server.

Can it enforce a limit in CI?

Yes. --budget exits with 1 above the limit, and a GitHub Action is available.

Are the token counts exact?

The default is an estimate; --claude uses Anthropic's count_tokens endpoint and needs ANTHROPIC_API_KEY.

Does it handle servers that need login?

Yes, after you store credentials with npx mcpcost auth.

Is mcpcost free?

Yes. mcpcost is open source, so you can use and self-host it for free.

How do I add mcpcost to Claude Code?

Run this command in your terminal: claude mcp add --transport http mcpcost https://mcpcost.ulehla.dev/mcp

What are the best alternatives to mcpcost?

The closest alternatives to mcpcost are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to mcpcost

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools