PHANTOM ID — agent payments (USDC on Base)

v0.3.2
io.github.Arbromagency-Sato/phantom-mcp-server Checked 3 days ago Published 26 days ago

PHANTOM ID MCP payment server: agent-to-agent USDC payments on Base.

Values you need

VariableWhat it is
PHANTOM_API_URLoptional PHANTOM API base URL (default https://pay.idphantom.com)
PHANTOM_API_KEYrequired secret PHANTOM API key for the agent account (create via POST /v1/register or /admin/accounts)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add phantom-mcp-server -e 'PHANTOM_API_KEY=<PHANTOM_API_KEY>' -- npx -y --package=@phantomid/mcp-server@0.3.2 phantom-mcp-server
Add to claude_desktop_config.json
{
  "mcpServers": {
    "phantom-mcp-server": {
      "args": [
        "-y",
        "--package=@phantomid/mcp-server@0.3.2",
        "phantom-mcp-server"
      ],
      "command": "npx",
      "env": {
        "PHANTOM_API_KEY": "<PHANTOM_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "phantom-mcp-server": {
      "args": [
        "-y",
        "--package=@phantomid/mcp-server@0.3.2",
        "phantom-mcp-server"
      ],
      "command": "npx",
      "env": {
        "PHANTOM_API_KEY": "<PHANTOM_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "PHANTOM_API_KEY",
      "id": "phantom-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "phantom-mcp-server": {
      "args": [
        "-y",
        "--package=@phantomid/mcp-server@0.3.2",
        "phantom-mcp-server"
      ],
      "command": "npx",
      "env": {
        "PHANTOM_API_KEY": "${input:phantom-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.phantom-mcp-server]
command = "npx"
args = ["-y", "--package=@phantomid/mcp-server@0.3.2", "phantom-mcp-server"]
env = { "PHANTOM_API_KEY" = "<PHANTOM_API_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http phantom-mcp-server https://pay.idphantom.com/mcp --header 'Authorization: <Authorization>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "phantom-mcp-server": {
      "args": [
        "-y",
        "mcp-remote",
        "https://pay.idphantom.com/mcp",
        "--header",
        "Authorization: <Authorization>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "phantom-mcp-server": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "url": "https://pay.idphantom.com/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "phantom-mcp-server": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "type": "http",
      "url": "https://pay.idphantom.com/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.phantom-mcp-server]
command = "npx"
args = ["-y", "mcp-remote", "https://pay.idphantom.com/mcp", "--header", "Authorization: <Authorization>"]

For AI agents

  1. Ask the user for: PHANTOM_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: phantom_register, phantom_authorize_budget, phantom_bind_identity, quote_payment, authorize_payment, submit_payment, verify_payment.
  5. 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