Skip to main content
Glama

Hedera Testnet Mirror Node MCP Server

Official
by hedera-dev

Hedera テストネット ミラー ノード MCP サーバー

このリポジトリには、Hedera Testnet Mirror Node APIと連携するModel Context Protocol(MCP)サーバーが含まれています。このサーバーは、MCPサーバー作成用のTypeScriptフレームワークであるFastMCPを使用して構築されています。入力検証にはZodスキーマを使用しています。

特徴

  • エンドポイント統合: OpenAPI 仕様形式で定義された Hedera ミラー ノード API を MCP 互換ツールに自動的に変換します。
  • サーバー送信イベント (SSE) サポート: クライアントは SSE トランスポート経由でこの MCP サーバーに接続できません。
  • スキーマ検証: Zod を使用して、リクエスト パラメータが定義されたスキーマに準拠していることを確認します。

前提条件

サーバーを実行する前に、以下がインストールされていることを確認してください。

  • 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 コードを生成します。

著者

ブレンダン・グラーツ

ライセンス

マサチューセッツ工科大学

-
security - not tested
-
license - not tested
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Hedera Testnet Mirror Node API とインターフェースし、OpenAPI 定義のエンドポイントを Server-Sent Events (SSE) 経由でアクセスできる MCP 互換ツールに変換するサーバー。

  1. 特徴
    1. 前提条件
      1. インストール
        1. 使用法
          1. プロジェクト構造
            1. 仕組み
              1. 依存関係
                1. 著者
                  1. ライセンス

                    Related MCP Servers

                    • -
                      security
                      A
                      license
                      -
                      quality
                      This tool creates a Model Context Protocol (MCP) server that acts as a proxy for any API that has an OpenAPI v3.1 specification. This allows you to use Claude Desktop to easily interact with both local and remote server APIs.
                      Last updated -
                      176
                      641
                      JavaScript
                      MIT License
                      • Apple
                      • Linux
                    • A
                      security
                      A
                      license
                      A
                      quality
                      A TypeScript-based MCP server that enables testing of REST APIs through Cline. This tool allows you to test and interact with any REST API endpoints directly from your development environment.
                      Last updated -
                      1
                      10
                      23
                      JavaScript
                      MIT License
                      • Apple
                    • -
                      security
                      A
                      license
                      -
                      quality
                      A Python-based MCP server that integrates OpenAPI-described REST APIs into MCP workflows, enabling dynamic exposure of API endpoints as MCP tools.
                      Last updated -
                      2
                      39
                      Python
                      MIT License
                      • Linux
                      • Apple
                    • -
                      security
                      A
                      license
                      -
                      quality
                      An MCP server that exposes HTTP methods defined in an OpenAPI specification as tools, enabling interaction with APIs via the Model Context Protocol.
                      Last updated -
                      2
                      Python
                      MIT License

                    View all related MCP servers

                    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