Monad MCP 教程
该项目演示了如何创建与 Monad 测试网交互的 MCP 服务器。MCP 服务器提供了一个用于检查 Monad 测试网上 MON 代币余额的工具。
什么是 MCP?
模型上下文协议 (MCP) 是一种允许 AI 模型与外部工具和服务交互的标准。
在本教程中,我们将创建一个 MCP 服务器,允许 MCP 客户端(Claude Desktop)查询 Monad 测试网以检查帐户的 MON 余额。
先决条件
Node.js(v16 或更高版本)
npm
或yarn
克劳德桌面
入门
克隆此存储库
安装依赖项:
构建 MCP 服务器
Monad Testnet 相关配置已经添加到src
文件夹中的index.ts
。
定义服务器实例
定义 MON 余额工具
添加查询 NFT 数量的功能
从main
函数初始化传输和服务器
构建项目
服务器现在可以使用了!
将 MCP 服务器添加到 Claude Desktop
打开“克劳德桌面”
打开“设置”
Claude > 设置 > 开发者
打开
claude_desktop_config.json
添加有关 MCP 服务器的详细信息并保存文件。
重启“Claude Desktop”
使用 MCP 服务器
这是最终结果
更多资源
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
MCP 服务器允许查询 Monad 测试网上的 MON 代币余额和 NFT 数量,从而使 Claude Desktop 能够与 Monad 区块链进行交互。
Related MCP Servers
- -securityAlicense-qualityAn MCP server that allows accessing and managing ledger files through Claude by providing account listing, balance checking, and transaction register viewing capabilities.Last updated -3GPL 3.0
- -securityFlicense-qualityAn MCP server that connects Claude for Desktop with blockchain functionality, allowing users to check balances and send tokens on EVM and Solana chains through natural language interactions.Last updated -
- AsecurityFlicenseAqualityA server that retrieves NFT-related data on the Monad testnet, allowing users to check NFT holders, calculate portfolio values, view collections, and track top-selling NFTs by volume and sales across different time periods.Last updated -11
- -securityFlicense-qualityAn MCP server that helps users create NFT collections, deploy smart contracts to the Monad blockchain, and generate mint websites with Claude AI integration.Last updated -