Skip to content
Shekhar Kumar

All projects

Open source · Active

mcp-evals

An open-source harness that benchmarks MCP servers across models: accuracy, tool choice and context cost. On npm as mcp-arena, with a public leaderboard.

Role
Author
Period
Oct 2026 – present
Updated

TL;DR

  1. An open-source harness that runs the same tasks across models and MCP servers, grades the results, and records every step.
  2. Measures task success, invalid tool calls, context tokens returned by tool calls, steps, latency and cost, with every model pinned to one provider through OpenRouter.
  3. On npm as `mcp-arena`, with a GitHub Action that gates pull requests on regressions and a public leaderboard. Two benchmarks are published: 144 paid runs and 48 free-model runs comparing NeatCode with the filesystem MCP server.
graded runs in the first real benchmark
144
less context with NeatCode (GPT-6.1 Sol)
61%
lower cost per task, same comparison
46%
GPT-6.1 Sol task success on both servers
100%
task success for free Nemotron 3 Ultra with NeatCode, vs. 42% with filesystem
75%
of Qwen3.8 Flash runs called a tool that doesn't exist
33–42%
for the full run, under a $10 cap
$7.10
code-navigation tasks on a pinned repo
12

The eval matrix

Real data

Tasks by server and model, passes out of two repeats
taskNeatCode · GPT-6.1 SolNeatCode · Gemini 3.8 FlashNeatCode · Qwen3.8 FlashFilesystem · GPT-6.1 SolFilesystem · Gemini 3.8 FlashFilesystem · Qwen3.8 Flash
router-implementations
compose-callers
strict-path
preset-routers
cookie-helper-importers
timing-safe-callers
rename-check-optional-parameter
two-merge-paths
fetch-to-compose
default-error-handler
http-exception-throwers
smart-router-fallback

Select a cell to see what happened in each repeat.

  • 2 of 2 passed
  • 1 of 2 passed
  • 0 of 2 passed

NC = NeatCode, FS = Filesystem server. Columns: GPT-6.1 Sol, Gemini 3.8 Flash, Qwen 3.8 Flash.

Real results from the first mcp-evals run (2026-10-16): 12 code-navigation tasks × 2 repeats, NeatCode vs. the filesystem MCP server, three models. Cells fill as the run replays; select one for what happened.

The problem

MCP servers and agent tools are easy to claim value for and hard to compare: results depend on the model, the prompt, the limits and the task.

mcp-evals makes the comparison fair and repeatable: same tasks, same prompts, same limits, pinned models and fixtures, with every tool call traced. Its first headline comparison is NeatCode against a file-reading MCP server on the same code-navigation tasks.

My role · Author: design spec, architecture and implementation.

How it works

  1. Suites as YAML

    Tasks, graders, servers and models are declared in a suite file, validated with zod, with pinned model IDs and fixture commits.

  2. Fresh server per task

    Every task run starts a fresh MCP server process and a fresh copy of the fixture, so runs can't affect each other.

  3. Own agent loop on the MCP SDK

    A minimal loop sends the prompt, executes tool calls over MCP, and stops at the step, time or budget limit.

  4. Graders and recorder

    Deterministic graders check answers and tool use; a recorder traces every model call, tool call and token count.

  5. One results contract

    A versioned results.json feeds the CLI's report, compare and publish commands, the GitHub Action's regression gate, the public leaderboard and the eval matrix on this page.

Key decisions

  • Own agent loop on the official MCP SDK

    instead of: An agent framework or a plugin for an existing eval tool

    Full control of measurement and fairness; framework behaviour would muddy the numbers.

  • Deterministic graders first, LLM judge only when needed

    instead of: Judging everything with a model

    Cheap, reproducible checks wherever an answer can be verified; a pinned judge with a stored verdict only where it can't.

  • Infrastructure failures never count against a model

    instead of: Treating every failed run as a model failure

    Server crashes, rate limits and timeouts are retried and reported as an error rate, so rankings measure models, not flaky infrastructure.

Outcomes

  • Milestones 1 and 2 merged: runner, deterministic graders, an OpenRouter provider with token and cost accounting and a per-call budget cap, resumable runs, and `report`, `compare` and `publish` commands.
  • First real run (2026-10-16): 12 code-navigation tasks on the Hono repo, NeatCode vs. the filesystem MCP server, GPT-6.1 Sol, Gemini 3.8 Flash and Qwen3.8 Flash, 2 repeats: 144 runs, $7.10 against a $10 cap.
  • GPT-6.1 Sol solved all 24 runs on both servers. With NeatCode it pulled 61% fewer tool-result tokens into context (median 3,235 vs. 8,390) and cost 46% less per task, though it took more steps (6.0 vs. 4.4).
  • Both flash models scored lower with NeatCode than with the filesystem server (Gemini 3.8 Flash 0% vs. 25%, Qwen3.8 Flash 8% vs. 25%). The published traces show how they failed; the methodology notes that the harness author also wrote NeatCode.
  • Replaying those failing tool calls found a NeatCode bug: arrow-function constants such as Hono's `compose` and `every` were never indexed. NeatCode v0.1.5 fixes it (82 → 592 function nodes on the same repo). A small 1-repeat check with v0.1.5 ($1.23) took Qwen3.8 Flash from 2 of 24 to 9 of 12 tasks and Gemini 3.8 Flash from 0 of 12 to 2 of 6; the numbers above stay those measured with v0.1.4 until a full re-run.
  • Second run (2026-10-21), NeatCode v0.1.5 on two free OpenRouter models, 1 repeat, $0: Nemotron 3 Ultra solved 9 of 12 tasks with NeatCode vs. 5 of 12 with the filesystem server, using 89% less tool-result context (median 3,919 vs. 37,225 tokens). MiniMax M3.1 Flash tied at 5 of 12 with 58% less context. One repeat gives wide intervals, so it is a second data point, not a ranking.
  • Released: the CLI is on npm as `mcp-arena` (`npx mcp-arena compare base.json head.json` exits 1 on a regression), a GitHub Action posts the comparison as a PR comment, and a leaderboard built from the published runs is live at hitmandark07.github.io/mcp-evals. A `--provider openai-compatible` flag runs the same suites against local models such as Ollama.
  • Results, traces and methodology are public: github.com/HITMANdark07/mcp-evals.

What's next

  • A full re-run with NeatCode v0.1.5 (2 repeats, all models).
  • Harder tasks (GPT-6.1 Sol passed every one) and the general-tools suite.
  • Wire the GitHub Action into NeatCode's CI so every release is benchmarked.

Stack

  • TypeScript
  • MCP SDK
  • zod
  • Commander

Links