MCP Server Studio

Anchor X402 MCP server

x402-paid agent tools: 18 over HTTP, 14 over stdio. USDC per call, no API key.

Registry name: io.github.hypeprinter007-stack/anchor-x402

Publisher
hypeprinter007-stack
Runs
Local or hosted
Package
npm
Version
0.3.2
Category
Developer tools
Updated
2026-08-14

Source code on GitHub

Set up Anchor X402 (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "anchor-x402": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "ANCHOR_WALLET_PRIVATE_KEY": "<ANCHOR_WALLET_PRIVATE_KEY>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add anchor-x402 -e ANCHOR_WALLET_PRIVATE_KEY='<ANCHOR_WALLET_PRIVATE_KEY>' -- npx -y [email protected]

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "anchor-x402": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "ANCHOR_WALLET_PRIVATE_KEY": "<ANCHOR_WALLET_PRIVATE_KEY>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "anchor-x402": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "ANCHOR_WALLET_PRIVATE_KEY": "<ANCHOR_WALLET_PRIVATE_KEY>"
      }
    }
  }
}

Windsurf

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

{
  "mcpServers": {
    "anchor-x402": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "ANCHOR_WALLET_PRIVATE_KEY": "<ANCHOR_WALLET_PRIVATE_KEY>"
      }
    }
  }
}

Set up Anchor X402 (hosted url)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "anchor-x402": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.anchor-x402.com/mcp"
      ]
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add --transport http anchor-x402 https://api.anchor-x402.com/mcp

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "anchor-x402": {
      "url": "https://api.anchor-x402.com/mcp"
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "anchor-x402": {
      "type": "http",
      "url": "https://api.anchor-x402.com/mcp"
    }
  }
}

Windsurf

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

{
  "mcpServers": {
    "anchor-x402": {
      "serverUrl": "https://api.anchor-x402.com/mcp"
    }
  }
}

Settings

NameRequiredWhat it is
ANCHOR_WALLET_PRIVATE_KEYYesEVM private key (0x-prefixed hex). The wallet pays for x402 calls in USDC on Base mainnet. Fund with USDC before use.

More developer tools MCP servers