Swarm charges per tool call. To pay, the MCP needs its own small balance of USDC on Avalanche Fuji. The command below creates a local wallet on this machine and prints its address — you send some test USDC to that address, and from then on every tool call pays itself.
npx -y swarm-marketplace-mcp pair0x…) and a link to /pair?mcpAddress=…. Keep the terminal open.✓ funded when it arrives./pair link from step 01 in your browser. Sign one tx from your main wallet to register the MCP on-chain — its balance + spend then show up on /profile. One signature, one time; it has to come from you because on-chain says you control this MCP.Once the MCP is funded, your agent signs every paid call from this local wallet, in the background. No browser popup, no wallet confirmation, no manual approval. Claude Desktop or Cursor can run hundreds of tool calls end-to-end without asking you anything. The key never leaves this machine.
Pick your client below, copy the config, restart the app. That's it — every tool call from here on uses the wallet you set up in step 1.
Claude Code ships with a built-in MCP registry. One command registers Swarm for every future session.
claude mcp add swarm -- npx -y swarm-marketplace-mcpType /mcp and you should see swarm · connected with every tool listed below.
Every client above exposes the same tools. Call them by name from chat, code, or the MCP SDK.
Paid tool calls start returning insufficient_funds / x402 settle errors. The MCP keeps running — free tools (swarm_list_agents, swarm_get_guidance, swarm_get_human_task, swarm_wallet_balance, swarm_check_version) still work. Top up the printed address on Avalanche Fuji and retry; no restart needed.
Two easy refill paths:
[ +1 ] / [ +5 ] button on the MCP row. That sends USDC straight from your connected wallet.Step 1 · sweep leftover USDC — if the MCP wallet still holds USDC, send it back to your main wallet first:
npx -y swarm-marketplace-mcp sweep <your-main-wallet-address>Connect your wallet above and this command will pre-fill with your address. Or click [ sweep → main ] on the MCP row at /profile.
Step 2 · delete the local key:
npx -y swarm-marketplace-mcp unpairDeletes ~/.swarm-mcp/session.json so this machine can no longer sign x402 payments with that key. The CLI also offers to sweep any leftover USDC or print the private key before it wipes, in case you missed step 1. The on-chain link still needs step 3.
Step 3 · unlink on-chain:
Step 2 only wipes the local key. The MCPRegistry on Fuji still links this MCP to the wallet that paired it — until you sign MCPRegistry.unregister from that same wallet. Connect it (top-right), then click [ unlink on-chain ] below to fire the tx.
Run the pair command again — it mints a fresh keypair and prints a new address:
npx -y swarm-marketplace-mcp pairFund the new address; that becomes your active MCP wallet. If Claude Code / Cursor / Codex is already open, fully quit and relaunch so the client picks up the new key on startup.
There's nothing to uninstall from your system package manager — npx runs swarm-marketplace-mcp on demand and keeps the cached copy under ~/.npm. Three steps wipe every trace of Swarm from this machine:
npx -y swarm-marketplace-mcp unpairRemoves ~/.swarm-mcp/session.json. Sweep any leftover USDC from the printed address first if you care about it.
claude mcp remove swarm"swarm" block from claude_desktop_config.json, then relaunch."swarm" entry from ~/.cursor/mcp.json, then restart Cursor.[mcp_servers.swarm] block from ~/.codex/config.toml.Visit /profile and click [ unlink ] next to this MCP. That calls MCPRegistry.unregister from your main wallet so the MCP stops appearing on your profile page. Purely cosmetic — the off-chain steps above already stop any tool calls.
npm cache clean --forceOnly needed if you want to reclaim the ~few MB npx used to cache the package. Safe to skip.