Home / Servers

mcpgrade

by TengByte

mcpgrade

Lighthouse for MCP servers. Your server can be 100% spec-compliant and still fail agents — vague descriptions, token-bloated schemas, confusable tool names. mcpgrade scores what compliance checkers can't: whether an LLM can actually use your tools.

mcpgrade demo — grading a broken server (F/37) and the official memory server (C/78)

npx mcpgrade https://your-server.example.com/mcp   # streamable HTTP
npx mcpgrade --stdio "node ./my-server.js"          # local stdio server
npx mcpgrade --snapshot tools.json                  # saved tools/list output

Zero config. No API key. Report in seconds.

What it checks

CategoryWeightExamples
Descriptions30%missing/too-short descriptions, undocumented params, placeholder text, duplicate descriptions
Schema design30%missing types, no required array, additionalProperties: true, prose-instead-of-enum, deep nesting
Naming15%confusable names (get_user vs get_users), generic verbs (process), mixed conventions
Token cost15%catalog total budget, per-tool budget — agents pay your schema on every request
Consistency10%catalog-wide uniformity; with --probe, live checks that error messages help the model self-correct

Every finding comes with a concrete fix. Scores are density-normalized: 3 broken tools out of 3 is an F; 3 out of 30 is a dent.

Example

mcpgrade — agent usability report
target: examples/bad-server.json · 4 tools

  F   37/100

  Descriptions   ░░░░░░░░░░░░░░░░░░░░   0
  Naming         ███████████░░░░░░░░░  55
  Schema design  ███░░░░░░░░░░░░░░░░░  13
  Token cost     ████████████████████ 100
  Consistency    ████████████████████ 100

  findings: 6 errors · 10 warnings · 2 info

  Descriptions
    ✖ D002 [get_user] Description of "get_user" is only 12 chars ("Gets a user.").
      ↳ Expand to at least one full sentence: what it does, when to use it, what it returns.
    ...

MCP server mode

mcpgrade also runs as an MCP server, so an agent can grade other servers on your behalf:

claude mcp add mcpgrade -- npx -y mcpgrade serve

Or add it manually:

{
  "mcpServers": {
    "mcpgrade": { "command": "npx", "args": ["-y", "mcpgrade", "serve"] }
  }
}

Three tools, deliberately: grade_mcp_server, explain_rule, list_grading_rules.

Security. In serve mode the target string is chosen by a model, so local launch commands are restricted to an allowlist (npx, node, python, python3, uv, uvx, deno, bun, docker). URLs and .json snapshots are always allowed. The CLI has no such restriction.

Dogfooding. The serve catalog is graded by mcpgrade in CI and must score an A with zero errors (test/serve.test.ts) — if a change drops the grade, the fix is the catalog, not the threshold. Current self-score:

  A   96/100        3 tools · 0 errors · 1 warning

The one warning is a rule I disagree with on this catalog: S005 flags target for describing a fixed value set in prose without an enum. The prose lists permitted command prefixes for an otherwise free-form string, so an enum is not expressible. Left in place rather than suppressed — the ruleset is opinionated by design, and disagreements belong in the open (#10).

CI

mcpgrade <target> --json                # machine-readable
mcpgrade <target> --fail-on error       # exit 1 on errors — gate your PRs
mcpgrade <target> --disable S008,N001   # tune rules
mcpgrade rules                          # list all rules

Why

I integrate first-party and third-party MCP connectors into a production AI agent for a living. Most MCP servers fail agents in the same ten ways — none of which show up in a spec compliance check. So I wrote the

Related servers

n8n

by n8n-io

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

NOASSERTION198,904

@modelcontextprotocol/server-everything

Official

by modelcontextprotocol

MCP server that exercises all the features of the MCP protocol

89,105

@modelcontextprotocol/server-filesystem

Official

by modelcontextprotocol

MCP server for filesystem access

SEE LICENSE IN LICENSE89,105

mcp-server-fetch

Official

by modelcontextprotocol

A Model Context Protocol server providing tools to fetch and convert web content for usage by LLMs

89,105