Skip to main content
Glama

solana-mcp-server

npm version License: MIT Node Tools

フル機能のSolanaブロックチェーンMCPサーバー。 ウォレット管理、SPLトークン操作、DeFi、ステーキング、ネットワーククエリのための25個のツールを提供します。@solana/web3.jsと@solana/spl-tokenをベースに構築されており、Anchorもサポートしています。

最も活発にメンテナンスされているSolana MCPです。競合他社が省略しがちなSPLトークンの完全なライフサイクル(作成、ミント、バーン、凍結、凍結解除、委任、権限管理)をカバーしています。

インストール

npx solana-mcp-server

またはグローバルにインストールする場合:

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

Related MCP server: SolanaBot

設定

MCP設定(claude_desktop_config.jsonまたは~/.mcp.json)に追加します:

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

ツール (25)

ウォレット管理 (4)

ツール

説明

主要パラメータ

create_wallet

新しいSolanaキーペアを作成(メモリ内のみ)

--

import_wallet

base58エンコードされた秘密鍵からインポート

privateKey

list_wallets

現在のセッション内の全ウォレットを一覧表示

--

get_balance

指定アドレスのSOL残高を取得

address

SPLトークン操作 (10)

ツール

説明

主要パラメータ

create_spl_token

カスタム小数点数で新しいSPLトークンを作成

walletName, decimals

mint_tokens

指定アドレスへトークンをミント

walletName, tokenMint, amount

burn_tokens

アカウントからトークンをバーン

walletName, tokenMint, amount

freeze_account

トークンアカウントを凍結

walletName, tokenMint, accountAddress

thaw_account

トークンアカウントの凍結を解除

walletName, tokenMint, accountAddress

set_token_authority

トークン権限を変更(ミント、凍結、所有者、クローズ)

walletName, tokenMint, authorityType

get_token_supply

トークンの総供給量とメタデータを取得

tokenMint

close_token_account

アカウントをクローズしてレントを回収

walletName, tokenAccount

approve_delegate

トークン転送の委任を承認

walletName, tokenAccount, delegate, amount

revoke_delegate

委任の承認を取り消し

walletName, tokenAccount

転送 (3)

ツール

説明

主要パラメータ

transfer_sol

ウォレット間でSOLを転送

from, to, amount

transfer_tokens

SPLトークンを転送

from, to, tokenMint, amount

airdrop_sol

SOLエアドロップをリクエスト(devnet/testnetのみ)

address, amount

アカウントクエリ (4)

ツール

説明

主要パラメータ

get_account_info

詳細なアカウント情報

address

get_transaction

署名によるトランザクション詳細

signature

create_token_account

関連トークンアカウントを作成

walletName, tokenMint

get_token_accounts

ウォレットの全トークンアカウントを一覧表示

address

トークンデータ (1)

ツール

説明

主要パラメータ

get_token_balance

特定アカウントのSPLトークン残高

address, tokenMint

ネットワーク (3)

ツール

説明

主要パラメータ

switch_network

メインネット、devnet、testnet、localhostを切り替え

network

get_network_info

現在のネットワークステータスと情報

--

get_recent_blockhash

トランザクション構築用の最新ブロックハッシュ

--

なぜこれを選ぶのか?

  • 完全なSPLトークンライフサイクル。 作成、ミント、バーン、凍結、凍結解除、権限設定、委任、クローズなど、あらゆる操作をカバーする10個のトークンツール。競合他社は作成/転送で止まってしまいます。

  • 本番環境対応のインフラ。 遅延接続初期化(起動時のタイムアウトなし)、10秒のネットワーク呼び出しタイムアウト、包括的なエラーハンドリング、Smitheryデプロイメントサポート。

  • Anchor統合。 @coral-xyz/anchorサポートを組み込んでおり、生のSPLトークン操作と並行してAnchorプログラムと対話可能です。

ネットワーク

ネットワーク

エンドポイント

mainnet

https://api.mainnet-beta.solana.com

devnet

https://api.devnet.solana.com

testnet

https://api.testnet.solana.com

localhost

http://127.0.0.1:8899

セキュリティ

  • 秘密鍵はメモリ内のみに保存され、ディスクには一切書き込まれません

  • プロセス終了時にキーをクリア

  • すべての入力はZodスキーマで検証済み

環境変数

変数

必須

説明

SOLANA_RPC_URL

いいえ

Solana RPCエンドポイント(デフォルト: mainnet)

開発

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)

ライセンス

MIT -- Purple Squirrel Media

Available Tools

25 tools
airdrop_solA

Request SOL airdrop for testing (devnet/testnet only)

Inputs: walletName (required), amount.

approve_delegateC

Approve a delegate to transfer tokens on your behalf

Inputs: amount (required), tokenMint (required), walletName (required), delegateAddress (required).

burn_tokensC

Burn tokens from a wallet

Inputs: amount (required), tokenMint (required), walletName (required).

close_token_accountC

Close a token account and reclaim rent

Inputs: tokenMint (required), walletName (required), destinationAddress (required).

create_spl_tokenC

Create a new SPL token with specified decimals

Inputs: walletName (required), decimals, freezeAuthority.

create_token_accountC

Create associated token account for SPL tokens

Inputs: tokenMint (required), walletName (required).

create_walletC

Create a new Solana wallet

Inputs: name (required).

freeze_accountB

Freeze a token account to prevent transfers

Inputs: tokenMint (required), walletName (required), accountAddress (required).

get_account_infoC

Get detailed account information

Inputs: address (required).

get_balanceC

Get SOL balance for a wallet

Inputs: walletName (required).

get_network_infoC

Get current network information

Inputs: no named parameters.

get_recent_blockhashB

Get recent blockhash for transaction building

Inputs: no named parameters.

get_token_accountsC

Get all token accounts for a wallet

Inputs: walletName (required).

get_token_balanceC

Get SPL token balance for a wallet

Inputs: tokenMint (required), walletName (required).

get_token_supplyC

Get the total supply of a token

Inputs: tokenMint (required).

get_transactionC

Get transaction details by signature

Inputs: signature (required).

import_walletC

Import an existing wallet from private key or mnemonic

Inputs: name (required), privateKey (required).

list_walletsB

List all created/imported wallets

Inputs: no named parameters.

mint_tokensC

Mint tokens to a specific account

Inputs: amount (required), tokenMint (required), walletName (required), destinationAddress (required).

revoke_delegateB

Revoke a delegate's authority to transfer tokens

Inputs: tokenMint (required), walletName (required).

set_token_authorityC

Set or change authority for a token mint or account

Inputs: tokenMint (required), walletName (required), authorityType (required), newAuthority.

switch_networkC

Switch Solana network

Inputs: network (required).

thaw_accountC

Thaw a frozen token account to allow transfers

Inputs: tokenMint (required), walletName (required), accountAddress (required).

transfer_solC

Transfer SOL between wallets

Inputs: amount (required), toAddress (required), fromWallet (required).

transfer_tokensC

Transfer SPL tokens between wallets

Inputs: amount (required), toAddress (required), tokenMint (required), fromWallet (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 25 tools

    Disambiguation4/5

    Most tools have distinct purposes, but some overlap exists, such as get_balance and get_token_balance, which could cause confusion if not carefully described. However, the descriptions generally clarify the differences, and tools like freeze_account and thaw_account are clearly complementary.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case, such as create_wallet, transfer_sol, and get_account_info. This uniformity makes the tool set predictable and easy to navigate.

    Tool Count3/5

    With 25 tools, the count is borderline high for a focused server, potentially overwhelming for agents. While it covers many Solana operations, it might benefit from consolidation or better scoping to reduce complexity.

    Completeness5/5

    The tool set provides comprehensive coverage for Solana operations, including wallet management, token handling, transactions, and network interactions. It supports full CRUD/lifecycle actions, such as create, transfer, and burn tokens, with no obvious gaps.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    Appeared in Searches