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

파이썬에서 안전한 Solana 블록체인 지갑 작업을 위한 모델 컨텍스트 프로토콜(MCP) 구현.

개요

Solana Vault MCP는 표준화된 모델 컨텍스트 프로토콜(MCP) 인터페이스를 통해 Solana 블록체인에 안전한 지갑 운영을 제공합니다. 이를 통해 AI 비서가 개인 키에 직접 접근하지 않고도 Solana 블록체인과 안전하게 상호 작용할 수 있습니다.

특징

  • 안전한 Solana 지갑 운영
  • SOL 잔액 확인
  • SOL 전송 기능
  • 거래 내역 검색
  • 모델 컨텍스트 프로토콜 호환 API
  • Flask 웹 서버 및 WebSocket 연결 지원
  • 자세한 로깅 및 오류 처리

설치

필수 조건

  • 파이썬 3.9 이상

설정

  1. 저장소를 복제합니다.지엑스피1
  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

특허

MIT

기여하다

기여를 환영합니다! 풀 리퀘스트를 제출해 주세요.

-
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