agentops-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agentops-mcp how much did I spend on Claude Code last week?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agentops-mcp
An MCP server that exposes AI-coding-agent operations analytics as tools any MCP client can call. Ask your assistant "how much did I spend on Claude Code this week?", "what dangerous commands did my agent attempt?", or "where are my tokens wasted?" — answered from the transcripts Claude Code already writes locally. Read-only, no telemetry.
Tools
Tool | Returns |
| tokens, cache hit rate, est. dollars, top projects & tools |
| commands run, file writes, errors, sensitive-path access |
| dangerous actions the agent attempted (force-push, rm -rf, curl|sh) |
| re-read waste, cache misses, concrete fixes |
Each takes days (default 30) and an optional project filter.
Related MCP server: Claude Stats MCP
Install
pipx install git+https://github.com/Ludoonus/agentops-mcp
# or: uvx --from git+https://github.com/Ludoonus/agentops-mcp agentops-mcpUse with Claude Desktop (or any MCP client)
Add to your MCP config:
{
"mcpServers": {
"agentops": { "command": "agentops-mcp" }
}
}Then ask your assistant about your Claude Code cost, audit trail, safety, or efficiency.
How it works
Reads ~/.claude/projects/*.jsonl (the transcripts Claude Code writes), parses the
API-reported usage and tool calls, and serves the analysis over MCP (stdio). Nothing
leaves your machine; the server only reads.
Companion projects
Operator — the same analytics as a CLI/TUI console.
cc-powerpack — guardrail hooks that prevent the dangerous actions this server reports.
Go deeper
These tools are the practical layer; The Claude Code Operator's Handbook is the full playbook — 18 chapters on running AI coding agents safely and efficiently (threat model, guardrails, cost, workflows, recovery, scaling). $29, with a free 3-chapter sample.
License
MIT.
Available Tools
4 toolsaudit_summaryC
What the agent actually did: command count, file writes, errors, sensitive-path accesses, and the most common command verbs.
Inputs: days, project.
cost_summaryA
Token cost across Claude Code projects: output/input tokens, cache hit rate, estimated list-price dollars, and the top projects and tools by spend.
Inputs: days, project.
efficiency_reportB
Where tokens are wasted: re-read files, oversized tool output, cache hit rate, plus concrete recommendations to cut waste.
Inputs: days, project.
safety_reportA
Dangerous actions the agent ATTEMPTED (force-push, rm -rf on risky paths, curl|sh, chmod 777, etc.), whether or not a guardrail stopped them.
Inputs: days, project.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a clearly distinct aspect of agent operations: actions, costs, efficiency, and safety. No overlap or ambiguity exists between the tool purposes.
All tool names follow a consistent adjective_noun pattern using underscores, making them predictable and easy to understand (e.g., audit_summary, cost_summary).
With only 4 tools, the server is tightly scoped around monitoring agent behavior. Each tool earns its place, and the count is appropriate for a focused observability server.
The tool surface covers the essential dimensions of agent operations: actions, costs, efficiency, and safety. There are no obvious gaps for the intended purpose of auditing and optimizing agent performance.
Related MCP Connectors
Analytics for MCP servers. Query your tool calls, first-call success, retries and schema cost.
Read-only analytics for Convex apps, queryable via MCP from Claude, Cursor, and other clients.
Query your warehouse or a CSV with Claude/ChatGPT over MCP, governed by table-level ACL + audit.
AI Visibility and Content Intelligence tools for Claude and MCP-compatible agents.
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceProvides comprehensive telemetry and usage analytics for Claude Code sessions, including token usage tracking, cost monitoring, and tool usage patterns. Enables users to monitor their Claude usage with detailed metrics, warnings, and trend analysis.12-
- FlicenseNot gradedqualityDmaintenanceProvides statistical analysis and usage tracking for Claude Code, enabling users to query daily/monthly stats, compare users, analyze trends, detect anomalies, and generate usage reports through natural language.1-
- AlicenseBqualityBmaintenanceEnables querying Rybbit Analytics data directly through MCP-compatible clients like Claude Code. It provides tools for monitoring website statistics, user sessions, error logs, funnels, and performance metrics via natural language.43263 npm4MIT
- AlicenseAqualityCmaintenanceEnables analyzing AWS cloud costs through natural language queries, providing cost summaries, anomaly detection, idle resource identification, rightsizing recommendations, and tagging compliance via Claude.10MIT