About Solana Alpha x402
Solana Alpha x402 is a standalone stdio MCP server for querying live Solana market data through paid API calls. It serves agents that need prices, news, trends, perpetuals, rug checks, wallet data, and token reports, with optional automatic USDC payment and a per-call price cap.
Key features
- 01Live Solana market data queries
- 02Free pricing lookup
- 03USDC payment discovery without a key
- 04Automatic payment signing and settlement
- 05Per-call price cap
Use cases
- 01Check token prices and market news
- 02Review trending tokens and perps
- 03Inspect rug-check and wallet data
- 04Request token reports with capped spend
MCP support
Exposes one MCP tool for each paid API endpoint, plus the free `list_pricing` tool. Without `SOLANA_PRIVATE_KEY`, payment requirements are returned as readable JSON; with a key, eligible USDC payments can be signed and settled automatically.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
docker run -i --rm -e SOLANA_PRIVATE_KEY -e SOLANA_ALPHA_API_BASE ghcr.io/nero-zng/solana-alpha-x402-mcp:1.4.0SOLANA_PRIVATE_KEYSecretOptional Solana private key (base58) used to pay x402 USDC. Without it, tools return readable 402 payment requirements.SOLANA_ALPHA_API_BASEOptional API base URL override (default https://solana-x402-data.netlify.app).Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
ghcr.io/nero-zng/solana-alpha-x402-mcp:1.4.0stdioTools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEsolana-alpha-x402-mcp
stdio MCP server for the Solana Alpha API (x402 v2, USDC on Solana mainnet).
One tool per paid HTTP endpoint, plus a free list_pricing tool. Each tool calls the live API at https://solana-x402-data.netlify.app (override with API_BASE_URL).
| Tool | Endpoint | Price |
|---|---|---|
list_pricing | — | free |
get_price | /api/price | 0.005 USDC |
get_news | /api/news | 0.005 USDC |
get_new | /api/new | 0.005 USDC |
get_trending | /api/trending | 0.01 USDC |
get_perps | /api/perps | 0.01 USDC |
get_rugcheck | /api/rugcheck | 0.01 USDC |
get_wallet | /api/wallet | 0.02 USDC |
get_token_report | /api/token-report | 0.08 USDC |
PayTo (never change): 3WN7T7VMnRJzjRhKosbaT2oiwuMiBCe6KBfZGiZygv7n
Behavior
- No
SOLANA_PRIVATE_KEY: tools still call the live API. A402is returned as a readable JSON result (price, payTo, network, asset, feePayer) — not a hard failure — so agents can discover payment requirements. - With
SOLANA_PRIVATE_KEY: uses@x402/fetch+@x402/svm(ExactSvmScheme) to sign and settle USDC payments automatically. OptionalMAX_PRICE_USDCrejects calls above the cap. - This package is a standalone Node MCP server; it talks to the live Solana Alpha API over HTTPS and does not embed Netlify Functions.
Install (local / from this repo)
npm install
npm run smoke # initialize + tools/list + get_price → 402 info (no key, no payment)
Published npm name (when published): solana-alpha-x402-mcp
Until then, point your MCP host at the local entry: node /absolute/path/to/solana-alpha-x402-mcp/src/index.mjs
Environment
| Variable | Required | Meaning |
|---|---|---|
SOLANA_PRIVATE_KEY | no | Buyer secret key: base58 (Phantom/Solana CLI export) or JSON byte array […]. Never commit this. |
MAX_PRICE_USDC | no | Cap per call (e.g. 0.02). Listed price above the cap → error, no payment. |
API_BASE_URL | no | Default https://solana-x402-data.netlify.app |
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"solana-alpha-x402": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/solana-alpha-x402-mcp/src/index.mjs"],
"env": {
"API_BASE_URL": "https://solana-x402-data.netlify.app"
}
}
}
}
With auto-pay (use a funded burner wallet only):
{
"mcpServers": {
"solana-alpha-x402": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/solana-alpha-x402-mcp/src/index.mjs"],
"env": {
"SOLANA_PRIVATE_KEY": "YOUR_BASE58_SECRET",
"MAX_PRICE_USDC": "0.08",
"API_BASE_URL": "https://solana-x402-data.netlify.app"
}
}
}
}
After npm publish of this package you can use:
{
"mcpServers": {
"solana-alpha-x402": {
"command": "npx",
"args": ["-y", "solana-alpha-x402-mcp"],
"env": {
"MAX_PRICE_USDC": "0.08"
}
}
}
}
Cursor (mcp.json)
Project or user MCP config:
{
"mcpServers": {
"solana-alpha-x402": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/solana-alpha-x402-mcp/src/index.mjs"],
"env": {
"API_BASE_URL": "https://solana-x402-data.netlify.app"
}
}
}
}
Or via npx once published:
{
"mcpServers": {
"solana-alpha-x402": {
"command": "npx",
"args": ["-y", "solana-alpha-x402-mcp"]
}
}
}
Discovery (HTTP, free)
Public discovery documents on the live API host:
- /.well-known/mcp.json — server card / install command
- /tools.json — Claude/OpenAI-style function schemas (incl. price)
- /.well-known/agent.json
- /openapi.json
- /llms.txt
Safety
- Do not put a real funded key in git, screenshots, or chat logs.
- Smoke tests intentionally unset
SOLANA_PRIVATE_KEYand never settle a payment. - PayTo is a receive-only public address hard-coded to match the API; changing it would break settlement against the live service.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.