claude-code-eval-mcp
Click on "Install 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., "@claude-code-eval-mcpscore every transcript in sample_transcripts.jsonl and report violations"
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.
claude-code-eval-mcp
A Model Context Protocol (MCP) server that lets Claude Code score its own tool-calling transcripts (or a batch of them) for hallucinated action claims, unsafe edit ordering, redundant tool-call loops, and pass@k across repeated attempts at a task.
Why this exists
Most agent evaluation happens outside the agent's own conversation, as a separate offline pipeline you run after the fact. This server closes that gap for one specific, useful case: it puts transcript scoring directly inside a Claude Code (or Claude Desktop) session as a set of tools, so you can ask "score this run" or "what's the pass rate on this task" in plain language, mid-conversation, without leaving to run a separate script.
It is a thin wrapper. All the actual scoring logic (the rule checks, the pass@k aggregation) lives in the separate, independently public apex-overlay project, installed here as a real pip dependency, not copied in. A fix to a rule there is picked up here on the next pip install --upgrade, with zero duplicated code between the two repos. This project exists to demonstrate that composition: a focused MCP server built on top of an evaluation library, rather than one monolith trying to do both jobs.
Related MCP server: Petamind MCP
What it does
Tool | Purpose |
| Documents the rule checks this scorer applies, so you know what a "violation" means before reading one |
| Scores a single transcript (passed as a JSON string) for rule violations |
| Scores every transcript in a JSONL file, returns aggregate metrics and pass@k |
| Pass rate across repeated attempts, for one task_id or every task_id in a file |
The rules themselves (from apex-overlay's harness/tool_call_rules.py): edited_without_reading (a file modified with no prior Read of it in the transcript), hallucinated_write_claim / hallucinated_read_claim / hallucinated_test_claim (the model's own stated claims about what it did, checked against what tool calls actually appear in the transcript), and redundant_tool_calls (the same tool called three or more times consecutively with identical input).
Data
Transcripts are JSONL, one tool-calling session per line: session_id, task_id, an ordered list of steps (each with a tool, its input, and the model's own claimed_actions text for that step), and a final_outcome. Full schema and a worked example: apex-overlay's tool_call_schema.md. Any system that can export logs in this shape, or a small adapter that reshapes them into it, can be scored without touching this server's code.
Quickstart
git clone https://github.com/futurerichdad/claude-code-eval-mcp.git
cd claude-code-eval-mcp
pip install -r requirements.txt
# Run the test suite
pytest tests/ -v
# Run the server (stdio transport)
python server.pyConnecting to Claude Code
Add to your Claude Code MCP config (claude mcp add or your mcp.json):
{
"mcpServers": {
"claude-code-eval": {
"command": "python",
"args": ["/absolute/path/to/claude-code-eval-mcp/server.py"]
}
}
}Then try the prompts in examples/example_prompts.md. To try it against real data first, clone apex-overlay alongside this repo and generate its synthetic sample transcripts:
git clone https://github.com/futurerichdad/apex-overlay.git
cd apex-overlay
python data/generate_sample_transcripts.py --out sample_transcripts.jsonl --count 200Then point any prompt at that file's absolute path, e.g. "score every transcript in /path/to/apex-overlay/sample_transcripts.jsonl and tell me the top violation."
Architecture
Claude Code --MCP (stdio)--> server.py (MCPServer, 4 tools)
|
v
harness.tool_call_rules / tool_call_metrics
(installed from github.com/futurerichdad/apex-overlay)
|
v
transcripts.jsonl (caller-supplied)Design philosophy
Composition over duplication. This server owns zero scoring logic. It owns the MCP tool contracts, input validation, and error shaping; apex-overlay owns the rules. Two focused public repos instead of one that does both jobs.
Structured, inspectable output. Every tool returns JSON, matching apex-overlay's own report structure, so the numbers here match what
python -m harness.tool_call_harnesswould print offline.Errors the model can act on. A missing file or unknown task_id returns
{"error": ..., "hint": ...}, including the list of valid task_ids when relevant, so an agent can self-correct instead of dead-ending.
Testing
pytest tests/ -v11 tests covering all four tools: happy-path scoring, invalid/malformed JSON input, a missing file, an empty file, and an unknown task_id, both with and without an explicit task_id filter.
About
Built by Ben, 9+ years of enterprise platform and fleet telemetry engineering (AT&T), now building agentic AI tooling. Anthropic Certified: Building with Claude API, Model Context Protocol. See also: apex-overlay (the evaluation harness this server wraps) and fleet-data-mcp (an MCP server exposing fleet telemetry to Claude Code).
License
MIT. See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceTransforms Claude from a code generator into a programming partner capable of testing, debugging, and optimizing code automatically through a secure execution environment.
- AlicenseNot gradedqualityDmaintenanceEnables agentic coding workflows in Claude Code through a multi-candidate patch evaluation loop that generates code variants, validates builds, scores results with mandatory vision testing, and automatically selects the best implementation.MIT
- AlicenseCqualityCmaintenanceEnables AI-powered automated testing, security scanning, code review, and maintenance tasks directly within Claude Code or desktop.124MIT
- AlicenseAqualityCmaintenanceEnables prompt optimization loops and regression test suites for Claude Code, with a companion web UI for real-time visualization of scores and prompt revisions.19MIT
Related MCP Connectors
Paid remote MCP for Claude Code skill update gate MCP, structured receipts, audit logs, and reviewer
Browser-backed QA with evidence and fix-ready reports for coding agents.
Lints + auto-fixes how AI coding agents discover any new product. 24 rules, 6 tools, score 0-100.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/futurerichdad/claude-code-eval-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server