Skip to main content
Glama

Solana Model Context Protocol (MCP) Server

by omaidf

Solana Model Context Protocol (MCP) Server

A Python-based server implementing the Model Context Protocol for the Solana blockchain. This server provides an interface for interacting with Solana blockchain data and models.

Features

  • Real-time Solana blockchain data processing
  • Model Context Protocol implementation
  • RESTful API endpoints for blockchain interaction
  • WebSocket support for real-time updates

Setup

Standard Setup

  1. Clone the repository
  2. Install dependencies:
    pip install -r requirements.txt
  3. Set up environment variables:
    cp .env.example .env
  4. Edit .env file with your Solana RPC node details

Docker Setup

  1. Build the Docker image:
    docker build -t solana-mcp-server .
  2. Run the Docker container:
    docker run -p 8000:8000 --env-file .env solana-mcp-server

Running the Server

Development mode:

python main.py

Production mode:

uvicorn main:app --host 0.0.0.0 --port 8000

Docker mode:

docker run -p 8000:8000 --env-file .env solana-mcp-server

API Documentation

Once the server is running, access API documentation at:

http://localhost:8000/docs

Environment Variables

The following environment variables can be configured:

  • HOST: Server host (default: 0.0.0.0)
  • PORT: Server port (default: 8000)
  • DEBUG: Enable debug mode (default: False)
  • LOG_LEVEL: Logging level (default: INFO)
  • CORS_ORIGINS: Comma-separated list of allowed CORS origins (default: *)
  • RELOAD: Enable hot reload for development (default: False)

Enhanced Solana Analytics API

The server provides enhanced Solana analytics capabilities through the following endpoints:

Token Information

POST /api/analyzer/token

Get detailed information about a token including price, market cap, and supply data.

Whale Detection

POST /api/analyzer/whales

Identify large holders ("whales") of specific tokens with configurable thresholds.

Enhanced Account Analysis

POST /api/analyzer/account

Get detailed parsed account information with additional context.

Token Accounts with Pricing

POST /api/analyzer/token-accounts

Get token accounts for an address with enriched pricing and valuation data.

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

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

AI 도구가 자연어를 사용하여 블록체인 데이터를 쿼리하고, 구조화된 토큰 정보에 액세스하고, 복잡한 블록체인 개념에 대한 사람이 읽을 수 있는 설명을 생성할 수 있도록 하는 Solana 블록체인 상호작용 서버입니다.

  1. 특징
    1. 설정
      1. 표준 설정
      2. 도커 설정
    2. 서버 실행
      1. 개발 모드:
      2. 생산 모드:
      3. 도커 모드:
    3. API 문서
      1. 환경 변수
        1. 향상된 Solana 분석 API
          1. 토큰 정보
          2. 고래 감지
          3. 향상된 계정 분석
          4. 가격이 책정된 토큰 계정

        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 -
          19
          123
          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 -
          19
          22
          MIT License
        • -
          security
          F
          license
          -
          quality
          A server that enables interaction with the Solana blockchain using your own private key, supporting operations like getting wallet information, checking balances, and transferring SOL.
          Last updated -
          19
          10
        • -
          security
          F
          license
          -
          quality
          A Node.js-based server that integrates with the xAI Grok API to provide AI-driven analysis tools for the Solana blockchain, supporting transaction analysis, address investigation, image processing, and general queries.
          Last updated -

        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/omaidf/solana-mcp'

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