MCP Compliance MCP server
CLI tool and MCP server that tests MCP servers for spec compliance
not scanned yet
2 stars1.5k downloads/wk
Reviews
Write oneNobody has reviewed MCP Compliance yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
MCP Compliance tools
No tool declarations could be read from the package source. They show once the server is installed.
How MCP Compliance compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 91/100
- higher than 85% of 48,255 servers
- GitHub stars
- 2
- more than 75% of 28,688 servers
- Downloads a week
- 1,539
- more than 95% of 12,191 servers with a package
Release history: 7 versions in the registry since 2026-09-15, latest 2026-10-30, typically one every 8 days.
Install MCP Compliance in Claude Code, Cursor or VS Code
Runs npx -y @yawlabs/mcp-compliance on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add mcp-compliance -- npx -y @yawlabs/mcp-compliance
What the publisher says
From the MCP Compliance repository's README, as published. We do not edit it. Read it on GitHub
@yawlabs/mcp-compliance
Test any MCP server for spec compliance. Two test suites — 88 tests for MCP 2025-11-25 and 103 tests for MCP 2026-07-28 — covering transport, lifecycle, tools, resources, prompts, error handling, schema validation, and security. The tool probes the server and grades the newest spec revision it speaks, or you pin one with --spec-version. Works against HTTP endpoints (https://my-server.com/mcp) and stdio servers (npx @modelcontextprotocol/server-filesystem /tmp) alike. CLI, MCP server, and programmatic API.
Built and maintained by Yaw Labs.
One click adds this to your local Yaw MCP config so it's available in every Yaw Terminal session. Or install manually below.
Why this tool?
MCP servers are multiplying fast — but most ship without compliance testing. Broken transport handling, missing error codes, malformed schemas, and silent capability violations are common. Hand-rolling test scripts is tedious and incomplete.
This tool solves that:
- Two spec revisions, one tool — 88 tests for MCP 2025-11-25 (the initialize + session era) and 103 tests for MCP 2026-07-28 (stateless, per-request _meta, server/discover, caching hints, MRTR). Both cover the same 8 categories: transport, lifecycle, tools, resources, prompts, error handling, schema validation, and security. HTTP-specific tests (CORS, TLS, header validation, rate limiting) are gated out on stdio: the 2025-11-25 suite runs 85 tests on HTTP and 55 on stdio, the 2026-07-28 suite 99 and 75.
- Auto-detected revision — one server/discover probe tells the tool which era the server speaks; dual-era servers are graded against 2026-07-28 with a warning. Pin either revision with --spec-version. See Spec version.
- Capability-driven — tests adapt to what the server declares. If it says it supports tools, tool tests become required. No false failures for features the server doesn't claim.
- Graded scoring — A-F letter grade with a weighted score (required tests 70%, optional 30%). One number to communicate compliance.
- CI-ready — --strict mode exits with code 1 on required test failures. Drop it into any pipeline.
- Spec-referenced — every test links to the exact section of the MCP specification it validates. No ambiguity about what's being tested or why.
- Three interfaces — CLI for humans, MCP server for AI assistants, programmatic API for integration.
- Published methodology — the testing methodology and rule catalog are open (CC BY 4.0) so anyone can build compatible tooling or fork the rules.
Quick start
Remote HTTP server:
npx @yawlabs/mcp-compliance@latest test https://my-server.com/mcpLocal stdio server (the vast majority of MCP servers on npm):
# Pass the command directly, Inspector-style
npx @yawlabs/mcp-compliance@latest test npx @modelcontextprotocol/server-filesystem /tmp
# Or a local build
npx @yawlabs/mcp-compliance@latest test node ./dist/server.jsShortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Grade history
- 2026-09-19restoreB → Ascore 91
MCP Compliance: common questions
- Is MCP Compliance MCP server safe?
- Yes, by our scan: it is graded A (91/100). Read the MCP Compliance safety report
- How do I install MCP Compliance?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does MCP Compliance need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is MCP Compliance maintained?
- The last commit was 24 days ago (2026-10-11). The latest release is v0.21.1.
- How does MCP Compliance compare with other MCP servers?
- safety score 91/100 (higher than 85% of 48,255 servers); github stars 2 (more than 75% of 28,688 servers); downloads a week 1,539 (more than 95% of 12,191 servers with a package). Full comparison.