swarm-x402-mcp
swarm-x402-mcp is an MCP server from SWARM that lets AI agents pay per call to use SWARM's small services via the x402 protocol. Users do not need to register an account or apply for an API key; they simply pay per call in USDC on the Base mainnet, and settlement occurs only after the service is successfully delivered. It provides six tools and can be connected to any MCP client such as Claude Code, Cursor, and Claude Desktop. Configuration requires Node.js 20 or higher and setting the dedicated wallet private key SWARM_WALLET_KEY; a per-call price cap can also be set via SWARM_MAX_USD (default 1 USD). Each call first reads the 402 quote, confirms the network is Base mainnet and the price does not exceed the cap, and then signs the payment; on failure it returns whether a charge occurred and whether it is safe to retry.