Zetrix MCP Server
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Zetrix MCP Server what's the balance of account ZETRIX1234567890abcdef?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Zetrix MCP Server
A comprehensive Model Context Protocol (MCP) server for interacting with the Zetrix blockchain. Provides 55 tools across 7 categories — HTTP RPC, WebSocket (protobuf), SDK transactions, cryptography, and smart contract development. Supports both stdio and HTTP transport modes.
Zetrix Currency Information
Native Coin: ZETRIX
Main Unit: ZETRIX
Base Unit: ZETA
Conversion: 1 ZETRIX = 1,000,000 ZETA
Gas Price: Evaluated dynamically via
testTransaction
Related MCP server: MCP Crypto Wallet EVM
Quick Start
npx zetrix-mcp-serverOr install globally:
npm install -g zetrix-mcp-serverGuides:
QUICKSTART.md — Get set up in 5 minutes
EXAMPLES.md — Learn through 20+ examples
TEST_REPORT.md — Comprehensive test results for all 55 tools
Features (56 Tools)
General (1 tool)
Tool | Description |
| Get MCP server version and network info |
HTTP RPC (16 tools)
Tool | Description |
| Check node health status |
| Get account info including balance and metadata |
| Get block by height |
| Get latest block |
| Get transaction by hash |
| Get balance in ZETA and ZETRIX |
| Generate new keypair (testing only) |
| Get basic account info |
| Get asset holdings |
| Get account metadata |
| Get completed transactions |
| Get pending transactions |
| Get ledger/block info |
| Execute multiple queries |
| Serialize transaction to hex |
| Submit signed transaction |
Contract Query (2 tools)
Tool | Description |
| Call contract in sandbox (read-only) |
| Evaluate fees without submitting |
WebSocket — Real-time (5 tools)
Uses protobuf binary encoding for communication with Zetrix nodes.
Tool | Description |
| Connect and register via protobuf CHAIN_HELLO |
| Submit transaction with real-time status |
| Subscribe to transaction notifications |
| Disconnect from WebSocket |
| Check connection status |
SDK Query (5 tools)
Tool | Description |
| Create new account |
| Get balance via SDK |
| Check if account is activated |
| Get account nonce |
| Call contract via SDK (read-only) |
SDK Transactions (11 tools)
All transaction tools use evaluateFee (testTransaction) for dynamic gas pricing. Optional gasPrice/feeLimit overrides supported on all operations.
Tool | Description |
| Send native ZETRIX to another address |
| Activate a new account with initial balance |
| Set key-value metadata on an account |
| Set account weights, thresholds, and signers |
| Issue a new custom token |
| Transfer a custom token |
| Deploy a smart contract (with optional owner) |
| Invoke contract with gas payment |
| Invoke contract with asset transfer |
| Upgrade contract code and/or transfer ownership |
| Create an on-chain event log |
Cryptography (8 tools)
Tool | Description |
| Generate new keypair (address, private key, public key) |
| Derive public key from private key |
| Get address from public key |
| Validate private key, public key, or address format |
| Sign a message (hex) with a private key |
| Verify a signature |
| Encrypt private key with password |
| Decrypt encrypted private key |
Smart Contract Development (7 tools)
Tool | Description |
| Chain object function documentation |
| Utils object function documentation |
| Contract structure and ES5 patterns guide |
| Token standard specs (ZTP20, ZTP721, ZTP1155) |
| Initialize dev project via |
| Generate multi-class contract architecture |
| Testing guide (TEST_INVOKE, TEST_QUERY) |
Supported Networks
Network | HTTP RPC | WebSocket |
Mainnet |
|
|
Testnet |
|
|
Configuration
Environment Variables
Variable | Description | Default |
| Network selection ( |
|
| Custom HTTP RPC endpoint (overrides network default) | — |
| Custom WebSocket endpoint (overrides network default) | — |
| Transport mode ( |
|
| HTTP server port (only used when |
|
| Default private key for signing transactions (optional, keeps key out of conversation) | — |
| Default source address for transactions (optional) | — |
Secure Transactions (Recommended)
By setting ZETRIX_PRIVATE_KEY and ZETRIX_SOURCE_ADDRESS as environment variables, your private key is never exposed in the conversation. The LLM can execute transactions like "send 0.01 ZETRIX to ZTX3..." without ever seeing your key.
{
"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"
}
}
}
}Note: These are optional. If not set, the LLM will need to ask for or be given the private key and source address in the conversation. If set, they are used as defaults — you can still override them per-tool call if needed.
Claude Code (CLI)
Add the MCP server directly from the command line:
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=testnetWith custom RPC and WebSocket URLs:
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
Edit your Claude Desktop configuration file:
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"
}
}
}
}Both networks (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"
}
}
}
}With custom RPC and WebSocket URLs:
{
"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"
}
}
}
}After saving the config file, restart Claude Desktop for changes to take effect.
Note:
ZETRIX_RPC_URLandZETRIX_WS_URLoverride the default endpoints for the selected network. You can override just one or both. If not set, the defaults from the table above are used.
HTTP Transport (API Server)
Run the MCP server as an HTTP API server using the Streamable HTTP transport. This allows remote MCP clients to connect over the network.
Start the server (defaults to mainnet):
ZETRIX_TRANSPORT=http ZETRIX_PORT=3000 npx zetrix-mcp-serverWith testnet:
ZETRIX_TRANSPORT=http ZETRIX_PORT=3000 ZETRIX_NETWORK=testnet npx zetrix-mcp-serverEndpoints:
Endpoint | Method | Description |
| POST | MCP protocol endpoint (Streamable HTTP) |
| GET | Health check — returns |
Connect from an MCP client:
{
"mcpServers": {
"zetrix": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}Both networks (mainnet + testnet):
Run two servers on different ports:
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 &Then configure your MCP client:
{
"mcpServers": {
"zetrix-mainnet": {
"type": "http",
"url": "http://localhost:3000/mcp"
},
"zetrix-testnet": {
"type": "http",
"url": "http://localhost:3001/mcp"
}
}
}Note: The HTTP transport uses the MCP Streamable HTTP specification. Any MCP client that supports
StreamableHTTPtransport can connect to it.
Server logs:
The server logs to stderr. To view logs, run in the foreground or redirect to a file:
# 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.logDevelopment
Project Structure
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 outputBuild
npm install
npm run buildTest
npm test # HTTP RPC tests
ZETRIX_NETWORK=testnet npm test # Run on testnet
npm run test:sdk # SDK tests
npm run test:encryption # Crypto testsLicense
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
Read-only access to your own crypto portfolio across 11+ exchanges and 20+ chains: holdings, full history, FIFO cost basis and P&L, fees and income. Ask Claude or ChatGPT about your portfolio; the connector can never trade, move funds or act as a login.
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.
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.3554 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