PluginBench
MCP Server

three.ws Agent Payments MCP Server

io.github.nirholas/agentcore-payments-mcp

What is the three.ws Agent Payments MCP server?

Governed x402 payment sessions: pay any endpoint with budget, allowlist & per-tx caps, no key.

How to install three.ws Agent Payments

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • THREE_WS_SESSION
    secret

    Your three.ws session token (value of the `__Host-sid` cookie from a signed-in browser). Required for account management operations: create_payment_session, list_payment_sessions, check_payment_session, cancel_payment_session.

  • PAYMENT_SESSION_TOKEN
    secret

    A payment session bearer token (starts with 'pss_') from create_payment_session. Used by the agent for pay_with_session calls when no inline token is passed. Treat like a spending card — it authorizes payments up to the session's budget.

  • THREE_WS_BASE

    Base URL of the three.ws API. Override only when self-hosting or targeting a preview deployment.

  • THREE_WS_TIMEOUT_MS

    Per-request HTTP timeout in milliseconds. x402 payments involve on-chain settlement so this should be generous (default: 30000).

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "agentcore-payments-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/agentcore-payments-mcp"
      ],
      "env": {
        "THREE_WS_SESSION": "<YOUR_THREE_WS_SESSION>",
        "PAYMENT_SESSION_TOKEN": "<YOUR_PAYMENT_SESSION_TOKEN>",
        "THREE_WS_BASE": "<YOUR_THREE_WS_BASE>",
        "THREE_WS_TIMEOUT_MS": "<YOUR_THREE_WS_TIMEOUT_MS>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "agentcore-payments-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/agentcore-payments-mcp"
      ],
      "env": {
        "THREE_WS_SESSION": "<YOUR_THREE_WS_SESSION>",
        "PAYMENT_SESSION_TOKEN": "<YOUR_PAYMENT_SESSION_TOKEN>",
        "THREE_WS_BASE": "<YOUR_THREE_WS_BASE>",
        "THREE_WS_TIMEOUT_MS": "<YOUR_THREE_WS_TIMEOUT_MS>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "agentcore-payments-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/agentcore-payments-mcp"
      ],
      "env": {
        "THREE_WS_SESSION": "<YOUR_THREE_WS_SESSION>",
        "PAYMENT_SESSION_TOKEN": "<YOUR_PAYMENT_SESSION_TOKEN>",
        "THREE_WS_BASE": "<YOUR_THREE_WS_BASE>",
        "THREE_WS_TIMEOUT_MS": "<YOUR_THREE_WS_TIMEOUT_MS>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "agentcore-payments-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/agentcore-payments-mcp"
      ],
      "env": {
        "THREE_WS_SESSION": "<YOUR_THREE_WS_SESSION>",
        "PAYMENT_SESSION_TOKEN": "<YOUR_PAYMENT_SESSION_TOKEN>",
        "THREE_WS_BASE": "<YOUR_THREE_WS_BASE>",
        "THREE_WS_TIMEOUT_MS": "<YOUR_THREE_WS_TIMEOUT_MS>"
      }
    }
  }
}
Claude Code
claude mcp add agentcore-payments-mcp --env THREE_WS_SESSION=<YOUR_THREE_WS_SESSION> --env PAYMENT_SESSION_TOKEN=<YOUR_PAYMENT_SESSION_TOKEN> --env THREE_WS_BASE=<YOUR_THREE_WS_BASE> --env THREE_WS_TIMEOUT_MS=<YOUR_THREE_WS_TIMEOUT_MS> -- npx -y @three-ws/agentcore-payments-mcp

Related MCP servers

3D AI Agent Avatar — render any GLB, give it a Solana wallet, a voice, and pump.fun powers.

View repository →

MCP tools from three.ws: free + paid text-to-3D, rigging, agent reputation, market intel.

View repository →

UCAI — The ABI-to-MCP Server Generator. Convert any smart contract ABI into an AI-ready MCP server.

View repository →

Trending agents and coins, the $THREE holder leaderboard, and the site-wide activity ticker.

View repository →

Browse the AgenC on-chain task marketplace, query the agent registry, and link identities.

View repository →

Self-custodial pump.fun sniper: arm strategies, snipe, manage positions. Simulate by default.

View repository →