MCP Server
MCP
x402 Wallet
Self-custodial x402 wallet for AI agents: pay any service in USDC or $THREE from your own key.
Install
npx -y @three-ws/[email protected]
Configuration Example
{
"remotes": [],
"packages": [
{
"registryType": "npm",
"identifier": "@three-ws/x402-mcp",
"version": "0.2.2",
"runtimeHint": "npx",
"transport": {
"type": "stdio"
},
"environmentVariables": [
{
"description": "Base58 (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.",
"format": "string",
"isSecret": true,
"name": "SOLANA_SECRET_KEY"
},
{
"description": "Solana mainnet RPC endpoint. Defaults to the public cluster — bring your own (Helius / Quicknode / Triton) for production traffic.",
"format": "string",
"default": "https://api.mainnet-beta.solana.com",
"name": "SOLANA_RPC_URL"
},
{
"description": "Max USD a single pay_and_call may spend. Bounds a runaway or injected payment.",
"format": "number",
"default": "1",
"name": "MAX_PAY_USD"
},
{
"description": "When on (default), pay_and_call refuses until re-issued with confirm:true. Set 0/false to disable the gate.",
"format": "boolean",
"default": "true",
"name": "REQUIRE_CONFIRM"
},
{
"description": "Base URL of the three.ws API that serves /api/bazaar/search for find_services. Override only when self-hosting.",
"format": "string",
"default": "https://three.ws",
"name": "THREE_WS_BASE"
}
]
}
]
}
mcp
model-context-protocol
npm
By
Comments
Sign in to leave a comment