SOLx402 MCP Server is a Model Context Protocol (MCP) server that enables AI assistants to interact with the x402 payment protocol on Solana.
solx402-mcp-server is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on mcp-server, solana, x402. It currently has 10 GitHub stars and 3 forks, and sits alongside related tools like chaingpt-claude-skill, 1ly-mcp-server, agentwallet-mcp.
SOLx402 MCP Server is a Model Context Protocol (MCP) server that enables AI assistants to interact with the x402 payment protocol on Solana. It provides tools for discovering and consuming x402-enabled services, managing USDC payments, querying protocol documentation, and accessing Solana development resources through integrated MCP clients.
To integrate the SOLx402 MCP Server, follow these steps:
Go to the SOLx402 MCP Server Smithery page.
Sign in.
Click the Configure button.
Fill in the required fields (and optional fields, if needed).
Generate the URL using your API key and Profile, then copy it.
Add the generated MCP Server URL to your system (e.g., Claude, Cursor, VS Code, etc.).
{
"mcpServers": {
"solx402-mcp-server": {
"url": "https://server.smithery.ai/@leandrogavidia/solx402-mcp-server/mcp?api_key=<YOUR-SMITHERY-API-KEY>&profile=<YOUR-SMITHERY-PROFILE>",
"type": "streamable-http",
"timeout": 120000
},
}
}
Documentation
search_x402_documentation: Search across the x402 documentation to find relevant information, code examples, API references, and guides.
x402_protocol_flow: Visual diagram showing the x402 protocol flow and architecture.
Services Discovery
get_x402_services: Retrieve a list of available x402 services from the facilitator.
get_facilitators: Retrieve a list of known Solana facilitators.
Service Consumption
consume_x402_service: Consume a specific x402 service with automatic payment handling.
⚠️ Note: x402 services are external services maintained by third-party teams. While these services appear in the discovery layer, they may be temporarily down, unavailable, or experiencing issues. Service availability depends entirely on the external teams managing them.
Wallet Info
get_wallet_public_key: Retrieve the public key of the configured wallet.Balance
get_wallet_usdc_balance: Check the USDC token balance of the configured wallet.Expert Assistance
Ask_Solana_Anchor_Framework_Expert: Ask questions about developing on Solana with the Anchor Framework.
Solana_Expert__Ask_For_Help: Get expert help on Solana development topics, concepts, APIs, SDKs, and errors.
Documentation
Solana_Documentation_Search: Search documentation across the Solana ecosystem for up-to-date information.Critical Setup Requirement: When using this MCP server, it's essential to configure your MCP client with a minimum request timeout of 60,000ms (60 seconds) to ensure successful execution of x402 service consumption.
{
"mcpServers": {
"solx402": {
"url": "https://server.smithery.ai/@leandrogavidia/solx402-mcp-server/mcp?api_key=<YOUR-SMITHERY-API-KEY>&profile=<YOUR-SMITHERY-PROFILE>",
"type": "streamable-http",
"timeout": 120000 // 2 Minutes
}
}
}
The MCP server now accepts configuration through URL query parameters, making setup simpler and more flexible:
privateKey (required): Base58-encoded private key for your Solana wallet
mainnetRpcUrl (required): Solana RPC URL for mainnet operations
isMainnet (optional): Set to true for mainnet, false for devnet (Default: false)
facilitatorUrl (optional): URL of the x402 facilitator (default: PayAI Facilitator URL)
maxPrice (optional): Maximum price to pay for services in USDC microcents, e.g. 10000 = 0.01 USDC (default: 0)
useSolanaMcpServer (optional): Enable Solana development tools integration (default: false)
Note: Always ensure your MCP client timeout is at least 120 seconds to prevent payment issues and service consumption failures.
Pass configuration directly in the MCP client URL as shown in the examples above.
You can use environment variables:
PORT: Port where your MCP server will run (default: 8001)HOST: Host where your MCP server will run (default: 127.0.0.1)154 Web3 MCP tools for Claude Code, custody-free. Plus an agent wallet prompt injection can't drain: per-tx, daily, and on-chain (ERC-4337) spending caps the model can't bypass. EVM + Solana + Tron DEX/DeFi, perps, prediction markets, contract deploy + audit.
Enable AI agents to discover, launch tokens, pay for, and sell APIs and resources using x402
Permissionless wallet infrastructure for AI agents. Create wallets, sign transactions, and broadcast on EVM + Solana. Pay and accept x402 payments. Built-in guards. No KYC. Up to 50% less expensive than Coinbase.