alphaforensics-mcp
AgentCost — AI Agent Spend Analysis. MCP server that analyzes Claude Code session logs to find token waste and optimization opportunities. Free preview tier available.
Documentation
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
1. Find your Claude Code session logs in `~/.claude/projects/`
2. Use `agentcost_preview` to get a free cost breakdown
3. 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
Frequently asked questions
What is alphaforensics-mcp?
alphaforensics-mcp is AgentCost — AI Agent Spend Analysis. MCP server that analyzes Claude Code session logs to find token waste and optimization opportunities. Free preview tier available.
How do I install alphaforensics-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is alphaforensics-mcp open source?
Yes — it is hosted on GitHub at https://github.com/digitalpromptmarket-beep/alphaforensics-mcp.
Related MCP tools
Official remote MCP server for Atlassian. Securely connect Jira, Confluence, Jira Service Management, Bitbucket, and Compass to Claude, ChatGPT, Cursor, VS Code, and other AI tools using OAuth 2.1 or API tokens.
Cut AI token costs 95%+ on code exploration. The leading MCP server for precise, symbol-level GitHub code retrieval via tree-sitter AST. Works with Claude Code, Cursor & any MCP client. 313B+ tokens saved.
Browser automation clicks buttons. OpenTabs calls APIs.
Open-source coding agent memory. Records issues, attempts, fixes and decisions, then warns your agent before it repeats an approach that already failed. Native MCP server for Claude Code, Cursor, Antigravity and Codex. 100% local, no cloud, no telemetry. MIT.
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
This is a 12306 ticket search server based on the Model Context Protocol (MCP).
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP