# x402 Conformance

> x402 Conformance is an open-source MCP server for developer tools. Check x402 payment responses and prove a server never serves before settlement. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/atsp-protocol/x402-conformance/tree/HEAD/ts/mcp
- **MCP Registry name:** io.github.atsp-protocol/x402-conformance
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

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

### Cursor (~/.cursor/mcp.json)

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

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

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

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

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

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

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

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

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

### Kiro (~/.kiro/settings/mcp.json)

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

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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_required` (name suggests: reads): Check a paid URL's 402 answer.
- `x402_demo`: Run checks against a built-in demo server.
- `x402_start_facilitator_double` (name suggests: changes): Start a loopback facilitator double.
- `x402_probe_resource_server`: Probe a loopback resource server.
- `x402_stop_facilitator_double` (name suggests: changes): Stop the facilitator double.
- `x402_explain_check` (name suggests: reads): Explain a check and how to fix a failure.
- `x402_share_case`: Prepare an anonymised corpus case.

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/x402-conformance
