What is the x402 Wallet MCP server?
Self-custodial x402 wallet for AI agents: discover, inspect, and pay any x402 service in USDC.
How to install x402 Wallet
Copy-paste configuration for popular MCP clients.
SOLANA_SECRET_KEYsecretBase58 (or JSON byte-array) Solana secret key that signs payments and holds the USDC. Not needed for the read tools (find_services, inspect_endpoint, or x402_wallet with an explicit address). Treat like cash.
SOLANA_RPC_URLSolana mainnet RPC endpoint. Defaults to the public cluster — bring your own (Helius / QuickNode / Triton) for production traffic.
MAX_PAY_USDMax USD a single pay_and_call may spend. Bounds a runaway or injected payment.
REQUIRE_CONFIRMWhen on (default), pay_and_call refuses until re-issued with confirm:true. Set 0/false to disable the gate.
THREE_WS_BASEBase URL of the three.ws API that serves /api/bazaar/search for find_services. Override only when self-hosting.
{
"mcpServers": {
"x402-mcp": {
"command": "npx",
"args": [
"-y",
"@three-ws/x402-mcp"
],
"env": {
"SOLANA_SECRET_KEY": "<YOUR_SOLANA_SECRET_KEY>",
"SOLANA_RPC_URL": "<YOUR_SOLANA_RPC_URL>",
"MAX_PAY_USD": "<YOUR_MAX_PAY_USD>",
"REQUIRE_CONFIRM": "<YOUR_REQUIRE_CONFIRM>",
"THREE_WS_BASE": "<YOUR_THREE_WS_BASE>"
}
}
}
}{
"mcpServers": {
"x402-mcp": {
"command": "npx",
"args": [
"-y",
"@three-ws/x402-mcp"
],
"env": {
"SOLANA_SECRET_KEY": "<YOUR_SOLANA_SECRET_KEY>",
"SOLANA_RPC_URL": "<YOUR_SOLANA_RPC_URL>",
"MAX_PAY_USD": "<YOUR_MAX_PAY_USD>",
"REQUIRE_CONFIRM": "<YOUR_REQUIRE_CONFIRM>",
"THREE_WS_BASE": "<YOUR_THREE_WS_BASE>"
}
}
}
}{
"mcpServers": {
"x402-mcp": {
"command": "npx",
"args": [
"-y",
"@three-ws/x402-mcp"
],
"env": {
"SOLANA_SECRET_KEY": "<YOUR_SOLANA_SECRET_KEY>",
"SOLANA_RPC_URL": "<YOUR_SOLANA_RPC_URL>",
"MAX_PAY_USD": "<YOUR_MAX_PAY_USD>",
"REQUIRE_CONFIRM": "<YOUR_REQUIRE_CONFIRM>",
"THREE_WS_BASE": "<YOUR_THREE_WS_BASE>"
}
}
}
}{
"servers": {
"x402-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@three-ws/x402-mcp"
],
"env": {
"SOLANA_SECRET_KEY": "<YOUR_SOLANA_SECRET_KEY>",
"SOLANA_RPC_URL": "<YOUR_SOLANA_RPC_URL>",
"MAX_PAY_USD": "<YOUR_MAX_PAY_USD>",
"REQUIRE_CONFIRM": "<YOUR_REQUIRE_CONFIRM>",
"THREE_WS_BASE": "<YOUR_THREE_WS_BASE>"
}
}
}
}claude mcp add x402-mcp --env SOLANA_SECRET_KEY=<YOUR_SOLANA_SECRET_KEY> --env SOLANA_RPC_URL=<YOUR_SOLANA_RPC_URL> --env MAX_PAY_USD=<YOUR_MAX_PAY_USD> --env REQUIRE_CONFIRM=<YOUR_REQUIRE_CONFIRM> --env THREE_WS_BASE=<YOUR_THREE_WS_BASE> -- npx -y @three-ws/x402-mcpRelated 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 →