Skip to content
MCP server

MCP Compliance

Run an 88-test MCP spec compliance suite and get an A-F grade from CLI or agent

Runs locallyStatus and history
Pricing
Open source
Platforms
CLI, API
Runs
Locally
Version
0.21.3
Listing updated
2 days ago

About MCP Compliance

MCP Compliance is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.

The suite checks HTTP and stdio servers across eight categories: transport, lifecycle, tools, resources, prompts, error handling, schema validation and security. Security tests go beyond the spec: auth enforcement, TLS, session entropy, CORS and Origin validation, command, SQL, path-traversal and SSRF resistance, tool rug-pull and description poisoning, and stack-trace or internal-IP leakage.

The grade is weighted, with required tests worth 70% and optional tests 30%. Flags let you run or skip whole categories or single test IDs, and an authenticated target can take credentials per run. It ships as a CLI, an MCP server and a programmatic API.

In an agent you can ask it to explain a failing test ID and the spec section behind it. Published by Yaw Labs on npm, MIT licensed, with no API key; the suite talks only to the server you point it at.

Install

Run in a terminal

claude mcp add mcp-compliance -- npx -y @yawlabs/mcp-compliance

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp-compliance": {
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/mcp-compliance"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-compliance": {
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/mcp-compliance"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "mcp-compliance": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/mcp-compliance"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-compliance": {
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/mcp-compliance"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-compliance": {
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/mcp-compliance"
      ]
    }
  }
}

Tools this server provides (2)

Taken from the project documentation; the running server may differ.

mcp_compliance_test
Runs the suite against a URL or stdio command and returns grade, score and per-test results.
mcp_compliance_explain
Explains a test ID and the spec section behind it.

What it does

88 conformance tests
Covers transport through security in eight categories.
Weighted grade
Required tests count 70% and optional ones 30%.
Test selection
Run or skip categories or individual test IDs.
Test explanations
Describes what a test checks and why.
Three interfaces
CLI, MCP server and programmatic API.

Good for

  • Check a server in CI before release
  • Audit a third-party server before trusting it
  • Debug a failing JSON-RPC error code
  • Check a server for description poisoning

Pricing

Open source

MIT, free on npm

Prices change. Check yaw.sh before you buy.

MCP Compliance FAQ

Does it send data to Yaw Labs?

No. The suite talks only to the server you target.

Can it test stdio servers?

Yes, both HTTP endpoints and stdio commands.

Is an API key needed?

No.

What licence is it under?

MIT.

Is MCP Compliance free?

Yes. MCP Compliance is open source, so you can use and self-host it for free.

How do I add MCP Compliance to Claude Code?

Run this command in your terminal: claude mcp add mcp-compliance -- npx -y @yawlabs/mcp-compliance

What are the best alternatives to MCP Compliance?

The closest alternatives to MCP Compliance are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to MCP Compliance

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools