AgentCost
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
AgentCost — AI Agent Spend Analysis
MCP server that analyzes AI agent session logs to find token waste and optimization opportunities.
Free preview tier — see where your money goes before paying for detailed analysis.
Quick Start
Add to your Claude Desktop or MCP client config:
{
"mcpServers": {
"agentcost": {
"command": "npx",
"args": ["-y", "alphaforensics-mcp"]
}
}
}No API key needed for the free preview tier.
Related MCP server: ai-usage-metrics-mcp
Tools
agentcost_preview (Free)
Analyze your Claude Code session logs at no cost. Returns:
Total cost breakdown by model
Token counts (input/output/cache)
Tool usage frequency
Top 5 most expensive turns
Upload your JSONL from ~/.claude/projects/ to see where your money goes.agentcost_analyze ($5-$15 via x402)
Full analysis with actionable recommendations:
Pro ($5): Waste pattern detection, per-tool cost attribution, optimization recommendations
Full ($15): + industry benchmarks, savings projections, exportable report
agentcost_sample (Free)
Get a sample report to see the output format before submitting real data.
How It Works
Find your Claude Code session logs in
~/.claude/projects/Use
agentcost_previewto get a free cost breakdownIf you want waste detection and recommendations, use
agentcost_analyze
Paid analysis uses x402 micropayments on Base mainnet — no API keys or subscriptions needed.
API Endpoints
Endpoint | Price | Description |
| Free | Cost breakdown + top-5 hot turns |
| $5-$15 | Waste patterns + recommendations |
| Free | Sample report |
Base URL: https://api.agentsconsultants.com
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
LLM cost optimization gateway, repo token-waste auditor & model arbitrage MCP server.
LLM cost optimization gateway, repo token-waste auditor & model arbitrage MCP server.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Analytics for MCP servers. Find out which of your tools agents get wrong. MCPulse shows you which tools AI agents retry, which come back empty, and which they never call at all. Two lines inside your own server. It never sees your arguments or your results. getmcpulse.com
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server that helps AI agents reduce token usage by compressing, summarizing, and managing conversation/context data more efficiently.11MIT
- AlicenseAqualityDmaintenanceA MCP server for tracking AI usage metrics and structured logs across applications. Monitor model calls, analyze usage patterns, track costs, and debug AI interactions.54 npmMIT
- AlicenseAqualityDmaintenanceA Python MCP server that reduces token usage by ~98% when working with log files by auto-detecting format and stripping noise to return only actionable signal.52MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that analyzes AI agent execution logs to calculate reliability scores, detect failure patterns, and suggest concrete improvements for making AI agents more reliable.MIT