AgentCost
Analyze AI agent session logs to find token waste and optimization opportunities. Free preview tier with cost breakdown; paid tiers for waste detection and recommendations.
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.
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 breakdown - If 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 |
|---|---|---|
POST /forensics/preview | Free | Cost breakdown + top-5 hot turns |
POST /forensics/analyze | $5-$15 | Waste patterns + recommendations |
GET /forensics/sample | Free | Sample report |
Base URL: https://api.agentsconsultants.com
License
MIT
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Flux Schnell MCP Server
A text-to-image generation server using the Flux Schnell model.
Gemma MCP Client
A client for Google's Gemma-3 model that enables function calling through MCP.
Victron ModBus TCP
Server that connects to Victron Energy GX devices on local network.
Decoupler MCP
A natural language interface for biological activities analysis using the decoupler tool.
AILint
AI-powered code quality analysis to detect best practice violations, security issues, and architectural problems in real-time.
Chronos Protocol
A robust MCP server that eliminates temporal blindness in AI coding agents through intelligent time tracking, persistent memory, and complete session traceability.
Remote MCP Server (Authless)
A template for deploying a remote, auth-less MCP server on Cloudflare Workers.
CodeGraph
Generates and queries a graph representation of a codebase.
CryptoAnalysisMCP
Provides comprehensive cryptocurrency technical analysis, including real-time price data, technical indicators, chart pattern detection, and trading signals for over 2,500 cryptocurrencies.
VibeCoding System
A conversation-driven development framework for rapid MVP and POC creation.