Zetrix MCP Server
OfficialZetrix MCP 서버
Zetrix 블록체인과 상호작용하기 위한 포괄적인 MCP(Model Context Protocol) 서버입니다. 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를 통해 잔액 가져오기 |
| 계정 활성화 여부 확인 |
| 계정 논스(nonce) 가져오기 |
| SDK를 통해 컨트랙트 호출 (읽기 전용) |
SDK 트랜잭션 (11개 도구)
모든 트랜잭션 도구는 동적 가스 가격 책정을 위해 evaluateFee (testTransaction)를 사용합니다. 모든 작업에서 선택적으로 gasPrice/feeLimit 재정의를 지원합니다.
도구 | 설명 |
| 다른 주소로 네이티브 ZETRIX 전송 |
| 초기 잔액으로 새 계정 활성화 |
| 계정에 키-값 메타데이터 설정 |
| 계정 가중치, 임계값 및 서명자 설정 |
| 새 커스텀 토큰 발행 |
| 커스텀 토큰 전송 |
| 스마트 컨트랙트 배포 (선택적 소유자 포함) |
| 가스 지불과 함께 컨트랙트 호출 |
| 자산 전송과 함께 컨트랙트 호출 |
| 컨트랙트 코드 업그레이드 및/또는 소유권 이전 |
| 온체인 이벤트 로그 생성 |
암호화 (8개 도구)
도구 | 설명 |
| 새 키 쌍 생성 (주소, 개인 키, 공개 키) |
| 개인 키에서 공개 키 도출 |
| 공개 키에서 주소 가져오기 |
| 개인 키, 공개 키 또는 주소 형식 검증 |
| 개인 키로 메시지 서명 (16진수) |
| 서명 검증 |
| 비밀번호로 개인 키 암호화 |
| 암호화된 개인 키 복호화 |
스마트 컨트랙트 개발 (7개 도구)
도구 | 설명 |
| Chain 객체 함수 문서 |
| Utils 객체 함수 문서 |
| 컨트랙트 구조 및 ES5 패턴 가이드 |
| 토큰 표준 사양 (ZTP20, ZTP721, ZTP1155) |
|
|
| 다중 클래스 컨트랙트 아키텍처 생성 |
| 테스트 가이드 (TEST_INVOKE, TEST_QUERY) |
지원되는 네트워크
네트워크 | HTTP RPC | WebSocket |
메인넷 |
|
|
테스트넷 |
|
|
구성
환경 변수
변수 | 설명 | 기본값 |
| 네트워크 선택 ( |
|
| 커스텀 HTTP RPC 엔드포인트 (네트워크 기본값 재정의) | — |
| 커스텀 WebSocket 엔드포인트 (네트워크 기본값 재정의) | — |
| 전송 모드 ( |
|
| HTTP 서버 포트 ( |
|
| 트랜잭션 서명을 위한 기본 개인 키 (선택 사항, 대화에서 키 제외) | — |
| 트랜잭션을 위한 기본 소스 주소 (선택 사항) | — |
보안 트랜잭션 (권장)
ZETRIX_PRIVATE_KEY 및 ZETRIX_SOURCE_ADDRESS를 환경 변수로 설정하면 개인 키가 대화 중에 노출되지 않습니다. LLM은 키를 보지 않고도 "ZTX3...로 0.01 ZETRIX 전송"과 같은 트랜잭션을 실행할 수 있습니다.
{
"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 서버를 추가하세요:
메인넷:
claude mcp add zetrix-mainnet -s user -- npx -y zetrix-mcp-server -e ZETRIX_NETWORK=mainnet테스트넷:
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
테스트넷:
{
"mcpServers": {
"zetrix": {
"command": "npx",
"args": ["-y", "zetrix-mcp-server"],
"env": {
"ZETRIX_NETWORK": "testnet"
}
}
}
}메인넷:
{
"mcpServers": {
"zetrix": {
"command": "npx",
"args": ["-y", "zetrix-mcp-server"],
"env": {
"ZETRIX_NETWORK": "mainnet"
}
}
}
}두 네트워크 모두 (메인넷 + 테스트넷):
{
"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 클라이언트가 네트워크를 통해 연결할 수 있습니다.
서버 시작 (기본값은 메인넷):
ZETRIX_TRANSPORT=http ZETRIX_PORT=3000 npx zetrix-mcp-server테스트넷 사용 시:
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"
}
}
}두 네트워크 모두 (메인넷 + 테스트넷):
서로 다른 포트에서 두 개의 서버를 실행하세요:
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