Solana Alpha x402

io.github.nero-zng由 GitHub 帳號 nero-zng 發布v1.4.0更新於 Nov 5, 2026

Pay-per-call Solana market intel via x402 USDC: price, news, trending, perps, rugcheck, wallet.

已驗證STDIO僅桌面金融資料與分析

概覽

AI 產生的概覽

本機 stdio MCP 伺服器,讓助理按次付費取得 Solana 市場情報(價格、新聞、熱門、永續、rugcheck、錢包),透過 x402 以 USDC 結算。

可以做什麼
  • 免費查詢各付費端點的價格清單
  • 取得代幣價格、新聞與新上線代幣
  • 取得熱門代幣與永續合約資料
  • 執行 rugcheck 與錢包查詢
  • 產生完整代幣報告
  • 未設定金鑰時回傳可讀的 402 付款要求
適用情境
當助理需要即時 Solana 市場情報——代幣價格、新聞、熱門榜、永續資料、rug 或錢包檢查——且你願意為每次呼叫支付少量 USDC,或只想先了解付款條件時使用。
執行需求
以本機 Node.js 程序(stdio)執行,可透過 node 或 npx 啟動,也可使用已發布的容器映像。需要能透過 HTTPS 存取 Solana Alpha API。選用環境變數:SOLANA_PRIVATE_KEY(base58 或 JSON 位元組陣列)用於自動付款,MAX_PRICE_USDC 限制單次花費,API_BASE_URL 或 SOLANA_ALPHA_API_BASE 覆寫介面位址。付費呼叫需要持有 USDC 的 Solana 錢包。
安裝前請注意
付費呼叫會從 SOLANA_PRIVATE_KEY 對應的錢包實際扣除 USDC;請只使用專用的小額錢包,並設定 MAX_PRICE_USDC 上限。切勿提交、截圖或貼上私鑰。請求會送往第三方 API 主機,收款位址在伺服器中硬編碼。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Solana Alpha x402,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

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)

bash
npm installnpm 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)

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

json
{  "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:

json
{  "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:

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"      }    }  }}

Or via npx once published:

json
{  "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.

來源:README.md,提交 3614eb1

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:該軟體包類型無法在沙箱中執行。

版本歷史

1
  1. v1.4.0最新Nov 5, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分