@cyanheads/evals-mcp-server
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., "@@cyanheads/evals-mcp-serverdraft an exact answer eval for 'What is 2+2?' with answer '4'"
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.
Tools
Nine tools for authoring eval records — the draft loop (create, revise, discard, submit), the standalone deterministic checker, and read/list/export:
Tool | Description |
| Return the required and optional fields plus grader options for a task type. Call before drafting. |
| Create a draft eval record carrying its own grader; returns the parsed record, a review protocol, and a verification subagent prompt. |
| Read a draft or submitted record by id; the id is stable across submit. |
| Apply a surgical |
| Delete a draft record by id. Draft-only. |
| Run a grader spec against candidate answers and get PASS/REJECT per candidate, decoupled from any saved record. |
| Finalize a draft through the committability gate, then freeze it. |
| Browse and filter records by status, domain, task type, or tag. Returns a compact summary per record. |
| Compile submitted records to JSONL, CSV, Inspect AI, or lm-evaluation-harness and write the artifact under |
evals_describe_schema
Return what a record of a given task_type needs before you draft it.
Static — derived from the record and grader Zod schemas, no disk or runtime state
Per-type gold shape, appropriate grader kind(s), required/optional fields, and authoring notes
task_typeis one ofnumeric,exact_answer,set_answer,mcq,regex_answer,json_answer,free_response
evals_create_draft
Create and persist a draft eval record, then reflect it back as a review forcing function.
Validates against the
task_typediscriminated union (per-type rules:mcqrequireschoices;free_responserequires anllm_rubricgrader)Runs a cheap self-consistency check — grader vs gold and each positive must PASS, vs each negative must REJECT
Returns the normalized record parroted back behind a divider, a per-field review protocol, a ready-to-paste verification subagent prompt, and what's still required before submit
Optional draft-time
verificationblock andcaptures(EvalsIDs) when you already hold provenanceStays
draft— passing self-consistency proves the grader discriminates, not that the gold is right
evals_revise_draft
Surgically patch a draft so each change stays legible.
Explicit
set(dotted-path → value),append(dotted-path → array items), andunset(dotted paths) operations — not full-record rewritesReturns the updated record, an itemized list of what changed, and a re-run self-consistency verdict
Re-validates the full shape and cross-field constraints after the patch
Draft-only — submitted records are frozen;
task_typecannot be patched (start a new draft to change the discriminant)
evals_run_check
Run a grader against one or more candidates without touching a saved record.
PASS/REJECT per candidate plus the resolved comparison value (e.g. the math.js-evaluated numeric target), so you see why each matched or missed
candidatesaccepts strings, numbers, objects, or arrays — whatever the grader kind expectsSupply
goldfor gold-relative kinds (exact_match); it is a no-op for target-embedding kinds likenumericandmcqllm_rubriccannot run here — it is graded at submit via sampling
evals_submit_draft
Finalize a draft through the committability gate, then freeze it.
The gate runs the grader against the gold (must PASS), requires ≥1 declared negative case to be REJECTED, and requires a recorded, decorrelated independent verification that agrees with the gold
Resolves and embeds any
capturesfromEVALS_CAPTURE_DIR, cross-checking the gold against the authoritative captured valueRejects duplicates (same
content_hashalready submitted)On pass, flips the record to
submitted, stampssubmitted_atand achecksum, and freezes it; otherwise refuses with a typed error and the record stays a draftfree_responsellm_rubricis judged via sampling when the client supports it, else admitted on recorded verification alone and flaggedserver_verified: false
evals_export_records
Compile submitted records to a downstream eval format.
jsonl(lossless, the lingua franca),csv(a flattened, lossy spreadsheet summary),inspect(UK AISI Inspect AI),lm-eval(EleutherAI lm-evaluation-harness)Optional
domain/task_type/tagfilterOnly submitted records are exported — drafts are skipped
Writes the artifact under
exports/and returns the file path, record count, byte size, and a short preview instead of dumping inline
Related MCP server: mcp-eval-harness
Resource
Type | Name | Description |
Resource |
| A single draft or submitted record by id — the same payload |
All record data is also reachable through the tool surface — evals_get_record for a single record, evals_list_records to browse. The resource is a convenience mirror for clients that support resources, not the access path.
Features
Built on @cyanheads/mcp-ts-core:
Declarative tool and resource definitions — single file per primitive, framework handles registration and validation
Unified error handling — handlers throw, framework catches, classifies, and formats
Typed error contracts — tools declare their domain failures (
reason+ recovery), surfaced to the agentPluggable auth:
none,jwt,oauthStructured logging with optional OpenTelemetry tracing
STDIO and Streamable HTTP transports
Eval authoring:
A
draft → review → surgical-revise → submitloop, with the server acting as both scribe (normalize, persist, compile) and adversarial checker (run the record's own grader, reject what doesn't hold up)Records are a Zod
discriminatedUnionkeyed ontask_type—numeric,exact_answer,set_answer,mcq,regex_answer,json_answer,free_responseA typed grader DSL serialized with each record — deterministic kinds (
numericvia math.js,exact_match,set_match,regex,mcq,json_match) run server-side;llm_rubricroutes to samplingAn enforced committability gate at submit: the gold must pass its own grader, ≥1 negative must be rejected, and a recorded decorrelated verification must agree with the gold
Optional fleet grounding via the
capturesEvalsID field — link framework-written tool-call dumps, resolved fromEVALS_CAPTURE_DIRand cross-checked against the gold (no server-to-server calls)Plain JSON files under
EVALS_DATA_DIR— inspectable, diffable, version-controllable recordsCompile to JSONL, CSV, Inspect AI, and lm-evaluation-harness formats
Agent-friendly output:
The two instructional tools (
evals_create_draft,evals_revise_draft) carry the loop's review mechanism in their responses — the parsed record parroted back, a per-field review protocol, and a ready subagent promptSelf-consistency verdicts on every draft and revise — per-positive and per-negative results, not just a boolean
evals_list_recordsdiscloses truncation when the limit is hit, so a partial set is never mistaken for the whole corpusThe submit gate refuses with a typed
reason+ recovery hint, so a rejected record tells the agent exactly what to fix
Getting started
Add the following to your MCP client configuration file. Set EVALS_DATA_DIR to a writable folder — the server manages drafts/, submitted/, and exports/ under it.
{
"mcpServers": {
"evals-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/evals-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"EVALS_DATA_DIR": "/absolute/path/to/evals-data"
}
}
}
}Or with npx (no Bun required):
{
"mcpServers": {
"evals-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/evals-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"EVALS_DATA_DIR": "/absolute/path/to/evals-data"
}
}
}
}Or with Docker:
{
"mcpServers": {
"evals-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_TRANSPORT_TYPE=stdio",
"-e", "EVALS_DATA_DIR=/data",
"-v", "evals-data:/data",
"ghcr.io/cyanheads/evals-mcp-server:latest"
]
}
}
}For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 EVALS_DATA_DIR=./evals-data bun run start:http
# Server listens at http://localhost:3010/mcpPrerequisites
Bun v1.3.2 or higher (or Node.js v24+).
A writable directory for
EVALS_DATA_DIR. No external API key is required.
Installation
Clone the repository:
git clone https://github.com/cyanheads/evals-mcp-server.gitNavigate into the directory:
cd evals-mcp-serverInstall dependencies:
bun installConfigure environment:
cp .env.example .env
# edit .env and set EVALS_DATA_DIRConfiguration
All server configuration is validated at startup via Zod schemas in src/config/server-config.ts.
Variable | Description | Default |
| Root folder for record JSON; the store manages |
|
| When |
|
| Default | — |
| Directory of framework-written tool-call captures; when set, | — |
| Transport: |
|
| Port for the HTTP server. |
|
| Auth mode: |
|
| Log level (RFC 5424). |
|
| Enable OpenTelemetry instrumentation. |
|
See .env.example for the full list of optional overrides.
Running the server
Local development
Build and run:
# One-time build bun run rebuild # Run the built server bun run start:stdio # or bun run start:httpRun checks and tests:
bun run devcheck # Lint, format, typecheck, security bun run test # Vitest test suite bun run lint:mcp # Validate MCP definitions against spec
Docker
docker build -t evals-mcp-server .
docker run --rm -e MCP_TRANSPORT_TYPE=stdio -e EVALS_DATA_DIR=/data -v evals-data:/data evals-mcp-serverThe Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/evals-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
Project structure
Directory | Purpose |
|
|
| Server-specific environment variable parsing and validation with Zod. |
| Tool definitions ( |
| Resource definitions ( |
| The record schema, draft builder, and submit gate. |
| Deterministic grader DSL execution and the committability check. |
| On-disk JSON record CRUD, the draft→submitted move, and export writes. |
| Compiling submitted records to JSONL/CSV/Inspect/lm-eval. |
| Unit and integration tests mirroring |
Development guide
See CLAUDE.md/AGENTS.md for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor request-scoped logging; records persist to disk via therecord-storeservice, notctx.stateRegister new tools and resources in the
createApp()arrays insrc/index.tsThe server is the source of truth — validate inputs, run the grader as a hard gate, and never admit a record on assertion alone
Contributing
Issues and pull requests are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
Apache-2.0 — see LICENSE for details.
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
- AlicenseAqualityCmaintenanceA local MCP server that packages LLM evaluation gates as reusable CI/CD primitives, enabling AI agents to run datasets against models, score responses, and enforce quality thresholds.Last updated10MIT
- Flicense-qualityCmaintenanceMCP-based code evaluation harness — sandboxed execution + LLM quality scoring.Last updated
- AlicenseBqualityBmaintenanceAn MCP-style stdio server for evaluating AI agent outputs, enabling CI-friendly quality gates, regression comparisons, and canary promotion decisions.Last updated3MIT
- Alicense-qualityCmaintenanceEnables LLM evaluation and observability by uploading documents, building test sets, running RAG pipelines, and automatically scoring answers for groundedness, hallucination risk, retrieval quality, latency, and cost, with tools exposed to MCP-compatible clients.Last updated1MIT
Related MCP Connectors
Remote MCP for Gemini upgrade evals, prompt regressions, output diffs, and eval receipts.
MCP-native collaborative markdown editor with real-time AI document editing
A paid remote MCP for AI SDK eval dashboard, built to return verdicts, receipts, usage logs, and aud
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/cyanheads/evals-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server