Agent Cost Hub — Claude Code MCP server: features and setup
The Agent Cost Hub MCP server for Claude Code looks up model prices and estimates monthly AI agent costs. It can compare models for a workload or rank them by estimated price.
MIT updated 2026-11-02
claude mcp add --transport http agent-cost-hub https://agentcosthub.com/mcpWhat Agent Cost Hub does
The server returns prices for input, output, and cached tokens, then estimates monthly agent spend. Its tools can fetch one model’s rates, compare models against the same workload, or find low-cost options. Choose a preset such as coding_agent or provide custom workload values.
The estimate factors in task steps, input and output tokens, cached-token share, and daily call volume. It uses listed prices and excludes cache-write fees. Prices are checked daily, and each result includes the last verification date. The hosted endpoint uses HTTP and requires no sign-in or API key.
What it helps with
- estimate monthly spending for an AI agent
- compare model prices for one workload
- find low-cost models for a chatbot or coding agent
- look up a model’s input and output token rates
Example prompts for the agent
- Estimate the monthly cost of
coding_agentwithanthropic/claude-opus-5.5. - Compare models for a
ragworkload. - Find the cheapest models for the
coding_agentpreset.
How to install Agent Cost Hub
Platform CLI: remote server
claude mcp add --transport http agent-cost-hub https://agentcosthub.com/mcpPlatform CLI: remote server
codex mcp add agent-cost-hub --url https://agentcosthub.com/mcpConfig file
{
"mcpServers": {
"agent-cost-hub": {
"url": "https://agentcosthub.com/mcp"
}
}
}Config file
{
"servers": {
"agent-cost-hub": {
"type": "http",
"url": "https://agentcosthub.com/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http agent-cost-hub https://agentcosthub.com/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Agent Cost Hub
How do I install Agent Cost Hub in Claude Code?
Run claude mcp add --transport http agent-cost-hub https://agentcosthub.com/mcp. It connects over HTTP.
What does Agent Cost Hub do?
It looks up model prices and estimates monthly AI agent costs. It can also compare models for one workload or rank lower-cost options.
What does Agent Cost Hub need to run?
Connect to https://agentcosthub.com/mcp. No sign-in or API key is required.