Solana MCP 服务器
MCP 服务器使用您自己的私钥与 Solana 区块链进行交互。
📖 目录
✨ 特点
- 获取最新插槽
- 获取钱包地址
- 获取钱包余额
- 转移SOL
⚙️ 设置
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Solana MCP:
手动设置
- 克隆存储库
- 安装依赖项
- 构建项目
- 创建密钥对文件 在任何位置创建一个名为
keypair.json
的文件,并将你的私钥复制到其中。查看 example-keypair.json 文件以获取示例。
注意:RPC 端点默认设置为api.devnet.solana.com
。如果您想使用其他端点,可以在run.sh
文件中进行设置。
与 Cursor 集成
要与 Cursor 集成,请按照以下步骤操作:
- 在光标设置中,转到 MCP
- 点击“添加新的 MCP 服务器”
- 输入以下信息:
- 名称: Solana MCP
- 类型:命令
- 命令:
/path/to/your/solana-mcp/run.sh /path/to/your/keypair.json
示例命令: /Users/username/projects/solana-mcp/run.sh /Users/username/Documents/keypair.json
🛠️ 可用工具
1. 获取最新槽
返回最新的插槽号:
2. 获取钱包地址
返回钱包地址:
3. 获取钱包余额
返回 SOL、Lamports 和 USD 的钱包余额:
4. 转让
将 SOL 转移到收件人地址:
🧑💻 贡献
欢迎贡献!请打开一个问题或提交一个拉取请求。
🔖 许可证
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
一个使用您自己的私钥与 Solana 区块链进行交互的服务器,支持获取钱包信息、检查余额和转移 SOL 等操作。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA Model-Context-Protocol server enabling users to perform basic operations on Solana and Ethereum blockchains through simple RPC endpoints.Last updated -1082TypeScriptApache 2.0
- -securityAlicense-qualityA server that enables interaction with the Solana blockchain, providing access to over 40 Solana RPC methods including getting balances, transaction details, block information, and sending transactions.Last updated -3PythonMIT License
- AsecurityFlicenseAqualityA server that provides simple RPC endpoints for common Solana blockchain operations, allowing users to check balances, get account information, and transfer SOL between accounts.Last updated -51TypeScript
- -securityFlicense-qualityA Solana blockchain interaction server that allows AI tools to query blockchain data using natural language, access structured token information, and generate human-readable explanations of complex blockchain concepts.Last updated -9Python