Skip to main content
Glama

Solana Model Context Protocol (MCP) Server

by omaidf

Solana 模型上下文协议 (MCP) 服务器

一个基于 Python 的服务器,用于实现 Solana 区块链的模型上下文协议 (MCP)。该服务器提供了与 Solana 区块链数据和模型交互的接口。

特征

  • 实时 Solana 区块链数据处理
  • 模型上下文协议实现
  • 用于区块链交互的 RESTful API 端点
  • WebSocket 支持实时更新

设置

标准设置

  1. 克隆存储库
  2. 安装依赖项:
    pip install -r requirements.txt
  3. 设置环境变量:
    cp .env.example .env
  4. 使用您的 Solana RPC 节点详细信息编辑.env文件

Docker 设置

  1. 构建 Docker 镜像:
    docker build -t solana-mcp-server .
  2. 运行 Docker 容器:
    docker run -p 8000:8000 --env-file .env solana-mcp-server

运行服务器

开发模式:

python main.py

生产方式:

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

Docker模式:

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

API 文档

服务器运行后,请访问以下 API 文档:

http://localhost:8000/docs

环境变量

可以配置以下环境变量:

  • HOST :服务器主机(默认值:0.0.0.0)
  • PORT :服务器端口(默认值:8000)
  • DEBUG :启用调试模式(默认值:False)
  • LOG_LEVEL :日志记录级别(默认值:INFO)
  • CORS_ORIGINS :允许的 CORS 来源的逗号分隔列表(默认值:*
  • RELOAD :启用开发热重载(默认值:False)

增强的 Solana Analytics API

该服务器通过以下端点提供增强的 Solana 分析功能:

代币信息

POST /api/analyzer/token

获取有关代币的详细信息,包括价格、市值和供应数据。

鲸鱼探测

POST /api/analyzer/whales

使用可配置的阈值识别特定代币的大量持有者(“鲸鱼”)。

增强账户分析

POST /api/analyzer/account

获取带有附加上下文的详细解析帐户信息。

代币账户及定价

POST /api/analyzer/token-accounts

获取具有丰富定价和估值数据的地址的代币账户。

-
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.

Solana 区块链交互服务器允许 AI 工具使用自然语言查询区块链数据、访问结构化令牌信息并生成复杂区块链概念的人类可读解释。

  1. 特征
    1. 设置
      1. 标准设置
      2. Docker 设置
    2. 运行服务器
      1. 开发模式:
      2. 生产方式:
      3. Docker模式:
    3. API 文档
      1. 环境变量
        1. 增强的 Solana Analytics API
          1. 代币信息
          2. 鲸鱼探测
          3. 增强账户分析
          4. 代币账户及定价

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          Provides tools for AI assistants to interact with the Ethereum blockchain through standard JSON-RPC methods, enabling queries for account balances, gas prices, and smart contract code.
          Last updated -
          6
          3
          JavaScript
          MIT License
        • -
          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 -
          219
          79
          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 -
          219
          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

        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