SVM-MCP:SOON 模型上下文协议服务器
一个模型上下文协议 (MCP) 服务器,将 Claude AI 与 SOON 及其他基于 SVM 的区块链集成。该服务器提供用于查询余额、获取近期交易以及查看 SOON 测试网和主网上的代币持有情况的工具,包括账户余额、交易记录和代币持有量。
概述
该 MCP 服务器旨在将 Claude 与 SOON 生态系统连接起来,使其能够:
查询测试网和主网上的钱包余额
获取某个地址的最新交易
检查任何账户的代币持有量
当前实现使用 SOON 的 RPC 端点,但可以轻松修改以与任何与 Solana 兼容的区块链或自定义 SVM 实现一起使用。
特征
获取余额:获取 SOON 测试网或主网上任何地址的原生代币余额
获取最后一笔交易:检索某个地址的最近一笔交易
获取代币账户:列出某个地址拥有的所有代币账户
先决条件
Node.js(v16+)
NPM 或 Bun 包管理器
Claude Desktop(用于本地测试)
安装
克隆存储库:
安装依赖项:
构建项目:
项目结构
主服务器实现位于src/index.ts中:
工具实现
获取余额
获取最后交易
获取代币账户
服务器初始化
配置
Claude桌面配置
要将此 MCP 服务器与 Claude Desktop 一起使用,请将以下内容添加到您的claude_desktop_config.json文件中:
自定义 RPC 端点
要使用不同的 RPC 端点或连接到不同的 Solana 兼容区块链,请编辑src/index.ts中的连接 URL:
与 Claude 一起使用
一旦 MCP 服务器运行并连接到 Claude,您就可以使用以下命令:
检查地址余额
获取近期交易
检索代币持有量
致谢
人类克劳德的人工智能能力
用于实现工具集成的模型上下文协议
Solana Web3.js用于区块链交互
本例中使用的 SVM 实现的SOON Network
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
模型上下文协议服务器将 Claude AI 与 SOON 和其他基于 SVM 的区块链连接起来,允许用户检查账户余额、获取最近的交易以及查看 SOON 测试网和主网上的代币持有量。
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
- -securityFlicense-qualityA Model Context Protocol server that provides onchain tools for Claude AI, allowing it to interact with the Solana blockchain through a standardized interface for operations like managing assets, executing token operations, and retrieving network information.Last updated -7
- AsecurityFlicenseAqualityA Model Context Protocol server allowing Claude AI to interact with AWS resources through natural language, enabling users to query and manage AWS services without using the traditional AWS Console or CLI.Last updated -34
- -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