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
関連サーバー
Scout Monitoring MCP
スポンサーPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
スポンサーAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
shadow-cljs
Monitors shadow-cljs builds and provides real-time build status updates.
Galley MCP Server
Integrates Galley's GraphQL API with MCP clients. It automatically introspects the GraphQL schema for seamless use with tools like Claude and VS Code.
OTP MCP Server
Generates secure One-Time Passwords (OTP) using TOTP and HOTP algorithms.
Loki MCP Server
A Go-based server to query Grafana Loki logs using the Model Context Protocol (MCP).
Remote Weather MCP Server
A remote, authentication-free MCP server for weather data, deployable on Cloudflare Workers or run locally via npm.
CodeSeeker
Graph-powered code intelligence MCP server with semantic search, knowledge graph, and dependency analysis for Claude Code, Cursor, and Copilot.
MCP Music Analysis
Analyze audio from local files, YouTube, or direct links using librosa.
Authless Remote MCP Server
An example of a remote MCP server without authentication, deployable on Cloudflare Workers or runnable locally.
MegaChad
Burn-to-create looksmaxxing engine on MegaETH with 14 MCP tools for swap quotes, token stats, NFT minting, gallery, leaderboard, wallet checks, gasless burns, and orchestrated agent flows
VICE MCP
MCP server embedded in the VICE Commodore 64/128/VIC-20/PET emulator, giving AI assistants direct access to read/write memory, set breakpoints, inspect VIC-II/SID/CIA registers, and debug 6502 assembly in real time with 63 tools.