Solana 模型上下文协议 (MCP) 服务器
一个基于 Python 的服务器,用于实现 Solana 区块链的模型上下文协议 (MCP)。该服务器提供了与 Solana 区块链数据和模型交互的接口。
特征
实时 Solana 区块链数据处理
模型上下文协议实现
用于区块链交互的 RESTful API 端点
WebSocket 支持实时更新
设置
标准设置
克隆存储库
安装依赖项:
pip install -r requirements.txt设置环境变量:
cp .env.example .env使用您的 Solana RPC 节点详细信息编辑
.env文件
Docker 设置
构建 Docker 镜像:
docker build -t solana-mcp-server .运行 Docker 容器:
docker run -p 8000:8000 --env-file .env solana-mcp-server
运行服务器
开发模式:
生产方式:
Docker模式:
API 文档
服务器运行后,请访问以下 API 文档:
环境变量
可以配置以下环境变量:
HOST:服务器主机(默认值:0.0.0.0)PORT:服务器端口(默认值:8000)DEBUG:启用调试模式(默认值:False)LOG_LEVEL:日志记录级别(默认值:INFO)CORS_ORIGINS:允许的 CORS 来源的逗号分隔列表(默认值:*)RELOAD:启用开发热重载(默认值:False)
增强的 Solana Analytics API
该服务器通过以下端点提供增强的 Solana 分析功能:
代币信息
获取有关代币的详细信息,包括价格、市值和供应数据。
鲸鱼探测
使用可配置的阈值识别特定代币的大量持有者(“鲸鱼”)。
增强账户分析
获取带有附加上下文的详细解析帐户信息。
代币账户及定价
获取具有丰富定价和估值数据的地址的代币账户。
This server cannot be installed
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 工具使用自然语言查询区块链数据、访问结构化令牌信息并生成复杂区块链概念的人类可读解释。
Related MCP Servers
- -security-license-qualityA 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 -36129Apache 2.0
- -security-license-qualityA 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 -3622MIT License
- -security-license-qualityA 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 -3610
- -security-license-qualityA 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 -