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
関連サーバー
Alpha Vantage MCP Server
スポンサーAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
VibeShift
An intelligent security agent that analyzes AI-generated code for vulnerabilities and assists with remediation.
Brain
Adaptive error memory & code intelligence MCP server with Hebbian synapse network, cross-project learning, and auto-error detection
SoftProbe MCP Server
An MCP server for managing API test data and resources.
JADX-AI-MCP
A JADX decompiler plugin that integrates with MCP to provide live reverse engineering support using LLMs.
Perfetto
Turn natural language into powerful Perfetto trace analysis. Quickly explain jank, diagnose ANRs, spot CPU hot threads, uncover lock contention, and find memory leaks.
Bedrock Server Manager
Manage your Bedrock server with natural language commands using the Bedrock Server Manager API.
ADB Friend
A CLI tool for developers to manage Android devices via ADB.
vLEI.wiki MCP
Turns the Agent into a vLEI/KERI protocol expert
nUR MCP Server
An intelligent robot control middleware for natural language interaction with industrial robots, powered by LLMs. It integrates with Universal Robots and supports real-time, multi-robot control.
Apple HIG
Provides instant access to Apple's Human Interface Guidelines, with content auto-updated periodically.