Zetrix MCP Server
OfficialZetrix MCPサーバー
Zetrixブロックチェーンと対話するための包括的なModel Context Protocol (MCP) サーバーです。HTTP RPC、WebSocket (protobuf)、SDKトランザクション、暗号化、スマートコントラクト開発という7つのカテゴリにわたる55個のツールを提供します。stdioおよびHTTPトランスポートモードの両方をサポートしています。
Zetrix通貨情報
ネイティブコイン: ZETRIX
メイン単位: ZETRIX
基本単位: ZETA
換算: 1 ZETRIX = 1,000,000 ZETA
ガス代:
testTransactionを通じて動的に評価
Related MCP server: MCP Crypto Wallet EVM
クイックスタート
npx zetrix-mcp-serverまたはグローバルにインストール:
npm install -g zetrix-mcp-serverガイド:
QUICKSTART.md — 5分でセットアップ
EXAMPLES.md — 20以上の例で学習
機能 (56ツール)
一般 (1ツール)
ツール | 説明 |
| MCPサーバーのバージョンとネットワーク情報を取得 |
HTTP RPC (16ツール)
ツール | 説明 |
| ノードの健全性ステータスを確認 |
| 残高やメタデータを含むアカウント情報を取得 |
| 高さからブロックを取得 |
| 最新のブロックを取得 |
| ハッシュからトランザクションを取得 |
| ZETAおよびZETRIXの残高を取得 |
| 新しいキーペアを生成 (テスト用) |
| 基本的なアカウント情報を取得 |
| 資産保有状況を取得 |
| アカウントメタデータを取得 |
| 完了したトランザクションを取得 |
| 保留中のトランザクションを取得 |
| 台帳/ブロック情報を取得 |
| 複数のクエリを実行 |
| トランザクションを16進数にシリアライズ |
| 署名済みトランザクションを送信 |
コントラクトクエリ (2ツール)
ツール | 説明 |
| サンドボックス内でコントラクトを呼び出し (読み取り専用) |
| 送信せずに手数料を評価 |
WebSocket — リアルタイム (5ツール)
Zetrixノードとの通信にはprotobufバイナリエンコーディングを使用します。
ツール | 説明 |
| protobuf CHAIN_HELLO経由で接続および登録 |
| リアルタイムステータス付きでトランザクションを送信 |
| トランザクション通知を購読 |
| WebSocketから切断 |
| 接続ステータスを確認 |
SDKクエリ (5ツール)
ツール | 説明 |
| 新しいアカウントを作成 |
| SDK経由で残高を取得 |
| アカウントが有効化されているか確認 |
| アカウントのナンスを取得 |
| SDK経由でコントラクトを呼び出し (読み取り専用) |
SDKトランザクション (11ツール)
すべてのトランザクションツールは、動的なガス価格設定のために evaluateFee (testTransaction) を使用します。すべての操作でオプションの gasPrice/feeLimit 上書きがサポートされています。
ツール | 説明 |
| ネイティブZETRIXを別のアドレスに送信 |
| 初期残高で新しいアカウントを有効化 |
| アカウントにキーと値のメタデータを設定 |
| アカウントの重み、しきい値、署名者を設定 |
| 新しいカスタムトークンを発行 |
| カスタムトークンを転送 |
| スマートコントラクトをデプロイ (オプションで所有者指定可) |
| ガス支払い付きでコントラクトを呼び出し |
| 資産転送付きでコントラクトを呼び出し |
| コントラクトコードのアップグレードおよび/または所有権の移転 |
| オンチェーンイベントログを作成 |
暗号化 (8ツール)
ツール | 説明 |
| 新しいキーペアを生成 (アドレス、秘密鍵、公開鍵) |
| 秘密鍵から公開鍵を導出 |
| 公開鍵からアドレスを取得 |
| 秘密鍵、公開鍵、またはアドレス形式を検証 |
| 秘密鍵でメッセージ (16進数) に署名 |
| 署名を検証 |
| パスワードで秘密鍵を暗号化 |
| 暗号化された秘密鍵を復号 |
スマートコントラクト開発 (7ツール)
ツール | 説明 |
| Chainオブジェクト関数のドキュメント |
| Utilsオブジェクト関数のドキュメント |
| コントラクト構造とES5パターンのガイド |
| トークン標準仕様 (ZTP20, ZTP721, ZTP1155) |
|
|
| マルチクラスコントラクトアーキテクチャを生成 |
| テストガイド (TEST_INVOKE, TEST_QUERY) |
サポートされているネットワーク
ネットワーク | HTTP RPC | WebSocket |
Mainnet |
|
|
Testnet |
|
|
設定
環境変数
変数 | 説明 | デフォルト |
| ネットワーク選択 ( |
|
| カスタムHTTP RPCエンドポイント (ネットワークデフォルトを上書き) | — |
| カスタムWebSocketエンドポイント (ネットワークデフォルトを上書き) | — |
| トランスポートモード ( |
|
| HTTPサーバーポート ( |
|
| トランザクション署名用のデフォルト秘密鍵 (オプション、会話から鍵を除外) | — |
| トランザクション用のデフォルト送信元アドレス (オプション) | — |
安全なトランザクション (推奨)
ZETRIX_PRIVATE_KEY と ZETRIX_SOURCE_ADDRESS を環境変数として設定することで、秘密鍵が会話中に公開されることはありません。LLMは、あなたの鍵を見ることなく「0.01 ZETRIXをZTX3...に送る」といったトランザクションを実行できます。
{
"mcpServers": {
"zetrix": {
"command": "npx",
"args": ["-y", "zetrix-mcp-server"],
"env": {
"ZETRIX_NETWORK": "testnet",
"ZETRIX_PRIVATE_KEY": "your-private-key-here",
"ZETRIX_SOURCE_ADDRESS": "your-zetrix-address-here"
}
}
}
}注: これらはオプションです。設定されていない場合、LLMは会話の中で秘密鍵と送信元アドレスを尋ねるか、提供される必要があります。設定されている場合はデフォルトとして使用されますが、必要に応じてツール呼び出しごとに上書きすることも可能です。
Claude Code (CLI)
コマンドラインから直接MCPサーバーを追加します:
Mainnet:
claude mcp add zetrix-mainnet -s user -- npx -y zetrix-mcp-server -e ZETRIX_NETWORK=mainnetTestnet:
claude mcp add zetrix-testnet -s user -- npx -y zetrix-mcp-server -e ZETRIX_NETWORK=testnetカスタムRPCおよびWebSocket URLを使用する場合:
claude mcp add zetrix-testnet -s user -- npx -y zetrix-mcp-server \
-e ZETRIX_NETWORK=testnet \
-e ZETRIX_RPC_URL=https://your-node.example.com \
-e ZETRIX_WS_URL=wss://your-ws-node.example.comClaude Desktop
Claude Desktop設定ファイルを編集します:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonWindows (Microsoft Store):
%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json
Testnet:
{
"mcpServers": {
"zetrix": {
"command": "npx",
"args": ["-y", "zetrix-mcp-server"],
"env": {
"ZETRIX_NETWORK": "testnet"
}
}
}
}Mainnet:
{
"mcpServers": {
"zetrix": {
"command": "npx",
"args": ["-y", "zetrix-mcp-server"],
"env": {
"ZETRIX_NETWORK": "mainnet"
}
}
}
}両方のネットワーク (mainnet + testnet):
{
"mcpServers": {
"zetrix-mainnet": {
"command": "npx",
"args": ["-y", "zetrix-mcp-server"],
"env": {
"ZETRIX_NETWORK": "mainnet"
}
},
"zetrix-testnet": {
"command": "npx",
"args": ["-y", "zetrix-mcp-server"],
"env": {
"ZETRIX_NETWORK": "testnet"
}
}
}
}カスタムRPCおよびWebSocket URLを使用する場合:
{
"mcpServers": {
"zetrix": {
"command": "npx",
"args": ["-y", "zetrix-mcp-server"],
"env": {
"ZETRIX_NETWORK": "testnet",
"ZETRIX_RPC_URL": "https://your-node.example.com",
"ZETRIX_WS_URL": "wss://your-ws-node.example.com"
}
}
}
}設定ファイルを保存した後、Claude Desktopを再起動して変更を反映させてください。
注:
ZETRIX_RPC_URLとZETRIX_WS_URLは、選択したネットワークのデフォルトエンドポイントを上書きします。片方だけ、または両方を上書きできます。設定されていない場合は、上記の表のデフォルトが使用されます。
HTTPトランスポート (APIサーバー)
Streamable HTTPトランスポートを使用して、MCPサーバーをHTTP APIサーバーとして実行します。これにより、リモートのMCPクライアントがネットワーク経由で接続できるようになります。
サーバーの起動 (デフォルトはmainnet):
ZETRIX_TRANSPORT=http ZETRIX_PORT=3000 ZETRIX_NETWORK=testnet npx zetrix-mcp-serverTestnetを使用する場合:
ZETRIX_TRANSPORT=http ZETRIX_PORT=3000 ZETRIX_NETWORK=testnet npx zetrix-mcp-serverエンドポイント:
エンドポイント | メソッド | 説明 |
| POST | MCPプロトコルエンドポイント (Streamable HTTP) |
| GET | 健全性チェック — |
MCPクライアントから接続:
{
"mcpServers": {
"zetrix": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}両方のネットワーク (mainnet + testnet):
異なるポートで2つのサーバーを実行します:
ZETRIX_TRANSPORT=http ZETRIX_PORT=3000 ZETRIX_NETWORK=mainnet npx zetrix-mcp-server &
ZETRIX_TRANSPORT=http ZETRIX_PORT=3001 ZETRIX_NETWORK=testnet npx zetrix-mcp-server &次に、MCPクライアントを設定します:
{
"mcpServers": {
"zetrix-mainnet": {
"type": "http",
"url": "http://localhost:3000/mcp"
},
"zetrix-testnet": {
"type": "http",
"url": "http://localhost:3001/mcp"
}
}
}注: HTTPトランスポートはMCP Streamable HTTP仕様を使用します。
StreamableHTTPトランスポートをサポートするすべてのMCPクライアントが接続可能です。
サーバーログ:
サーバーはstderrにログを出力します。ログを表示するには、フォアグラウンドで実行するか、ファイルにリダイレクトしてください:
# Foreground — logs show directly in terminal
ZETRIX_TRANSPORT=http ZETRIX_PORT=3000 npx zetrix-mcp-server
# Background with logs to file
ZETRIX_TRANSPORT=http ZETRIX_PORT=3000 npx zetrix-mcp-server 2> server.log &
tail -f server.log開発
プロジェクト構造
zetrix-mcp-server/
├── src/
│ ├── index.ts # MCP server (55 tool definitions + handlers)
│ ├── zetrix-client.ts # HTTP RPC client
│ ├── zetrix-sdk.ts # SDK wrapper (11 transaction operations)
│ ├── zetrix-websocket.ts # WebSocket client (protobuf binary)
│ ├── zetrix-encryption.ts # Crypto operations
│ ├── zetrix-contract-docs.ts # Contract documentation
│ └── zetrix-contract-generator.ts # Contract code generator
├── tests/
│ ├── test-server.js # HTTP RPC tests
│ ├── test-sdk.js # SDK tests
│ └── test-encryption.js # Crypto tests
├── docs/
│ ├── TEST_REPORT.md # Comprehensive test results
│ ├── DEVELOPER_GUIDE.md # Developer documentation
│ ├── ZETRIX_CONTRACT_DEVELOPMENT_RULES.md
│ ├── QUICKSTART.md # 5-minute setup guide
│ └── EXAMPLES.md # 20+ usage examples
└── dist/ # Compiled outputビルド
npm install
npm run buildテスト
npm test # HTTP RPC tests
ZETRIX_NETWORK=testnet npm test # Run on testnet
npm run test:sdk # SDK tests
npm run test:encryption # Crypto testsライセンス
MIT
Available Tools
44 toolszetrix_call_contractB
Call smart contract in sandbox environment for debugging
Inputs: contractAddress, code, input, contractBalance, +4 more.
zetrix_check_healthB
Check the health status of the Zetrix node
Inputs: no named parameters.
zetrix_contract_generate_advancedA
Generate advanced multi-class Zetrix smart contract with interfaces, libraries, utilities, main contract, and comprehensive test specs. MANDATORY WORKFLOW: (1) First call zetrix_contract_init_dev_environment with contractName (e.g., 'CertificateContract'). (2) Then call this tool with the SAME contractName and outputDirectory set to './{contractName}'. Calling this tool WITHOUT initializing the project first will result in an error. Supports complex architectures with inheritance, composition, and modular design.
Inputs: contractName (required), contractType (required), features, tokenStandard, +2 more.
zetrix_contract_get_chain_functionsA
Get documentation for all built-in Chain object functions available in Zetrix smart contracts
Inputs: no named parameters.
zetrix_contract_get_structure_guideB
Get guide on how to structure Zetrix smart contracts with ES5 patterns, classes, and inheritance
Inputs: no named parameters.
zetrix_contract_get_testing_guideB
Get guide on testing Zetrix smart contracts with TEST_INVOKE and TEST_QUERY
Inputs: no named parameters.
zetrix_contract_get_token_standardC
Get token standard specification (ZTP20, ZTP721, or ZTP1155)
Inputs: standard (required).
zetrix_contract_get_utils_functionsB
Get documentation for all built-in Utils object functions available in Zetrix smart contracts
Inputs: no named parameters.
zetrix_contract_init_dev_environmentB
Initialize a new Zetrix smart contract development environment using create-zetrix-tool. This creates a complete project structure with testing framework, examples, and utilities.
Inputs: contractName (required), workingDirectory.
zetrix_create_keypairB
Generate a new public-private key pair (for testing only)
Inputs: no named parameters.
zetrix_crypto_decrypt_keyC
Decrypt an encrypted private key with a password
Inputs: encryptedData (required), password (required).
zetrix_crypto_encrypt_keyC
Encrypt a private key with a password for secure storage
Inputs: privateKey (required), password (required).
zetrix_crypto_generate_keypairB
Generate a new Zetrix key pair with private key, public key, and address
Inputs: no named parameters.
zetrix_crypto_get_addressC
Get Zetrix address from public key
Inputs: publicKey (required).
zetrix_crypto_get_public_keyC
Derive public key from private key
Inputs: privateKey (required).
zetrix_crypto_signC
Sign a message with a private key
Inputs: message (required), privateKey (required).
zetrix_crypto_validate_keyC
Validate private key, public key, or address format
Inputs: type (required), value (required).
zetrix_crypto_verifyC
Verify a signature against a message and public key
Inputs: message (required), signature (required), publicKey (required).
zetrix_get_accountC
Get Zetrix account information including balance and metadata
Inputs: address (required).
zetrix_get_account_assetsB
Get asset holdings for an account
Inputs: address (required), code, issuer.
zetrix_get_account_baseB
Get basic account information without assets and metadata
Inputs: address (required).
zetrix_get_account_metadataC
Get metadata associated with an account
Inputs: address (required), key.
zetrix_get_balanceB
Get the ZETRIX balance of an account. Returns balance in both ZETA (micro units) and ZETRIX (main units). Note: 1 ZETRIX = 1,000,000 ZETA
Inputs: address (required).
zetrix_get_blockC
Get information about a specific block by height
Inputs: blockNumber (required).
zetrix_get_latest_blockB
Get the latest block information from Zetrix blockchain
Inputs: no named parameters.
zetrix_get_ledgerC
Get block/ledger information with optional details
Inputs: seq, withValidator, withConsValue, withFee.
zetrix_get_transactionC
Get transaction details by transaction hash
Inputs: hash (required).
zetrix_get_transaction_blobC
Serialize transaction data into hexadecimal format
Inputs: transaction (required).
zetrix_get_transaction_cacheC
Get pending transactions not yet executed
Inputs: hash, limit.
zetrix_get_transaction_historyC
Get completed transaction records
Inputs: hash, ledgerSeq.
zetrix_multi_queryC
Execute multiple API queries simultaneously
Inputs: items (required).
zetrix_sdk_call_contractA
Call a smart contract function (query only, no state change) using SDK
Inputs: contractAddress (required), input, sourceAddress.
zetrix_sdk_create_accountB
Create a new Zetrix account using the official SDK
Inputs: no named parameters.
zetrix_sdk_get_balanceC
Get account balance using the official SDK
Inputs: address (required).
zetrix_sdk_get_nonceC
Get account nonce (transaction sequence number)
Inputs: address (required).
zetrix_sdk_invoke_contractB
Invoke a smart contract function with state change (requires private key)
Inputs: sourceAddress (required), privateKey (required), contractAddress (required), amount (required), +2 more.
zetrix_sdk_is_activatedC
Check if an account is activated on the blockchain
Inputs: address (required).
zetrix_submit_transactionC
Submit signed transaction to blockchain for execution
Inputs: transactionBlob (required), signatures (required).
zetrix_test_transactionB
Evaluate transaction fees without blockchain submission
Inputs: items (required).
zetrix_ws_connectC
Connect and register to Zetrix WebSocket for real-time updates
Inputs: apiList.
zetrix_ws_disconnectB
Disconnect from WebSocket
Inputs: no named parameters.
zetrix_ws_statusB
Check WebSocket connection status
Inputs: no named parameters.
zetrix_ws_submit_transactionB
Submit transaction via WebSocket and get real-time status updates
Inputs: transaction (required), signatures (required), trigger.
zetrix_ws_subscribe_txC
Subscribe to transaction notifications for specific addresses
Inputs: addresses (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 44 tools
The tool set has clear thematic grouping (e.g., crypto, account, contract, SDK, WebSocket), but there is notable overlap within groups. For example, zetrix_get_account, zetrix_get_account_base, and zetrix_get_balance all retrieve account-related data with subtle distinctions that could confuse agents. Similarly, multiple contract call tools (zetrix_call_contract, zetrix_sdk_call_contract) and transaction submission tools (zetrix_submit_transaction, zetrix_ws_submit_transaction) have overlapping purposes, though descriptions provide some guidance.
Tool names follow a highly consistent pattern throughout: all start with 'zetrix_' prefix, use snake_case uniformly, and employ a verb_noun structure (e.g., zetrix_get_balance, zetrix_create_keypair). Minor deviations like 'zetrix_multi_query' (adjective_verb_noun) are rare and do not disrupt readability, maintaining excellent predictability across all 44 tools.
With 44 tools, the server is overly broad and heavy for a single MCP server, likely covering multiple domains (blockchain interaction, smart contract development, cryptography, WebSocket management). This high count increases complexity and cognitive load for agents, making it difficult to navigate efficiently. A more modular approach with separate servers for distinct functionalities would be more appropriate.
The tool surface is extensive and covers core blockchain operations comprehensively, including account management, transaction handling, contract development, and real-time updates. However, there are minor gaps: for instance, tools for updating or deleting accounts are missing, and some advanced contract management features (e.g., contract deployment or upgrade) are not explicitly covered, though the provided guides and generation tools mitigate this.
Maintenance
Related MCP Connectors
One workspace of tools for Claude and ChatGPT: connect 600+ apps, generate media, build tools.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
- platform7nDeprecatedtech.p7n
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
A second brain for Claude: remembers your work, plans your day, encrypted under a key only you hold.
Related MCP Servers
AlicenseAqualityDmaintenanceEnables read and write interactions with 60+ blockchain networks through Claude Desktop, providing a standardized multi-chain API for transaction management, account insights, staking, and token interactions.121MIT- AlicenseBqualityDmaintenanceProvides Claude with access to Ethereum and EVM-compatible blockchain operations, enabling wallet management, transaction handling, contract interactions, and blockchain queries through natural language.3593 npm10MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with the Stacks blockchain through Claude Desktop. Manage wallets, trade tokens on DEXs, stack STX for Bitcoin rewards, and track portfolio—all through natural conversation.6MIT
- AlicenseCqualityDmaintenanceEnables Claude Desktop to interact with the VeChain blockchain through natural language commands for token transfers, DEX trading, cross-chain bridges, NFT management, and VeBetter DAO operations.934MIT