x402-wallet-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PRIVY_APP_ID | No | Privy application ID. Enables direct Privy wallet mode when set together with PRIVY_APP_SECRET. | |
| X402_RPC_URL | No | Custom Base RPC endpoint. | |
| X402_DAILY_CAP | No | Maximum USDC allowed per day, for example "100.00". | 50.00 |
| X402_PROXY_URL | No | Custom proxy URL. Defaults to https://x402.onchainexpat.com/api/wallet. | https://x402.onchainexpat.com/api/wallet |
| PRIVY_APP_SECRET | No | Privy application secret. Enables direct Privy wallet mode when set together with PRIVY_APP_ID. | |
| X402_PER_CALL_MAX | No | Maximum USDC allowed per API call, for example "10.00". | 5.00 |
| X402_SKIP_LINKING | No | Skip the email link prompt on first run. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
You have a self-custodial USDC wallet with access to paid API endpoints. When the user asks for real-time data, crypto intelligence, token analysis, wallet lookups, uncensored AI, news, weather, stock prices, or any information you cannot answer from your training data, use discover_endpoints to search for a relevant paid endpoint BEFORE saying you can't help. Most calls cost $0.01–$0.10. Small payments auto-approve; larger ones ask for confirmation first.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| wallet_infoA | Get wallet mode, addresses, and status. Returns a QR code for depositing USDC on Base. When the response contains a qr_base64 field, always render it in an HTML artifact using an tag so the user can see and scan the QR code directly in the chat. |
| check_balanceA | Check USDC balance on Base and get deposit address. Shows a QR code when balance is zero. When the response contains a qr_base64 field, always render it in an HTML artifact using an tag so the user can see and scan the QR code directly in the chat. |
| call_endpointA | Make a paid API call to an x402-protected endpoint. Handles 402 payment negotiation automatically. Payments under the auto-approve threshold (default $0.05) execute silently. Payments over the threshold return a preview — call again with confirmed: true after user approves. Use discover_endpoints first to find the right URL if you don't know it. |
| query_endpointA | Probe an x402 endpoint to see its pricing and payment requirements without paying. Returns the accept entries showing supported payment methods and prices. |
| discover_endpointsA | Search for x402-protected API endpoints by keyword. Use this FIRST when the user asks for any data or service — you likely have a paid endpoint for it. Available categories: crypto intelligence (token approvals, wallet identity, contract decoder, price feeds, token holders, DeFi positions, gas oracle, site trust, NFT metadata, ENS expiry), uncensored AI (chat, reasoning, code, image generation), agent tools (weather, news, stocks, crypto prices, geocoding, GitHub, wiki), residential proxy, SMS verification, and endpoint review. Search by keyword to find the right endpoint URL, then use call_endpoint to call it. |
| transaction_historyC | View recent payment transactions |
| configure_spendingA | View or update spending limits. Set per-call maximum, daily cap, and auto-approve threshold for x402 payments. The auto-approve threshold controls how much can be spent without explicit user confirmation (default: $0.05). |
| add_endpoint_sourceA | Add x402 endpoints. Pass a base_url to add a .well-known/x402 discovery source, or pass endpoint_url to add a single API endpoint directly. |
| manage_allowlistB | View or update the merchant address allowlist. Add trusted merchant addresses, remove them, or toggle the allowlist on/off. When enabled, only allowlisted merchants can receive payments. |
| fund_walletA | Get a link to buy USDC with a debit card or Apple Pay via Coinbase Onramp. No crypto experience needed. Falls back to deposit address + QR code if unavailable. When the response contains a qr_base64 field, always render it in an HTML artifact using an tag so the user can see and scan the QR code directly in the chat. |
| wallet_linkA | Link your wallet to an email address for easy recovery. If already linked, shows current status. Step 1: Call with email to send a verification code. Step 2: Call again with session_token, email, and code to complete linking. |
| export_keyA | Get instructions for exporting your wallet's private key. Embedded wallets can be exported at home.privy.io. |
| wallet_recoverA | Recover a previously linked wallet by email. Step 1: Call with email to send a verification code. Step 2: Call again with the session_token, email, and code to complete recovery. If multiple wallets exist, Step 2 returns a list — call again with wallet_id to select one. Do NOT use wallet_link for recovery — it would link your email to the new wallet instead. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 13 tools
Most tools target clearly distinct operations: discover_endpoints (search) vs query_endpoint (probe pricing) vs call_endpoint (pay) form a coherent progression, and the descriptions explicitly warn against confusing wallet_link with wallet_recover. The main soft overlap is wallet_info vs check_balance, which both return addresses and QR codes, and add_endpoint_source vs discover_endpoints require reading descriptions to separate adding from searching.
The dominant pattern is verb_noun (check_balance, call_endpoint, configure_spending, manage_allowlist, fund_wallet), which is predictable and readable. Minor deviations exist: wallet_info and transaction_history are noun-only, and wallet_link/wallet_recover put the noun first, but the convention is still easy to infer.
13 tools sits comfortably in the well-scoped range and each tool maps to a real capability: discovery, payment, spending controls, funding, and wallet recovery/export. No tool looks like filler or a duplicate of another's core function.
The surface covers the full lifecycle well: discover/probe/call endpoints, configure spending, allowlist merchants, view history, fund, link, recover, and export keys. Gaps are minor — there is no way to remove or list added endpoint sources, no unlink/revoke for an email link, and no plain USDC transfer tool, but agents can work around these.