Solana

io.github.ExpertVagabond由 GitHub 帳號 ExpertVagabond 發布v1.1.1更新於 Oct 24, 2026

Solana MCP server for wallet, transactions & programs

已驗證STDIO僅桌面金融開發者工具

概覽

AI 產生的概覽

Solana 區塊鏈 MCP 伺服器,提供 25 個工具,用於錢包、SPL 代幣、轉帳與網路查詢。

可以做什麼
  • 建立、匯入與列出記憶體中的錢包,查詢 SOL 餘額
  • 建立 SPL 代幣,鑄造、銷毀、凍結、解凍、設定權限、授權代理並關閉代幣帳戶
  • 轉帳 SOL 與 SPL 代幣,並在 devnet/testnet 申請空投
  • 查詢帳戶、交易、代幣帳戶、代幣餘額與代幣總量
  • 在主網、devnet、testnet 與本機節點之間切換,讀取網路資訊與最新區塊雜湊
適用情境
當助理需要直接操作 Solana 錢包與 SPL 代幣時適用,例如建立與管理代幣、查詢餘額與帳戶,或在指定網路上轉移 SOL 和代幣。
執行需求
以 npm 套件形式在本機執行(npx solana-mcp-server 或全域安裝),需要 Node.js。可選環境變數 SOLANA_RPC_URL 指定 RPC 端點,預設使用主網。需要能連線至 Solana RPC 端點的網路。
安裝前請注意
相關工具可動用真實資金並改變鏈上狀態:轉帳、鑄造、銷毀、凍結、變更權限與關閉帳戶皆無法復原。import_wallet 以參數形式接收 base58 私鑰;私鑰僅存於記憶體並在程序結束時清除,但仍會經過助理工作階段。預設連線主網,測試前請先切換網路。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

solana-mcp-server

[npm version] [License: MIT] [Node] [Tools]

Full Solana blockchain MCP server. 25 tools for wallet management, SPL token operations, DeFi, staking, and network queries. Built on @solana/web3.js v3, Solana Kit, and the generated @solana-program/token client.

Covers the SPL token lifecycle implemented in this repository: create, mint, burn, freeze, thaw, delegate, and authority management. The exact supported surface is listed below and exercised by the repository's tests and CI checks.

Install

bash
npx solana-mcp-server

Or install globally:

bash
npm install -g solana-mcp-serversolana-mcp-server

Configure

Add to your MCP config (claude_desktop_config.json or ~/.mcp.json):

json
{  "mcpServers": {    "solana": {      "command": "npx",      "args": ["-y", "solana-mcp-server"],      "env": {        "SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com"      }    }  }}

Tools (25)

Wallet Management (4)

ToolDescriptionKey Params
create_walletCreate a new Solana keypair (in-memory only)--
import_walletImport from a base58-encoded private keyprivateKey
list_walletsList all wallets in the current session--
get_balanceGet SOL balance for any addressaddress

SPL Token Operations (10)

ToolDescriptionKey Params
create_spl_tokenCreate a new SPL token with custom decimalswalletName, decimals
mint_tokensMint tokens to any addresswalletName, tokenMint, amount
burn_tokensBurn tokens from an accountwalletName, tokenMint, amount
freeze_accountFreeze a token accountwalletName, tokenMint, accountAddress
thaw_accountUnfreeze a token accountwalletName, tokenMint, accountAddress
set_token_authorityChange token authority (mint, freeze, owner, close)walletName, tokenMint, authorityType
get_token_supplyTotal supply and metadata for a tokentokenMint
close_token_accountClose an account and reclaim rentwalletName, tokenAccount
approve_delegateApprove a delegate for token transferswalletName, tokenAccount, delegate, amount
revoke_delegateRevoke delegate approvalwalletName, tokenAccount

Transfers (3)

ToolDescriptionKey Params
transfer_solTransfer SOL between walletsfrom, to, amount
transfer_tokensTransfer SPL tokensfrom, to, tokenMint, amount
airdrop_solRequest SOL airdrop (devnet/testnet only)address, amount

Account Queries (4)

ToolDescriptionKey Params
get_account_infoDetailed account informationaddress
get_transactionTransaction details by signaturesignature
create_token_accountCreate an associated token accountwalletName, tokenMint
get_token_accountsList all token accounts for a walletaddress

Token Data (1)

ToolDescriptionKey Params
get_token_balanceSPL token balance for a specific accountaddress, tokenMint

Network (3)

ToolDescriptionKey Params
switch_networkSwitch between mainnet, devnet, testnet, localhostnetwork
get_network_infoCurrent network status and info--
get_recent_blockhashRecent blockhash for transaction building--

Why This One?

  • Complete SPL token lifecycle. Create, mint, burn, freeze, thaw, set authority, delegate, close -- 10 token tools covering every operation. Competitors stop at create/transfer.
  • Operational safeguards. Lazy connection initialization, 10-second network-call timeouts, structured error handling, and Smithery deployment support.
  • Direct Solana primitives. Uses @solana/web3.js and @solana/spl-token directly, keeping the installed dependency surface aligned with the tools implemented here.

Networks

NetworkEndpoint
mainnethttps://api.mainnet-beta.solana.com
devnethttps://api.devnet.solana.com
testnethttps://api.testnet.solana.com
localhosthttp://127.0.0.1:8899

Security

  • Private keys stored in memory only -- never persisted to disk
  • Keys cleared on process exit
  • All inputs validated with Zod schemas

Environment Variables

VariableRequiredDescription
SOLANA_RPC_URLNoSolana RPC endpoint (default: mainnet)

Development

bash
git clone https://github.com/ExpertVagabond/solana-mcp-server.gitcd solana-mcp-servernpm installnpm run buildnpm start
bash
npm test              # Basic functionality testsnpm run type-check    # TypeScript type checkingnpm run lint          # ESLintnpm run quality       # Full quality check (lint + types + tests)

License

MIT -- Purple Squirrel Media

來源:README.md,提交 d6449cd

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v1.1.1最新Oct 11, 2026
  2. v1.0.1Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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