
opensvm/solana-mcp-server 是从 https://github.com/opensvm/solana-mcp-server. 导入的 MCP 候选服务器
概览
opensvm/solana-mcp-server 是从 https://github.com/opensvm/solana-mcp-server. 导入的 MCP 候选服务器
概述(AI 翻译)
一个模型上下文协议(MCP)服务器,通过Cline提供对Solana区块链数据的全面访问。该服务器实现了多种Solana RPC方法,便于通过自然语言对话直接查询区块链信息。
🚀 使用模式
Solana MCP 服务器支持两种操作模式:
📡 Stdio 模式(默认)
为了与 Claude Desktop 及其他 MCP 客户端集成:
🌐 网络服务模式
用于访问HTTP API及与Web应用的集成:
Web 服务端点:
POST /api/mcp- MCP JSON-RPC APIGET /health- 健康检查GET /metrics- 普罗米修斯指标
📖 完整的Web服务文档
快速安装(一句话)
🚀 只需一个命令即可安装Claude Desktop的Solana MCP Server:
这将:
- 下载预构建的二进制文件(如有)或从源码构建
- 自动配置 Claude Desktop
- 设置合适的环境变量
- 备份现有配置
替代安装方法:
安装后,重启Claude Desktop,直接开始查询Solana数据!
手动安装(高级)
使用预建二进制
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Solana MCP Server
A Model Context Protocol (MCP) server that provides comprehensive access to Solana blockchain data through Cline. This server implements a wide range of Solana RPC methods, making it easy to query blockchain information directly through natural language conversations.
🚀 Usage Modes
The Solana MCP Server supports two modes of operation:
📡 Stdio Mode (Default)
For integration with Claude Desktop and other MCP clients:
solana-mcp-server stdio # or just: solana-mcp-server
🌐 Web Service Mode
For HTTP API access and integration with web applications:
# Run on default port 3000
solana-mcp-server web
# Run on custom port
solana-mcp-server web --port 8080
Web Service Endpoints:
POST /api/mcp- MCP JSON-RPC APIGET /health- Health checkGET /metrics- Prometheus metrics
📖 Complete Web Service Documentation
Quick Installation (One-liner)
🚀 Install Solana MCP Server for Claude Desktop in one command:
curl -fsSL https://raw.githubusercontent.com/opensvm/solana-mcp-server/main/scripts/install.sh | bash
This will:
- Download pre-built binaries (if available) or build from source
- Configure Claude Desktop automatically
- Set up proper environment variables
- Back up existing configurations
Alternative install methods:
# Using wget
wget -qO- https://raw.githubusercontent.com/opensvm/solana-mcp-server/main/scripts/install.sh | bash
# Manual download and run
curl -fsSL https://raw.githubusercontent.com/opensvm/solana-mcp-server/main/scripts/install.sh -o install.sh
chmod +x install.sh
./install.sh
After installation, restart Claude Desktop and start querying Solana data directly!
Manual Installation (Advanced)
Using Pre-built Binaries
- Go to the Releases page
- Download the appropriate binary for your system:
- Linux:
solana-mcp-server-linux-amd64 - macOS Intel:
solana-mcp-server-macos-amd64 - macOS Apple Silicon:
solana-mcp-server-macos-arm64 - Windows:
solana-mcp-server-windows-amd64.exe
- Linux:
- Make the binary executable (Linux/macOS):
chmod +x solana-mcp-server-* - Configure Claude Desktop:
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/claude" mkdir -p "$CONFIG_DIR" echo "{\"mcpServers\":{\"solana\":{\"command\":\"$PWD/solana-mcp-server-*\",\"env\":{\"SOLANA_RPC_URL\":\"https://api.mainnet-beta.solana.com\"}}}}" > "$CONFIG_DIR/config.json"
Building from Source
git clone https://github.com/opensvm/solana-mcp-server.git
cd solana-mcp-server
cargo build --release
Then configure Claude Desktop with the path to target/release/solana-mcp-server.
Quick Deployment
🚀 One-liner deployment scripts for all platforms:
# Local development
./scripts/deploy-local.sh
# Docker container
./scripts/deploy-docker.sh
# Kubernetes with autoscaling
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →