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 分