MCP Server Studio

Agenticpay MCP server

x402 USDC paywall bridge for MCP — pay per tool call on Solana.

Registry name: io.github.krystiangw/agenticpay

Publisher
krystiangw
Runs
Runs locally
Package
npm
Version
0.0.1
Category
Communication
Updated
2026-05-01

Source code on GitHub

Set up Agenticpay (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "agenticpay": {
      "command": "npx",
      "args": [
        "-y",
        "@agenticpay/[email protected]"
      ],
      "env": {
        "AGENTICPAY_BRIDGE_KEYPAIR": "<AGENTICPAY_BRIDGE_KEYPAIR>",
        "AGENTICPAY_BRIDGE_TOOLS": "<AGENTICPAY_BRIDGE_TOOLS>",
        "AGENTICPAY_BRIDGE_NETWORK": "<AGENTICPAY_BRIDGE_NETWORK>",
        "AGENTICPAY_BRIDGE_RPC": "<AGENTICPAY_BRIDGE_RPC>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add agenticpay -e AGENTICPAY_BRIDGE_KEYPAIR='<AGENTICPAY_BRIDGE_KEYPAIR>' -e AGENTICPAY_BRIDGE_TOOLS='<AGENTICPAY_BRIDGE_TOOLS>' -e AGENTICPAY_BRIDGE_NETWORK='<AGENTICPAY_BRIDGE_NETWORK>' -e AGENTICPAY_BRIDGE_RPC='<AGENTICPAY_BRIDGE_RPC>' -- npx -y @agenticpay/[email protected]

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "agenticpay": {
      "command": "npx",
      "args": [
        "-y",
        "@agenticpay/[email protected]"
      ],
      "env": {
        "AGENTICPAY_BRIDGE_KEYPAIR": "<AGENTICPAY_BRIDGE_KEYPAIR>",
        "AGENTICPAY_BRIDGE_TOOLS": "<AGENTICPAY_BRIDGE_TOOLS>",
        "AGENTICPAY_BRIDGE_NETWORK": "<AGENTICPAY_BRIDGE_NETWORK>",
        "AGENTICPAY_BRIDGE_RPC": "<AGENTICPAY_BRIDGE_RPC>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "agenticpay": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@agenticpay/[email protected]"
      ],
      "env": {
        "AGENTICPAY_BRIDGE_KEYPAIR": "<AGENTICPAY_BRIDGE_KEYPAIR>",
        "AGENTICPAY_BRIDGE_TOOLS": "<AGENTICPAY_BRIDGE_TOOLS>",
        "AGENTICPAY_BRIDGE_NETWORK": "<AGENTICPAY_BRIDGE_NETWORK>",
        "AGENTICPAY_BRIDGE_RPC": "<AGENTICPAY_BRIDGE_RPC>"
      }
    }
  }
}

Windsurf

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

{
  "mcpServers": {
    "agenticpay": {
      "command": "npx",
      "args": [
        "-y",
        "@agenticpay/[email protected]"
      ],
      "env": {
        "AGENTICPAY_BRIDGE_KEYPAIR": "<AGENTICPAY_BRIDGE_KEYPAIR>",
        "AGENTICPAY_BRIDGE_TOOLS": "<AGENTICPAY_BRIDGE_TOOLS>",
        "AGENTICPAY_BRIDGE_NETWORK": "<AGENTICPAY_BRIDGE_NETWORK>",
        "AGENTICPAY_BRIDGE_RPC": "<AGENTICPAY_BRIDGE_RPC>"
      }
    }
  }
}

Settings

NameRequiredWhat it is
AGENTICPAY_BRIDGE_KEYPAIRYesSolana keypair as 64-byte JSON array (the format `solana-keygen new` writes). The bridge signs each x402 payment with this keypair.
AGENTICPAY_BRIDGE_TOOLSYesJSON array of paid tool definitions. Each entry: { name, description, url, inputSchema, headers? }
AGENTICPAY_BRIDGE_NETWORKNoCAIP-2 network identifier. Devnet: solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1
AGENTICPAY_BRIDGE_RPCNoSolana JSON-RPC URL

More communication MCP servers