Solana Vault MCP

by olaxbt
1
  • Linux

Integrations

  • Manages environment variables for secure storage of Solana private keys and RPC URLs.

  • Provides a web server framework for exposing the Solana wallet operations through RESTful API endpoints and handling HTTP requests.

  • Offers testing capabilities for validating the functionality of the Solana wallet operations.

ソラナボールトMCP

Python での安全な Solana ブロックチェーン ウォレット操作のためのモデル コンテキスト プロトコル (MCP) 実装。

概要

Solana Vault MCPは、標準化されたモデルコンテキストプロトコルインターフェースを通じて、Solanaブロックチェーンの安全なウォレット操作を提供します。これにより、AIアシスタントは秘密鍵に直接アクセスすることなく、Solanaブロックチェーンと安全にやり取りできるようになります。

特徴

  • Solanaウォレットの安全な運用
  • SOL残高確認
  • SOL転送機能
  • 取引履歴の取得
  • モデルコンテキストプロトコル準拠API
  • Flask WebサーバーとWebSocket接続のサポート
  • 詳細なログ記録とエラー処理

インストール

前提条件

  • Python 3.9以上
  • ピップ

設定

  1. リポジトリをクローンします。
    git clone https://github.com/yourusername/solana-vault-mcp.git cd solana-vault-mcp
  2. 仮想環境を作成してアクティブ化します。
    python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
  3. 依存関係をインストールします:
    pip install -r requirements.txt
  4. .env.exampleに基づいて.envファイルを作成します。
    cp .env.example .env
  5. .envファイルを編集して、Solana 秘密キーと RPC URL を追加します。

使用法

サーバーの起動

python run.py

サーバーは、 .envファイルで指定されたポート (デフォルト: 5000) で起動します。

APIエンドポイント

  • GET / - サービス情報を含むウェルカムページ
  • GET /health - ヘルスチェックエンドポイント
  • GET /api/mcp/ping - MCP サービスのヘルスチェック
  • POST /api/mcp/query - メインMCPクエリエンドポイント

MCPアクション

Solana Vault MCP は次のアクションをサポートします。

  1. wallet.info情報を取得する
  2. wallet.balance - SOL残高を取得
  3. wallet.transfer - SOLを別のウォレットに転送する
  4. wallet.transactions - 最近の取引を取得する
  5. wallet.token_balance - 特定のトークンのトークン残高を取得する

クエリ例

{ "id": "request123", "action": "wallet.balance", "params": {} }

応答:

{ "id": "request123", "result": { "balance": 1.5, "currency": "SOL", "address": "YourSolanaPublicKey" } }

発達

プロジェクト構造

solana-vault-mcp/ ├── app/ │ ├── handlers/ # Action handlers │ ├── routes/ # API routes │ ├── services/ # Core services │ └── utils/ # Utilities ├── logs/ # Log files ├── tests/ # Test cases ├── .env # Environment variables ├── .env.example # Example environment file ├── requirements.txt # Dependencies ├── run.py # Main entry point └── README.md # Documentation

テストの実行

pytest

ライセンス

マサチューセッツ工科大学

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

-
security - not tested
F
license - not found
-
quality - not tested

AI アシスタントが秘密鍵に直接アクセスすることなく Solana ブロックチェーンと対話できるようにし、残高確認、SOL 転送、取引履歴の取得などの操作をサポートする安全なモデル コンテキスト プロトコル サーバーです。

  1. 概要
    1. 特徴
      1. インストール
        1. 前提条件
        2. 設定
      2. 使用法
        1. サーバーの起動
        2. APIエンドポイント
        3. MCPアクション
        4. クエリ例
      3. 発達
        1. プロジェクト構造
        2. テストの実行
      4. ライセンス
        1. 貢献

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables Claude AI to interact with the Solana blockchain through a standardized interface, providing tools for transactions, account queries, and wallet management.
            Last updated -
            59
            72
            Apache 2.0
            • Linux
            • Apple
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server enabling AI agents to interact with the Solana blockchain for DeFi operations like checking balances, transferring tokens, executing swaps, and fetching price data.
            Last updated -
            59
            15
            TypeScript
            MIT License
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables AI models to interact with the Solana blockchain, providing RPC methods, wallet management, DeFi trading capabilities, and Helius API integration for enhanced Solana development.
            Last updated -
            TypeScript
            MIT License
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that provides onchain tools for Claude AI, allowing it to interact with the Solana blockchain through a standardized interface for operations like managing assets, executing token operations, and retrieving network information.
            Last updated -
            6
            TypeScript

          View all related MCP servers

          ID: pazr4yoras