vanthienha199/agent-cost-mcp
MCP server for tracking AI agent costs in real time. Per-message spending, budget alerts, visual dashboard. Works with Claude Code, Cursor, Windsurf, Codex, Gemini CLI, OpenClaw. Stop overspending on AI APIs.MCP server that tracks AI agent spending in real time. Visual dashboard, budget alerts, 15+ models. Works with Claude Code, Cursor, Windsurf.
Platform-specific configuration:
{
"mcpServers": {
"agent-cost-mcp": {
"command": "npx",
"args": [
"-y",
"agent-cost-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
MCP server that tracks AI agent token usage and spending in real time. Budget alerts, per-task cost breakdown, visual dashboard, daily/weekly/monthly reports.
Works with any MCP client: Claude Code, Cursor, Windsurf, Codex, Gemini CLI, and more.
[](LICENSE) [](https://python.org) [](https://modelcontextprotocol.io)
Every developer using AI agents worries about spending. Most tools don't tell you what each message costs until the bill arrives.
This MCP server tracks it in real time — per message, per model, per day. Set a budget, get alerts, see exactly where your money goes.
~/.agent-cost-mcp/)pip install agent-cost-mcpOr with uv:
uv pip install agent-cost-mcpClaude Code — add to ~/.claude/settings.json:
{
"mcpServers": {
"agent-cost": {
"command": "agent-cost-mcp"
}
}
}Cursor — add to .cursor/mcp.json:
{
"mcpServers": {
"agenLoading reviews...