# x402 Conformance Tools

> x402 Conformance Tools is an open-source MCP server for finance and payments. Non-custodial x402 checks: decode 402 responses, verify settlements, lint specs. 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/drvelvetfog/x402-pilot/tree/HEAD/mcp/x402-conformance-mcp
- **MCP Registry name:** io.github.DrVelvetFog/x402-conformance-mcp
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

x402 is a payment-over-HTTP flow, and this server gives an agent six runnable checks for it. It holds no keys and signs nothing; the only step that can settle real value, inside `run_conformance`, runs when you pass a pre-signed payload and set `allowSettle: true`, so signing stays in your own SDK.

The most distinctive tool is `inspect_payment_response`, which can recompute what actually moved on-chain: it compares the net balance change to the `payTo` address with the advertised atomic amount, using Sui RPC or balance changes you supply for any chain. That binds the result to the ledger rather than the operator's report.

Other tools decode `PaymentRequired` responses, scan code for hardcoded chain IDs, decimals or literal asset addresses with file and line, lint a draft scheme spec against a bundled template, and validate extension envelopes. `run_conformance` assumes a facilitator with `POST /verify` and `POST /settle`. Results come back as pretty JSON.

## Features

- **402 decoding:** Parses a PaymentRequired response and flags missing economic fields.
- **On-chain recompute:** Checks the real balance change against the advertised amount.
- **Static compliance scan:** Finds hardcoded chain IDs, decimals and asset addresses with file:line.
- **Scheme spec linting:** Diffs a draft spec against a bundled template.
- **Extension validation:** Checks the info and schema envelope of an extension.
- **Facilitator conformance:** Drives verify, settle, idempotency and tamper rejection tests.

## Good for

- Check that a server's 402 response is well formed
- Confirm a payment actually settled on-chain
- Audit code for hardcoded payment constants
- Test a facilitator before integrating

## Install

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

```sh
claude mcp add x402-conformance-mcp -- npx -y @uigstudios/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-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@uigstudios/x402-conformance-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

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

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

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

```json
{
  "mcpServers": {
    "x402-conformance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@uigstudios/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-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@uigstudios/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-mcp -- npx -y @uigstudios/x402-conformance-mcp
```

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

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

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

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

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

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

```json
{
  "mcpServers": {
    "x402-conformance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@uigstudios/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-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@uigstudios/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-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@uigstudios/x402-conformance-mcp"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "x402-conformance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@uigstudios/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-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@uigstudios/x402-conformance-mcp"
      ]
    }
  }
}
```

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

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

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

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

```json
{
  "mcpServers": {
    "x402-conformance-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@uigstudios/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-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@uigstudios/x402-conformance-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 6 tools changes data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `decode_402`: Parses and validates a PaymentRequired (402) response.
- `inspect_payment_response` (name suggests: reads): Decodes a PAYMENT-RESPONSE and can recompute on-chain balance change.
- `check_compliance` (name suggests: reads): Static scan for hardcoded chain and amount constants.
- `lint_scheme_spec`: Diffs a draft scheme spec against the bundled template.
- `validate_extension` (name suggests: reads): Structural check of an extension envelope.
- `run_conformance` (name suggests: changes): Runs verify, settle, idempotency and rejection tests against a facilitator.

## FAQ

### Does x402 Conformance Tools hold or use my keys?

No. It holds no keys and signs nothing.

### When does x402 Conformance Tools settle real value?

Only when you pass a pre-signed payload and set `allowSettle: true` in `run_conformance`.

### Does x402 Conformance Tools need the x402-pilot plugin?

No. The npm package bundles a copy of the spec corpus and runs on its own.

### Which facilitator API does x402 Conformance Tools expect?

The standard one with `POST /verify` and `POST /settle`.

### Is x402 Conformance Tools free?

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

### How do I add x402 Conformance Tools to Claude Code?

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

### What are the best alternatives to x402 Conformance Tools?

The closest alternatives to x402 Conformance Tools 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-tools
