io.github.ExpertVagabond/solana

السجل الرسمي المالية والمدفوعات

Solana MCP server for wallet, transactions & programs

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package solana-mcp-server
Claude Code
claude mcp add solana -- npx -y solana-mcp-server@1.1.1
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "solana": {
            "command": "npx",
            "args": [
                "-y",
                "solana-mcp-server@1.1.1"
            ]
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. solana-mcp-server
  2. Install
  3. Configure
  4. Tools (25)
  5. Why This One?
  6. Networks
  7. Security
  8. Environment Variables
  9. Development
  10. License

solana-mcp-server

Full Solana blockchain MCP server. 25 tools for wallet management, SPL token operations, DeFi, staking, and network queries. Built on @solana/web3.js and @solana/spl-token with Anchor support.

The most actively maintained Solana MCP. Covers the complete SPL token lifecycle (create, mint, burn, freeze, thaw, delegate, authority management) that competitors skip.

Install

npx solana-mcp-server

Or install globally:

npm install -g solana-mcp-server
solana-mcp-server

Configure

Add to your MCP config (claude_desktop_config.json or ~/.mcp.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.
  • Production-ready infrastructure. Lazy connection initialization (no startup timeouts), 10-second network call timeouts, comprehensive error handling, and Smithery deployment support.
  • Anchor integration. Built with @coral-xyz/anchor support for interacting with Anchor programs alongside raw SPL token operations.

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

git clone https://github.com/ExpertVagabond/solana-mcp-server.git
cd solana-mcp-server
npm install
npm run build
npm start
npm test              # Basic functionality tests
npm run type-check    # TypeScript type checking
npm run lint          # ESLint
npm run quality       # Full quality check (lint + types + tests)

License

MIT -- Purple Squirrel Media

الأسئلة الشائعة

ما هو io.github.ExpertVagabond/solana؟

Solana MCP server for wallet, transactions & programs

كيف أثبّت io.github.ExpertVagabond/solana؟

يعمل على جهازك. في Claude Code: claude mcp add solana -- npx -y solana-mcp-server@1.1.1. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.ExpertVagabond/solana إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل io.github.ExpertVagabond/solana مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.ExpertVagabond/solana؟

ينشره ExpertVagabond. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.