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
EnigmAgent MCP
AES-256-GCM + Argon2id encrypted local vault that resolves {{PLACEHOLDER}} secrets for AI agent credentials.
AWS Nova Canvas
Generate images using Amazon Nova Canvas with text prompts and color guidance.
Nanostores MCP
MCP server for the Nanostores library
Graph Tools
An interactive graph analysis toolkit with web visualizations and AI-powered analysis capabilities.
Unity Code MCP Server
Powerful tool for the Unity Editor that gives AI Agents ability to perform any action using Unity Editor API, like modification of scripts, scenes, prefabs, assets, configuration and more.
SonarQube MCP Server
Integrates with SonarQube to provide AI assistants with access to code quality metrics, issues, and analysis results.
Square
A Model Context Protocol (MCP) server for square
Build-Scout
Interact with various build systems including Gradle, Maven, NPM/Yarn, Cargo, Python, Makefile, and CMake.
Figma MCP Server
Connects to the Figma API, allowing AI tools to access and interact with your Figma designs.
vim-mcp-server
MCP server for driving Vim