
一个模型上下文协议服务器,用于与 Solana 区块链交互,由 Solana 代理套件(https://github.com/sendaifun/solana-agent-kit)
概览
一个模型上下文协议(MCP)服务器,为 Claude AI 提供链上工具,使其能够通过标准化接口与 Solana 区块链交互。该实现基于 Solana Agent Kit,使 AI 代理能够无缝执行区块链操作。 该 MCP 服务器通过提供以下工具扩展了 Claude 的功能: * 与 Solana 区块链互动 * 执行交易 * 查询账户信息 * 管理 Solana 钱包 该服务器实现了模型上下文协议规范,以标准化AI代理的区块链交互。 * Node.js(v16及以上)* pnpm(推荐)、npm或yarn * 带私钥的Solana钱包 * Solana RPC URL(主网、测试网或开发网) 这将启动一个交互式安装过程,指导你完成:- 如有需要设置Node.js - 配置你的Solana RPC URL和私钥- 设置Claude桌面集成 创建一个 .
概述(AI 翻译)
检查法拉
一个模型上下文协议(MCP)服务器,为 Claude AI 提供链上工具,使其能够通过标准化接口与 Solana 区块链交互。该实现基于 Solana Agent Kit,使 AI 代理能够无缝执行区块链操作。
概述
该 MCP 服务器通过提供以下工具扩展了 Claude 的功能:
- 与Solana 区块链互动
- 执行交易
- 查询账户信息
- 管理Solana钱包
该服务器实现了模型上下文协议规范,以标准化AI代理的区块链交互。
先修条件
- Node.js(v16或更高)
- PNPM(推荐)、NPM或纱线
- 带私钥的索拉纳钱包
- Solana RPC URL(主网、测试网或开发网)
安装
选项1:快速安装(推荐)
这将启动一个互动安装过程,引导你完成:
- 如有需要,Node.js建立
- 配置您的Solana RPC URL和私钥
- 设置 Claude Desktop 集成
选项2:从npm安装(推荐给Cursor/Cline等客户端)
选项3:从源代码构建
-
克隆此仓库:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Solana Agent Kit MCP Server
Check on Phala
A Model Context Protocol (MCP) server that provides onchain tools for Claude AI, allowing it to interact with the Solana blockchain through a standardized interface. This implementation is based on the Solana Agent Kit and enables AI agents to perform blockchain operations seamlessly.
Overview
This MCP server extends Claude’s capabilities by providing tools to:
- Interact with Solana blockchain
- Execute transactions
- Query account information
- Manage Solana wallets
The server implements the Model Context Protocol specification to standardize blockchain interactions for AI agents.
Prerequisites
- Node.js (v16 or higher)
- pnpm (recommended), npm, or yarn
- Solana wallet with private key
- Solana RPC URL (mainnet, testnet, or devnet)
Installation
Option 1: Quick Install (Recommended)
# Download the installation script
curl -fsSL https://raw.githubusercontent.com/sendaifun/solana-mcp/main/scripts/install.sh -o solana-mcp-install.sh
# Make it executable and run
chmod +x solana-mcp-install.sh && ./solana-mcp-install.sh --backup
This will start an interactive installation process that will guide you through:
- Setting up Node.js if needed
- Configuring your Solana RPC URL and private key
- Setting up the Claude Desktop integration
Option 2: Install from npm ( recommend for clients like Cursor/Cline)
# Install globally
npm install -g solana-mcp
# Or install locally in your project
npm install solana-mcp
Option 3: Build from Source
- Clone this repository:
git clone https://github.com/sendaifun/solana-mcp
cd solana-mcp
- Install dependencies:
pnpm install
- Build the project:
pnpm run build
Configuration
Environment Setup
Create a .env file with your credentials:
# Solana Configuration
SOLANA_PRIVATE_KEY=your_private_key_here
RPC_URL=your_solana_rpc_url_here
OPENAI_API_KEY=your_openai_api_key # OPTIONAL
Integration with Claude Desktop
To add this MCP server to Claude Desktop, follow these steps:
- Locate the Claude Desktop Configuration File
安装
npx solana-mcp配置
{
"mcpServers": {
"solana-mcp": {
"command": "npx",
"args": ["solana-mcp"],
"env": {
"RPC_URL": "your_solana_rpc_url_here",
"SOLANA_PRIVATE_KEY": "your_private_key_here",
"OPENAI_API_KEY": "your_openai_api_key" // OPTIONAL
},
"disabled": false,
"autoApprove": []
}
}
}