402MCP.org — HTTP 402 & Agent Payment Registry

v1.1.1
org.402mcp/registry Checked 3 days ago Published 1 month ago

Decode HTTP 402 challenges (L402, x402, MPP) and choose agent payment rails from an open registry.

Values you need

VariableWhat it is
MCP_402_OFFLINEoptional Set to 1 to use the bundled registry snapshot and never fetch.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add registry -- npx -y --package=@402mcp/mcp@1.1.1 402mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "registry": {
      "args": [
        "-y",
        "--package=@402mcp/mcp@1.1.1",
        "402mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "registry": {
      "args": [
        "-y",
        "--package=@402mcp/mcp@1.1.1",
        "402mcp"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "registry": {
      "args": [
        "-y",
        "--package=@402mcp/mcp@1.1.1",
        "402mcp"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.registry]
command = "npx"
args = ["-y", "--package=@402mcp/mcp@1.1.1", "402mcp"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http registry https://402mcp.org/api/v1/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "registry": {
      "args": [
        "-y",
        "mcp-remote",
        "https://402mcp.org/api/v1/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "registry": {
      "url": "https://402mcp.org/api/v1/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "registry": {
      "type": "http",
      "url": "https://402mcp.org/api/v1/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.registry]
command = "npx"
args = ["-y", "mcp-remote", "https://402mcp.org/api/v1/mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: decode_402_challenge, recommend_payment_rail, search_402_solutions, get_solution, get_scheme_reference, probe_402_support, get_best_payment_solution.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json