Solana Vault MCP
使用 Python 实现安全 Solana 区块链钱包操作的模型上下文协议 (MCP)。
概述
Solana Vault MCP 通过标准化的模型上下文协议 (MCP) 接口为 Solana 区块链提供安全的钱包操作。它允许 AI 助手无需直接访问私钥即可与 Solana 区块链安全地交互。
特征
安全的 Solana 钱包操作
SOL 余额检查
SOL 转移能力
交易历史记录检索
模型上下文协议兼容 API
支持 Flask Web 服务器和 WebSocket 连接
详细的日志记录和错误处理
安装
先决条件
Python 3.9+
点子
设置
克隆存储库:
git clone https://github.com/olaxbt/solana-vault-mcp.git cd solana-vault-mcp创建并激活虚拟环境:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate安装依赖项:
pip install -r requirements.txt根据
.env.example创建.env文件:cp .env.example .env编辑
.env文件以添加您的 Solana 私钥和 RPC URL。
用法
启动服务器
服务器将在您的.env文件中指定的端口上启动(默认值:5000)。
API 端点
GET /- 包含服务信息的欢迎页面GET /health- 健康检查端点GET /api/mcp/ping- MCP 服务健康检查POST /api/mcp/query- 主要 MCP 查询端点
MCP 操作
Solana Vault MCP 支持以下操作:
wallet.info- 获取钱包信息wallet.balance- 获取 SOL 余额wallet.transfer- 将 SOL 转移到另一个钱包wallet.transactions- 获取最近的交易wallet.token_balance- 获取特定代币的代币余额
示例查询
回复:
发展
项目结构
运行测试
执照
麻省理工学院
贡献
欢迎贡献代码!欢迎提交 Pull 请求。
Related MCP Servers
- -securityAlicense-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
- -securityAlicense-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
- -securityAlicense-qualityA 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 -4MIT License
- -securityFlicense-qualityA Model Context Protocol server that enables Claude AI to interact with the Solana blockchain, allowing it to execute transactions, query accounts, manage wallets, get price predictions, trade tokens, and access various blockchain data sources.Last updated -3