🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

alphaforensics-mcp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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 included.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

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_preview to 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

EndpointPriceDescription
POST /forensics/previewFreeCost breakdown + top-5 hot turns
POST /forensics/analyze$5-$15Waste patterns + recommendations
GET /forensics/sampleFreeSample report

Base URL: https://api.agentsconsultants.com

License

MIT

Keywords

mcp

FAQs

Package last updated on 01 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts