Skip to main content
Glama

solana-mcp-server

by aldrin-labs

Solana MCP サーバー

Clineを介してSolanaブロックチェーンデータへの包括的なアクセスを提供するモデルコンテキストプロトコル(MCP)サーバー。このサーバーは幅広いSolana RPCメソッドを実装しており、自然言語による会話を通じてブロックチェーン情報への直接クエリを容易に行うことができます。

特徴

サーバーは、さまざまなカテゴリにわたって 21 個の重要な Solana RPC メソッドを提供します。

口座と残高の操作

  • get_sol_balance : アドレスのSOL残高を取得する
  • get_token_balance : SPLトークン残高を取得する
  • get_account_info : アカウント情報を取得する
  • get_largest_accounts : ネットワーク上の最大のアカウントを取得する

ブロックとトランザクション情報

  • get_slot : 現在のスロットを取得する
  • get_block : ブロック情報を取得する
  • get_block_time : ブロック生成時間を取得する
  • get_transaction : トランザクションの詳細を取得する
  • get_recent_blockhash : 最近のブロックハッシュを取得する

トークン操作

  • get_token_accounts_by_owner : 所有者別にトークンアカウントを取得する
  • get_token_accounts_by_delegate : 委任されたトークンアカウントを取得する
  • get_token_supply : トークン供給情報を取得する

システム情報

  • get_epoch_info : 現在のエポック情報を取得する
  • get_version : ノードのバージョンを取得する
  • get_health : ノードのヘルスステータスを取得する
  • get_supply : 現在の供給量を取得する
  • get_inflation_rate : インフレ率を取得する
  • get_cluster_nodes : クラスターノード情報を取得する
  • get_minimum_balance_for_rent_exemption : 最低家賃免除残高を取得する

ステーキングとガバナンス

  • get_vote_accounts : 投票アカウントを取得する
  • get_leader_schedule : リーダースケジュールを取得する

Clineでのセットアップ

  1. Cline MCP 設定ファイル (macOS の場合は~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json ) に次の構成を追加します。
{ "mcpServers": { "solana": { "command": "cargo", "args": ["run"], "cwd": "/path/to/solana-mcp-server", "env": { "SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com" // Or your preferred RPC endpoint } } } }
  1. 新しい MCP サーバーをロードするには、Cline を再起動します。

使用例

設定が完了すると、Clineの自然言語を使ってSolanaブロックチェーンと対話できるようになります。以下にクエリの例を示します。

  • 「アドレスGh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJrのSOL残高はいくらですか?」
  • 「現在のスロット番号を表示」
  • 「最新のブロックに関する情報を取得する」
  • 「現在のインフレ率はどれくらいですか?」
  • 「アドレスが所有するトークンアカウントを表示してください...」

環境変数

  • SOLANA_RPC_URL : (オプション) 使用するSolana RPCエンドポイント。指定されていない場合は、デフォルトで「 https://api.mainnet-beta.solana.com 」になります。

発達

前提条件

  • 錆と貨物
  • Solana CLI ツール (オプション、テスト用)

建物

cargo build

ランニング

cargo run

ライセンス

MITライセンス

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Solana の最初のバージョンに関連する実際のアクションを実行できる MCP サーバーは、RPC メソッドとその呼び出し方法に関する知識を追加します。

  1. 特徴
    1. 口座と残高の操作
    2. ブロックとトランザクション情報
    3. トークン操作
    4. システム情報
    5. ステーキングとガバナンス
  2. Clineでのセットアップ
    1. 使用例
      1. 環境変数
        1. 発達
          1. 前提条件
          2. 建物
          3. ランニング
        2. ライセンス

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            A Model-Context-Protocol server enabling users to perform basic operations on Solana and Ethereum blockchains through simple RPC endpoints.
            Last updated -
            10
            51
            TypeScript
            Apache 2.0
          • A
            security
            F
            license
            A
            quality
            An MCP server that allows users to interact with YNAB data, enabling access to account balances, transactions, and the creation of new transactions through the Model Context Protocol.
            Last updated -
            10
            1
            Python
          • -
            security
            A
            license
            -
            quality
            A server that enables interaction with the Solana blockchain, providing access to over 40 Solana RPC methods including getting balances, transaction details, block information, and sending transactions.
            Last updated -
            Python
            MIT License
            • Apple
          • A
            security
            F
            license
            A
            quality
            A server that provides simple RPC endpoints for common Solana blockchain operations, allowing users to check balances, get account information, and transfer SOL between accounts.
            Last updated -
            5
            TypeScript

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/aldrin-labs/solana-mcp-server'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server