mcpField
S
Solana Alpha x402

Solana Alpha x402

Local
github.com/nero-zngFinance0Updated 6d ago

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

  1. 01Live Solana market data queries
  2. 02Free pricing lookup
  3. 03USDC payment discovery without a key
  4. 04Automatic payment signing and settlement
  5. 05Per-call price cap

Use cases

  1. 01Check token prices and market news
  2. 02Review trending tokens and perps
  3. 03Inspect rug-check and wallet data
  4. 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.

mcp.json · Universal config
{
"mcpServers": {
"nero-zng-solana-alpha-x402": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SOLANA_PRIVATE_KEY",
"-e",
"SOLANA_ALPHA_API_BASE",
"ghcr.io/nero-zng/solana-alpha-x402-mcp:1.4.0"
],
"env": {
"SOLANA_PRIVATE_KEY": "<SOLANA_PRIVATE_KEY>",
"SOLANA_ALPHA_API_BASE": "<SOLANA_ALPHA_API_BASE>"
}
}
}
}
Run commanddocker run -i --rm -e SOLANA_PRIVATE_KEY -e SOLANA_ALPHA_API_BASE ghcr.io/nero-zng/solana-alpha-x402-mcp:1.4.0
Environment variables to set
SOLANA_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.

Packages
ocighcr.io/nero-zng/solana-alpha-x402-mcp:1.4.0

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

solana-alpha-x402-mcp

MCP score

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).

ToolEndpointPrice
list_pricing—free
get_price/api/price0.005 USDC
get_news/api/news0.005 USDC
get_new/api/new0.005 USDC
get_trending/api/trending0.01 USDC
get_perps/api/perps0.01 USDC
get_rugcheck/api/rugcheck0.01 USDC
get_wallet/api/wallet0.02 USDC
get_token_report/api/token-report0.08 USDC

PayTo (never change): 3WN7T7VMnRJzjRhKosbaT2oiwuMiBCe6KBfZGiZygv7n

Behavior

  • No SOLANA_PRIVATE_KEY: tools still call the live API. A 402 is 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. Optional MAX_PRICE_USDC rejects 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

VariableRequiredMeaning
SOLANA_PRIVATE_KEYnoBuyer secret key: base58 (Phantom/Solana CLI export) or JSON byte array […]. Never commit this.
MAX_PRICE_USDCnoCap per call (e.g. 0.02). Listed price above the cap → error, no payment.
API_BASE_URLnoDefault 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:

Safety

  • Do not put a real funded key in git, screenshots, or chat logs.
  • Smoke tests intentionally unset SOLANA_PRIVATE_KEY and 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

Markdown supported

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.