MCP server for SWARM's x402 services: pay per call in USDC on Base, no account or API key.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add swarm-x402 --env SWARM_WALLET_KEY='<SWARM_WALLET_KEY>' -- npx -y swarm-x402-mcp~/.codex/config.toml
[mcp_servers.swarm-x402]
command = "npx"
args = ["-y", "swarm-x402-mcp"]
env = { SWARM_WALLET_KEY = "<SWARM_WALLET_KEY>" }
# codex mcp add swarm-x402 --env SWARM_WALLET_KEY='<SWARM_WALLET_KEY>' -- npx -y swarm-x402-mcp~/.cursor/mcp.json
{
"mcpServers": {
"swarm-x402": {
"command": "npx",
"args": [
"-y",
"swarm-x402-mcp"
],
"env": {
"SWARM_WALLET_KEY": "<SWARM_WALLET_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"swarm-x402": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"swarm-x402-mcp"
],
"env": {
"SWARM_WALLET_KEY": "<SWARM_WALLET_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"swarm-x402": {
"command": "npx",
"args": [
"-y",
"swarm-x402-mcp"
],
"env": {
"SWARM_WALLET_KEY": "<SWARM_WALLET_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"swarm-x402": {
"command": "npx",
"args": [
"-y",
"swarm-x402-mcp"
],
"env": {
"SWARM_WALLET_KEY": "<SWARM_WALLET_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"swarm-x402": {
"command": "npx",
"args": [
"-y",
"swarm-x402-mcp"
],
"env": {
"SWARM_WALLET_KEY": "<SWARM_WALLET_KEY>"
}
}
}
}Environment variables
SWARM_WALLET_KEY
Replace the placeholders with your own credentials and keep them out of version control.