モナドMCPチュートリアル
このプロジェクトは、Monadテストネットと連携するMCPサーバーの作成方法を示します。MCPサーバーは、Monadテストネット上のMONトークン残高を確認するためのツールを提供します。
MCPとは何ですか?
モデル コンテキスト プロトコル (MCP) は、AI モデルが外部のツールやサービスと対話できるようにする標準です。
このチュートリアルでは、MCP クライアント (Claude Desktop) が Monad テストネットにクエリを実行してアカウントの MON 残高を確認できるようにする MCP サーバーを作成します。
前提条件
- Node.js (v16以降)
npm
またはyarn
- クロードデスクトップ
はじめる
- このリポジトリをクローンする
- 依存関係をインストールします:
MCPサーバーの構築
Monad Testnet 関連の設定は、 src
フォルダーのindex.ts
にすでに追加されています。
サーバーインスタンスを定義する
MONバランスツールの定義
NFT数を照会する機能を追加
main
関数からトランスポートとサーバーを初期化する
プロジェクトを構築する
サーバーの使用準備が完了しました。
Claude DesktopにMCPサーバーを追加する
- 「Claude Desktop」を開く
- 設定を開く
クロード > 設定 > 開発者
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.
Monad テストネット上の MON トークン残高と NFT 数を照会できる MCP サーバー。これにより、Claude Desktop は Monad ブロックチェーンと対話できるようになります。
Related MCP Servers
- -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 -TypeScript
- -securityAlicense-qualityEnables interaction with the Monad testnet to check balances, examine transaction details, get gas prices, and retrieve block information.Last updated -TypeScriptMIT License
- -security-license-qualityA 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 -TypeScript
- -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 -JavaScript