Skip to content
MCP server

x402 Conformance Tools

Non-custodial x402 checks: decode 402 responses, verify settlements, lint specs

Runs locally

x402 Conformance Tools is an open-source MCP server for finance and payments. 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 (1 tool)
Version
0.1.2
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add x402-conformance-mcp -- npx -y @uigstudios/x402-conformance-mcp

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

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

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

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

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

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

    Junie

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

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

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.

Tools this server provides (6)

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

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_responseName suggests: reads
Decodes a PAYMENT-RESPONSE and can recompute on-chain balance change.
check_complianceName suggests: reads
Static scan for hardcoded chain and amount constants.
lint_scheme_spec
Diffs a draft scheme spec against the bundled template.
validate_extensionName suggests: reads
Structural check of an extension envelope.
run_conformanceName suggests: changes
Runs verify, settle, idempotency and rejection tests against a facilitator.

What it does

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

Pricing

Open source

x402 Conformance Tools 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.

How AIPoweredBot checks servers