X

X402 Data Gateway

by epistemedeus · io.github.epistemedeus/x402-data-gateway

Lets AI agents make automated USDC micro-payments on Base mainnet via x402/MPP to unlock clean structured data from URLs and other pay-per-call tools like Markdown reading, security scans, wallet enrichment, and settlement proof, with no API key or subscription.

Remote GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-epistemedeus-x402-data-gateway": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://agents.samedaydesk.com/mcp"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server. If the server uses OAuth (not known from registry metadata), mcp-remote opens a browser to sign in on first start and caches tokens in ~/.mcp-auth.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-epistemedeus-x402-data-gateway": {
      "url": "https://agents.samedaydesk.com/mcp"
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-epistemedeus-x402-data-gateway": {
      "type": "http",
      "url": "https://agents.samedaydesk.com/mcp"
    }
  }
}

The server will be available in the next Claude Code session. If the server uses OAuth, run /mcp inside Claude Code to authenticate.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-epistemedeus-x402-data-gateway": {
      "type": "http",
      "url": "https://agents.samedaydesk.com/mcp"
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-epistemedeus-x402-data-gateway": {
      "serverUrl": "https://agents.samedaydesk.com/mcp"
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-epistemedeus-x402-data-gateway": {
      "type": "streamableHttp",
      "url": "https://agents.samedaydesk.com/mcp"
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
PRICE No The default price for paid routes in USDC, e.g., $0.05.
PAY_TO No The wallet address that receives USDC settlement (e.g., 0x8904dF3DE6DFEe6a7C8cc38619d2f17806213Cee).
NETWORK No The blockchain network for settlement, e.g., eip155:8453 for Base mainnet.
FACILITATOR No The payment facilitator to use: 'cdp', 'xpay', or 'testnet'.
CDP_API_KEY_ID No Coinbase CDP API key ID, required when FACILITATOR=cdp.
MPP_SECRET_KEY Yes A random secret of at least 32 bytes used for MPP (Micro Payment Protocol) signing.
THE402_API_KEY No API key for the the402 marketplace integration.
COMMERCE_DATA_DIR Yes Directory path for persisting commerce telemetry data (e.g., /data).
THE402_SERVICE_ID No Service ID for the the402 integration.
CDP_API_KEY_SECRET No Coinbase CDP API key secret, required when FACILITATOR=cdp.
COMMERCE_ACTOR_SECRET Yes A random 32-byte secret used for pseudonymous actor identification in telemetry.
THE402_WEBHOOK_SECRET No Webhook secret for the the402 integration.
COMMERCE_PAYER_CLASSES No JSON array of {"address", "class"} records for classifying payers.
COMMERCE_EXTERNAL_SINCE No ISO timestamp after controlled launch canaries.
COMMERCE_INTERNAL_TOKEN Yes A random owner-canary token of at least 32 UTF-8 bytes used for internal validation requests.
COMMERCE_MCP_TYPED_SINCE No ISO timestamp baseline for the accepted typed-MCP producer generation.
COMMERCE_AGENT_DISCOVERY_SINCE No ISO timestamp baseline for prospective agent/indexer discovery reach.
COMMERCE_AGENT_SOURCE_DETAIL_SINCE No ISO timestamp after provider taxonomy release.
COMMERCE_SETTLEMENT_EVIDENCE_SINCE No ISO timestamp after settlement-proof release.

Similar servers