Hedera MCP Server
ヘデラMCPサーバー
Hederaネットワークとやり取りするためのモデルコンテキストプロトコル(MCP)サーバー。このサーバーは、Hederaウォレットの作成、アカウント残高の確認、トランザクションの構築、署名付きトランザクションの送信のためのツールを提供します。
⚠️ セキュリティ警告
**これはデモ実装であり、本番環境では使用しないでください。**現在の実装には、いくつかのセキュリティ上の脆弱性があります。
秘密鍵はレスポンス本文で送信される
機密データの暗号化なし
取引検証メカニズムがない
この実装は MCP の概念を示すことを目的としており、実稼働環境で使用する前に適切に保護する必要があります。
Related MCP server: MCP Clusters API Server
主な目的
このMCPサーバーの主な目的は、クライアントはトランザクションの検証のみで、トランザクションの構築と実行がMCPサーバーによって処理される様子を示すことです。具体的には以下のとおりです。
トランザクションの構築はMCPサーバー上で完全に行われる
クライアントは構築されたトランザクションに署名する
MCPサーバーはHederaネットワークへのトランザクションの送信を処理する。
このアーキテクチャにより、集中化されたトランザクションロジックが可能になり、クライアント側の複雑さが軽減されます。
前提条件
Node.js (v18以上)
npmまたはyarn
Hederaアカウント(テストネットまたはメインネット用)
インストール
このリポジトリをクローンします:
git clone https://github.com/hedera-dev/hedera-mcp-server.git cd hedera-mcp-server依存関係をインストールします:
npm installHedera の資格情報を使用して、ルート ディレクトリに
.envファイルを作成します。HEDERA_OPERATOR_ID=your-operator-account-id HEDERA_OPERATOR_KEY=your-operator-private-key HEDERA_NETWORK=testnet # or mainnet PORT=3000 # optional, defaults to 3000
アプリケーションの構築
TypeScript コードをコンパイルします。
npm run build自動再コンパイルによる開発の場合:
npm run devサーバーの実行
サーバーを起動します。
npm startサーバーはhttp://localhost:3000 (または .env ファイルで指定されたポート) で利用できます。
テストクライアントによるテスト
リポジトリには、MCPサーバーに接続してツールを使用する方法を示すテストクライアントスクリプトが含まれています。このクライアントは、利用可能なすべてのツールをデモンストレーションする完全なエンドツーエンドのフローを提供します。
テストクライアントを実行します。
node test-client.jsテスト クライアントは次のことを実行します。
MCPサーバーに接続する
利用可能なツールの一覧
新しいHederaウォレットを作成する(create-walletツール)
新しいアカウントの残高を確認する(残高確認ツール)
アカウントの残高全体をオペレーターアカウントに転送するトランザクションを構築する(トランザクション構築ツール)
Hedera SDKを使用してクライアント側でトランザクションに署名する
署名されたトランザクションをHederaネットワークに送信する(トランザクション送信ツール)
取引結果を表示する
これは、アカウントの作成からトランザクションの送信まで、MCP サーバーを介して Hedera ネットワークと対話する完全なライフサイクルを示しています。
利用可能なMCPツール
サーバーは次のツールを提供します。
create-wallet : 最小限の初期残高で新しいHederaアカウントを作成します
入力パラメータは不要
アカウントID、公開鍵、秘密鍵を返します
check-balance : Hederaアカウントの残高をチェックする
入力:
accountId(文字列)口座残高をtinybarsで返します
build-transaction : 転送トランザクションを構築する(署名なし)
入力:
senderAccountId(文字列)recipientAccountId(文字列)amount(数値、タイニーバー単位)
base64でエンコードされたトランザクションを返します
send-transaction : 署名されたトランザクションをHederaネットワークに送信する
入力:
signedTransaction(文字列、base64エンコード)トランザクションのステータスとIDを返します
展開
簡単なデプロイメント スクリプトが含まれています:
./deploy.shまず実行可能にしてください:
chmod +x deploy.shThis 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 Connectors
Tenzro Network MCP server: wallet, identity, payments, inference, staking, bridges, verification.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
MCP server for Klever blockchain smart contract development.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI models to interact with the Solana blockchain, providing RPC methods, wallet management, DeFi trading capabilities, and Helius API integration for enhanced Solana development.5MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server implementation that provides endpoints for wallet-based authentication, cluster management, and name registration services.1
- FlicenseNot gradedqualityDmaintenanceA production-ready Node.js server that enables decentralized communication between AI agents on the Hedera network, implementing the Model-Context-Protocol architecture with support for multiple Hedera Consensus Service standards.
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that extends AI capabilities by providing tools to interact with the Solana blockchain, enabling operations like transactions, account queries, and wallet management.1Apache 2.0
Appeared in Searches
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/hts-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server