solx402-mcp-server
SOLx402 MCP Server is a Model Context Protocol (MCP) server that enables AI assistants to interact with the x402 payment protocol on Solana.
Install / Use
claude mcp add leandrogavidia -- npx -y github:leandrogavidia/solx402-mcp-serverIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Finance & AccountingSupported Platforms
Tags
Our assessment of solx402-mcp-server
solx402-mcp-server scores 75/100 on our quality scale, 99th of 108 Finance & Accounting skills we index.
Its MCP Server is 5.9 KB long, well organised into 11 sections with 1 code example: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 9 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- Our last check on 2026-10-21 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 91/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
solx402-mcp-server compared with similar skills
All 4 of these similar skills score higher than solx402-mcp-server; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| solx402-mcp-server (this skill)by leandrogavidia | 75 | 10 | 9mo ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 109.5k | 1d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 79.0k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.8k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 98.7k | 1d ago | MCP Server |
Frequently asked questions
- How do I install solx402-mcp-server?
- Run
claude mcp add leandrogavidia -- npx -y github:leandrogavidia/solx402-mcp-server. The install tabs above show the steps for each supported agent. - Which AI agents does solx402-mcp-server work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is solx402-mcp-server safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 91/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is solx402-mcp-server still maintained?
- The repository was last updated about 9 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHub<a href="https://solx402-mcp-server-web.vercel.app/" target="_blank">Official page</a>
</div>Diagram flow
<img src="./apps/mcp-server/assets/x402-protocol-flow.avif" width=840 alt="x402 Diagram flow">Integration
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 }, } }
Tools
-
x402 Protocol
-
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 Operations
-
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.
-
-
Solana Development Resources (Optional)
-
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.
-
⚠️ Important: Request Timeout Configuration
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.
Why This Matters:
- x402 services are external APIs that may require significant processing time.
- Payment transactions are executed on the Solana blockchain, which can take time to confirm.
- Short timeouts can cause requests to fail after USDC has been charged, resulting in payment without receiving the service.
- By default, MCP servers use a maximum request timeout of 10 seconds when running, which is quite low in some cases.
Configuration Examples:
{
"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
}
}
}
Query Parameters:
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)
Related Issues:
- Cline PR #1904 - Request timeout configuration
- Cline Issue #4391 - Timeout-related problems
Note: Always ensure your MCP client timeout is at least 120 seconds to prevent payment issues and service consumption failures.
Configuration Options
1. Query Parameters
Pass configuration directly in the MCP client URL as shown in the examples above.
2. Environment Variables
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)
Related Skills
Agent-Reach
109.5kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
79.0kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.8kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Scrapling
98.7k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
