Hedera Testnet Mirror Node MCP Server
OfficialHedera テストネット ミラー ノード MCP サーバー
このリポジトリには、Hedera Testnet Mirror Node APIと連携するModel Context Protocol(MCP)サーバーが含まれています。このサーバーは、MCPサーバー作成用のTypeScriptフレームワークであるFastMCPを使用して構築されています。入力検証にはZodスキーマを使用しています。
特徴
エンドポイント統合: OpenAPI 仕様形式で定義された Hedera ミラー ノード API を MCP 互換ツールに自動的に変換します。
サーバー送信イベント (SSE) サポート: クライアントは SSE トランスポート経由でこの MCP サーバーに接続できません。
スキーマ検証: Zod を使用して、リクエスト パラメータが定義されたスキーマに準拠していることを確認します。
Related MCP server: MyPostmanServer
前提条件
サーバーを実行する前に、以下がインストールされていることを確認してください。
Bun 、または Typescript を直接実行できるその他の環境。
インストール
(1)リポジトリのクローンを作成する
git clone https://github.com/hedera-dev/mirrornode-mcp-server(2)プロジェクトディレクトリに移動する
cd mirrornode-mcp-server(3)依存関係をインストールする
npm install使用法
MCP サーバーを起動するには:
bun mcpServer.ts起動が成功すると、次のように表示されます。
MCP server startedサーバーは構成された SSE エンドポイントを介してアクセス可能になります。
http://localhost:3333/hedera-testnet-mirror-node-api/sse
プロジェクト構造
mcpServer.ts: MCP サーバーを初期化して起動するエントリ ポイント。openApiZod.ts: ミラー ノード API エンドポイント定義と、zodios(zodスキーマ定義が拡張されたaxiosなど) を使用する API クライアントが含まれています。このファイルは
openapi-zod-clientを使用してプログラム的に生成され、いくつかの手動変更が加えられていることに注意してください。
仕組み
(1)APIクライアントの作成
createApiClient関数を使用して、Hedera Testnetミラーノード用のAPIクライアントが作成されます。MCPサーバーは、このHTTP APIクライアントと独自のSSEトランスポート間のプロキシとして機能します。
(2)エンドポイント変換:
endpointDefinitionsからの各エンドポイント定義は、 convertZodiosToMcp関数によって処理されます。
エンドポイントが
GETメソッドを使用していることを検証します。パラメータを Zod スキーマにマップします。
対応する API 呼び出しを行って結果を返す実行関数を定義します。
ツールを MCP サーバーに登録します。
(3)サーバーの初期化:
MCP サーバーは SSE トランスポートを使用して起動されます。
依存関係
FastMCP : MCP サーバーを構築するためのフレームワーク。
Zod : TypeScript ファーストのスキーマ宣言および検証ライブラリ。
openapi-zod-client : OpenAPI 仕様ファイルから Zodios コードを生成します。
著者
ライセンス
マサチューセッツ工科大学
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA server for Model Context Protocol (MCP) that uses Server-Sent Events (SSE) for streaming communication, enabling tools like the HackerNews API to be accessed through a secure HTTP+SSE transport.29
- AlicenseNot gradedqualityDmaintenanceA lightweight Node.js-based MCP server that exposes custom tools via HTTP and Server-Sent Events (SSE) for clients like Postman. It allows users to register tools with type-safe validation to establish bidirectional communication with MCP clients.1,2701MIT
- FlicenseNot gradedqualityDmaintenanceA standalone MCP server that exposes API endpoints as tools for AI assistants by proxying requests to a target API defined in an OpenAPI specification. It supports various authentication methods and utilizes Server-Sent Events (SSE) to facilitate integration with clients like Claude and ChatGPT.
- FlicenseNot gradedqualityDmaintenanceMCP server that exposes Zulip REST API tools via SSE, enabling message retrieval, stream/topic listing, draft management, and notifications.
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for AI access to Swagger by SmartBear.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hedera-dev/mirrornode-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server