# Claude API Pricing

> Claude API Pricing is a free MCP server for ai models and llm tooling. Current Claude API prices and workload cost estimates with caching and batch discounts. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API
- **Website:** https://agentwright.app/tools/claude-pricing-mcp/
- **Repository:** https://github.com/agentwright-app/site/tree/HEAD/functions
- **MCP Registry name:** app.agentwright/claude-pricing
- **Categories:** AI models and LLM tooling, developer tools
- **Listing updated:** 2026-11-14

## About

Instead of guessing, an assistant can look up per-million-token prices for every current Claude model, including cache writes and reads, and work out what a request or monthly workload costs. The estimator handles prompt caching, the Batch API discount and long-prompt pricing, and a comparison tool ranks the same workload across models from cheapest up.

The server reads the same price table as the vendor's Claude API cost calculator, checked against Anthropic's pricing page, and each answer states the date of the table. It is stateless, read-only, needs no key, and the vendor says it does not log or store requests.

The code is a small dependency-free Streamable HTTP implementation on Cloudflare Pages Functions, offered publicly as an example of a remote server.

## Features

- **Model price list:** Per-million-token input, output, cache write and read prices.
- **Cost estimates:** Estimate a request or a monthly workload.
- **Caching math:** Models savings from cached prompts.
- **Batch pricing:** Includes Batch API discount.
- **Model comparison:** Cheapest model first.
- **Dated answers:** States the price table date.

## Good for

- Estimate monthly spend for a chat feature
- Compare models on one workload
- Evaluate the Batch API for nightly jobs
- Check savings from a cached system prompt

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http claude-pricing https://agentwright.app/mcp
```

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

```sh
https://agentwright.app/mcp
```

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

```json
{
  "mcpServers": {
    "claude-pricing": {
      "url": "https://agentwright.app/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "claude-pricing": {
      "type": "http",
      "url": "https://agentwright.app/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "claude-pricing": {
      "serverUrl": "https://agentwright.app/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "claude-pricing": {
      "type": "http",
      "url": "https://agentwright.app/mcp"
    }
  }
}
```

## Tools

- `list_claude_models`: Current models and prices per million tokens
- `estimate_claude_cost`: Cost of a request or workload from token counts
- `compare_claude_models`: Same workload on every Claude model, cheapest first

## FAQ

### Does it need an API key?

No sign-up, key or install.

### Where do prices come from?

The vendor's price table, checked against the official Claude pricing page.

### Are requests logged?

The vendor says it does not log or store them.

### Is the source public?

Yes, functions/mcp.ts.

### Is Claude API Pricing free?

Yes. Claude API Pricing is free to use.

### How do I add Claude API Pricing to Claude Code?

Run this command in your terminal: claude mcp add --transport http claude-pricing https://agentwright.app/mcp

### What are the best alternatives to Claude API Pricing?

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

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [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.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/claude-api-pricing
