Skip to main content
Glama
Ludoonus

agentops-mcp

by Ludoonus

agentops-mcp

tests

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

cost_summary

tokens, cache hit rate, est. dollars, top projects & tools

audit_summary

commands run, file writes, errors, sensitive-path access

safety_report

dangerous actions the agent attempted (force-push, rm -rf, curl|sh)

efficiency_report

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-mcp

Use 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 tools
audit_summaryC

What the agent actually did: command count, file writes, errors, sensitive-path accesses, and the most common command verbs.

ParametersJSON Schema
NameRequiredDescriptionDefault
daysNo
projectNo

TDQS

C2.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It lists what the summary includes, implying a read-only query operation. However, it does not explicitly state idempotency, side effects, or access requirements. The mention of 'errors' and 'sensitive-path accesses' hints at safety-relevant output but not tool behavior itself.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single front-loaded sentence that efficiently lists key output fields. It avoids unnecessary words and is easy to scan, though it could benefit from a more structured format like bullet points.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simple two-parameter input, no output schema, and zero parameter documentation, the description lacks completeness. It only covers the output contents, omitting parameter explanations, usage context, and behavioral details, which are needed for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description does not mention the parameters 'days' or 'project' at all. It provides no meaning or context for these inputs, leaving the agent to guess their purpose based on defaults alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's output components (command count, file writes, etc.) and implies it summarizes agent activity. The list differentiates it from sibling tools (cost_summary, efficiency_report, safety_report) by specifying distinct metrics. However, it lacks an explicit action verb like 'Get' or 'Retrieve.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus its siblings. The description does not specify context, prerequisites, or exclusions, leaving the agent to infer usage from the output contents alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
daysNo
projectNo

TDQS

A3.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so the description carries full burden. It discloses the output metrics but does not state behavioral traits like read-only nature, side effects, authentication needs, or whether data is aggregated or real-time. More transparency is needed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, front-loaded with main purpose, no wasted words. Every part is informative.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with no output schema, the description adequately covers what the tool returns. It mentions key metrics and filtering by project. Could explicitly state the return format or that it's a summary object, but overall sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% (no parameter descriptions). The description hints at project filtering ('top projects') and time scope ('across'), but does not explicitly explain 'days' parameter meaning or default behavior. It adds some value but is incomplete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool provides a token cost summary across Claude Code projects, listing specific metrics (output/input tokens, cache hit rate, estimated dollars, top projects and tools). This distinguishes it from siblings like audit_summary and efficiency_report.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied for cost analysis, but no explicit guidance on when to use this versus sibling tools (audit_summary, efficiency_report, safety_report). The description lacks when-not-to-use or alternative recommendations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

efficiency_reportB

Where tokens are wasted: re-read files, oversized tool output, cache hit rate, plus concrete recommendations to cut waste.

ParametersJSON Schema
NameRequiredDescriptionDefault
daysNo
projectNo

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden for behavioral disclosure. The description indicates the tool generates a report (presumably read-only) but does not mention side effects, data access permissions, or any other behavioral traits beyond the high-level output.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence that conveys the core purpose without any wasted words. It is appropriately concise for the tool's function.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and 0% parameter coverage, the description should provide more detail on what the report contains (e.g., specific metrics or format). It only gives high-level areas without specificity, leaving the agent with an incomplete understanding of the tool's output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description does not explain the parameters (days, project). The agent cannot infer what 'days' or 'project' affect without additional information, making parameter usage unclear.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: identifying where tokens are wasted (re-read files, oversized output, cache hit rate) and providing recommendations. This verb+resource specification distinguishes it from sibling report tools like audit_summary, cost_summary, and safety_report.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is used for analyzing token waste and efficiency, but does not explicitly state when to use it vs alternatives. No exclusions or when-not-to-use guidance are provided, making it ambiguous for an agent to choose among siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
daysNo
projectNo

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses that tool shows both blocked and unblocked dangerous actions. No annotations exist, so description carries full burden. Missing details like whether empty results are possible, but core behavior is clear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, no wasted words. Could be slightly improved by front-loading key info, but it is concise and readable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Tool is simple with two optional parameters, but no output schema and no parameter descriptions. While description suffices for basic understanding, it lacks completeness for parameter semantics. Sibling tools are named but not differentiated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but description adds no parameter information. The two optional parameters (days, project) are not explained, leaving the agent to guess their purpose (e.g., date range vs. project filtering).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description specifies verb ('reports'), resource ('dangerous actions attempted by agent'), and includes examples (force-push, rm -rf on risky paths, curl|sh, chmod 777). Clearly distinguishes from sibling tools (audit_summary, cost_summary, efficiency_report) by focusing on safety incidents.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implied usage: use to review dangerous agent attempts. However, no explicit guidance on when to use this tool vs siblings like audit_summary or efficiency_report, nor conditions like minimum severity threshold.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A3.7/5.0
Disambiguation5/5

Each tool targets a clearly distinct aspect of agent operations: actions, costs, efficiency, and safety. No overlap or ambiguity exists between the tool purposes.

Naming Consistency5/5

All tool names follow a consistent adjective_noun pattern using underscores, making them predictable and easy to understand (e.g., audit_summary, cost_summary).

Tool Count5/5

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.

Completeness5/5

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.

Maintenance

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    B
    quality
    Not graded
    maintenance
    Provides 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
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides 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.
  • A
    license
    A
    quality
    A
    maintenance
    Enables 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.
    40
    13
    4
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Enables analyzing AWS cloud costs through natural language queries, providing cost summaries, anomaly detection, idle resource identification, rightsizing recommendations, and tagging compliance via Claude.
    10
    41
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ludoonus/agentops-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server