MCP Server Studio

AgentPay — trust routing + spend caps for x402 agents MCP server

Buyer-side trust oracle + capped sessions for x402 agents: verified_route, receipts, 17 free tools.

Registry name: io.github.romudille-bit/agentpay

Publisher
romudille-bit
Runs
Local or hosted
Package
npm
Version
2.9.2
Category
AI & agents
Updated
2026-11-18

Source code on GitHub

Set up AgentPay — trust routing + spend caps for x402 agents (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "agentpay": {
      "command": "npx",
      "args": [
        "-y",
        "@romudille/[email protected]"
      ],
      "env": {
        "AGENTPAY_BASE_KEY": "<AGENTPAY_BASE_KEY>",
        "AGENTPAY_ENABLE_PAID": "<AGENTPAY_ENABLE_PAID>",
        "AGENTPAY_MAX_SPEND": "<AGENTPAY_MAX_SPEND>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add agentpay -e AGENTPAY_BASE_KEY='<AGENTPAY_BASE_KEY>' -e AGENTPAY_ENABLE_PAID='<AGENTPAY_ENABLE_PAID>' -e AGENTPAY_MAX_SPEND='<AGENTPAY_MAX_SPEND>' -- npx -y @romudille/[email protected]

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "agentpay": {
      "command": "npx",
      "args": [
        "-y",
        "@romudille/[email protected]"
      ],
      "env": {
        "AGENTPAY_BASE_KEY": "<AGENTPAY_BASE_KEY>",
        "AGENTPAY_ENABLE_PAID": "<AGENTPAY_ENABLE_PAID>",
        "AGENTPAY_MAX_SPEND": "<AGENTPAY_MAX_SPEND>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "agentpay": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@romudille/[email protected]"
      ],
      "env": {
        "AGENTPAY_BASE_KEY": "<AGENTPAY_BASE_KEY>",
        "AGENTPAY_ENABLE_PAID": "<AGENTPAY_ENABLE_PAID>",
        "AGENTPAY_MAX_SPEND": "<AGENTPAY_MAX_SPEND>"
      }
    }
  }
}

Windsurf

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

{
  "mcpServers": {
    "agentpay": {
      "command": "npx",
      "args": [
        "-y",
        "@romudille/[email protected]"
      ],
      "env": {
        "AGENTPAY_BASE_KEY": "<AGENTPAY_BASE_KEY>",
        "AGENTPAY_ENABLE_PAID": "<AGENTPAY_ENABLE_PAID>",
        "AGENTPAY_MAX_SPEND": "<AGENTPAY_MAX_SPEND>"
      }
    }
  }
}

Set up AgentPay — trust routing + spend caps for x402 agents (hosted url)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "agentpay": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://agentpay.tools/mcp"
      ]
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add --transport http agentpay https://agentpay.tools/mcp

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "agentpay": {
      "url": "https://agentpay.tools/mcp"
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "agentpay": {
      "type": "http",
      "url": "https://agentpay.tools/mcp"
    }
  }
}

Windsurf

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

{
  "mcpServers": {
    "agentpay": {
      "serverUrl": "https://agentpay.tools/mcp"
    }
  }
}

Settings

NameRequiredWhat it is
AGENTPAY_BASE_KEYNoOptional EVM private key for wallet mode: settle paid tools in-place (gasless EIP-3009 on Base). Keyless free-tools mode works without it.
AGENTPAY_ENABLE_PAIDNoSet to 1 to settle paid tools from the wallet the server mints on first run (fund it with USDC on Base first). Off by default.
AGENTPAY_MAX_SPENDNoHard per-session spend cap in USD when wallet mode is enabled (default 0.10).

More ai & agents MCP servers