Skip to content
MCP server

x402 Conformance

Check x402 payment responses and prove a server never serves before settlement

Runs locally

x402 Conformance is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
What it can do
Can change data (2 tools)
Version
1.6.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add x402-conformance -- npx -y x402-conformance-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "x402-conformance": {
      "command": "npx",
      "args": [
        "-y",
        "x402-conformance-mcp"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "x402-conformance": {
      "command": "npx",
      "args": [
        "-y",
        "x402-conformance-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "x402-conformance": {
      "command": "npx",
      "args": [
        "-y",
        "x402-conformance-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "x402-conformance": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "x402-conformance-mcp"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add x402-conformance -- npx -y x402-conformance-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.x402-conformance]
command = "npx"
args = ["-y", "x402-conformance-mcp"]

Codex setup guide

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

{
  "mcpServers": {
    "x402-conformance": {
      "command": "npx",
      "args": [
        "-y",
        "x402-conformance-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "x402-conformance": {
          "command": "npx",
          "args": [
            "-y",
            "x402-conformance-mcp"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user x402-conformance npx -- -y x402-conformance-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "x402-conformance": {
          "command": "npx",
          "args": [
            "-y",
            "x402-conformance-mcp"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "x402-conformance": {
          "command": "npx",
          "args": [
            "-y",
            "x402-conformance-mcp"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "x402-conformance": {
          "command": "npx",
          "args": [
            "-y",
            "x402-conformance-mcp"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "x402-conformance": {
          "command": "npx",
          "args": [
            "-y",
            "x402-conformance-mcp"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "x402-conformance": {
          "command": "npx",
          "args": [
            "-y",
            "x402-conformance-mcp"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "x402-conformance": {
          "command": "npx",
          "args": [
            "-y",
            "x402-conformance-mcp"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "x402-conformance": {
          "command": "npx",
          "args": [
            "-y",
            "x402-conformance-mcp"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About x402 Conformance

x402 is a payment scheme built on HTTP 402 responses, and this server turns the open x402-conformance suite into agent tools. It uses the same check IDs and the same x402-conformance.report/1 report as the command line tool, the GitHub Action and the test matchers. The README says it never pays, signs or touches mainnet.

There are two families of checks. P1 to P7 examine the 402 answer from one unpaid GET to a paid URL. R0 to R10 probe your own server on loopback against a facilitator double started by the tool, looking for content served on a timeout, a broken answer, a pending settlement, a failure or a duplicate. A built-in demo server with a switchable fault lets you see a pass and a failure with no wallet or setup.

Failing reports can be turned into anonymised cases for the public corpus; the share tool prepares a pre-filled issue link and nothing is sent until you decide. The same checks are available to the Vercel AI SDK and LangChain as four read-only tools. It is Apache-2.0 licensed and runs over stdio via npx or Docker.

Tools this server provides (7)

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

From the tool list in its README, going by the names, 2 of 7 tools change data; 3 names don't say.

From the server's own tool labels and tool names; not verified by us.

x402_check_payment_requiredName suggests: reads
Check a paid URL's 402 answer.
x402_demo
Run checks against a built-in demo server.
x402_start_facilitator_doubleName suggests: changes
Start a loopback facilitator double.
x402_probe_resource_server
Probe a loopback resource server.
x402_stop_facilitator_doubleName suggests: changes
Stop the facilitator double.
x402_explain_checkName suggests: reads
Explain a check and how to fix a failure.
x402_share_case
Prepare an anonymised corpus case.

What it does

402 answer check
One unpaid GET validates a paid URL's response against P1-P7.
Server probing
R0-R10 test your loopback server against a facilitator double.
Built-in demo
Run the checks with a good or faulty demo server, no wallet needed.
Fix guidance
Explain a check ID and how to fix a failure.
Shareable cases
Prepare anonymised corpus cases and an issue link.
SDK adapters
AI SDK and LangChain adapters expose four read-only tools.

Good for

  • Verify a paid endpoint returns a valid x402 answer
  • Prove your server withholds content until settlement
  • Reproduce a settlement bug with the demo fault
  • Look up what failed check R3 means

Pricing

Open source

Free, Apache-2.0

x402 Conformance FAQ

Does x402 Conformance move money?

No, the README says it never pays, signs or touches mainnet.

Can I run x402 Conformance in Docker?

Yes, an image runs it over stdio when started with no arguments.

Is anything sent without my approval?

No. The share tool only prepares an anonymised case and a link; you decide whether to submit.

What licence is x402 Conformance under?

Apache-2.0.

Does x402 Conformance work outside MCP clients?

Yes, adapters exist for the Vercel AI SDK and LangChain.

Is x402 Conformance free?

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

How do I add x402 Conformance to Claude Code?

Run this command in your terminal: claude mcp add x402-conformance -- npx -y x402-conformance-mcp

What are the best alternatives to x402 Conformance?

The closest alternatives to x402 Conformance are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers