Skip to main content
Glama
SETUP_COMPLETE.mdβ€’10 kB
# πŸŽ‰ Zetrix MCP Server - Setup Complete! ## What You Just Built Congratulations! You now have a **complete Zetrix blockchain MCP server** integrated with Claude Desktop. ### πŸ“Š Statistics - **Total MCP Tools:** 24 - **HTTP APIs:** 19 - **WebSocket APIs:** 5 - **Supported Networks:** Mainnet + Testnet - **Languages:** TypeScript - **Lines of Code:** ~2000+ --- ## πŸš€ Quick Start (Next 5 Minutes) ### 1. Run the Setup Wizard ```bash npm run setup ``` This interactive wizard will: - βœ… Verify your installation - βœ… Locate Claude Desktop config - βœ… Ask which network (Mainnet/Testnet/Both) - βœ… Update configuration automatically - βœ… Optionally run tests ### 2. Restart Claude Desktop Completely quit and restart the application. ### 3. Test It! Open Claude Desktop and ask: > "What MCP tools do you have available?" You should see all 24 Zetrix tools listed! ### 4. Try Your First Query > "Check if the Zetrix mainnet node is healthy" Claude will use the `zetrix_check_health` tool and report back! --- ## πŸ“ What's Included ### Core Files ``` zetrix-mcp-server/ β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ index.ts # Main MCP server (24 tools) β”‚ β”œβ”€β”€ zetrix-client.ts # HTTP client (13 APIs) β”‚ └── zetrix-websocket.ts # WebSocket client (5 APIs) β”œβ”€β”€ dist/ # Compiled JavaScript β”œβ”€β”€ configs/ # Pre-made configurations (Windows/macOS/Linux) β”‚ β”œβ”€β”€ mcp-config-windows-mainnet.json β”‚ β”œβ”€β”€ mcp-config-windows-testnet.json β”‚ β”œβ”€β”€ mcp-config-windows-both.json β”‚ β”œβ”€β”€ mcp-config-macos-mainnet.json β”‚ β”œβ”€β”€ mcp-config-macos-testnet.json β”‚ β”œβ”€β”€ mcp-config-macos-both.json β”‚ β”œβ”€β”€ mcp-config-linux-mainnet.json β”‚ β”œβ”€β”€ mcp-config-linux-testnet.json β”‚ β”œβ”€β”€ mcp-config-linux-both.json β”‚ └── README.md β”œβ”€β”€ test-server.js # Comprehensive test suite β”œβ”€β”€ setup-claude.js # Interactive setup wizard β”œβ”€β”€ QUICKSTART.md # 5-minute setup guide β”œβ”€β”€ EXAMPLES.md # Usage examples β”œβ”€β”€ README.md # Full documentation └── package.json ``` ### Configuration Files **Pre-made configs** in `configs/` folder for Windows, macOS, and Linux: - `mcp-config-{os}-mainnet.json` - Mainnet only - `mcp-config-{os}-testnet.json` - Testnet only - `mcp-config-{os}-both.json` - Both networks Where `{os}` is `windows`, `macos`, or `linux`. Just choose your OS config, update the path, and use! ### Documentation - **QUICKSTART.md** - Get started in 5 minutes - **EXAMPLES.md** - 20+ usage examples with natural language - **README.md** - Complete API documentation - **configs/README.md** - Configuration guide ### Scripts ```bash npm run build # Build TypeScript to JavaScript npm run dev # Run in development mode npm run test # Run comprehensive tests npm run setup # Interactive setup wizard npm test:mainnet # Test mainnet only npm test:testnet # Test testnet only ``` --- ## πŸ› οΈ All 24 MCP Tools ### Account Operations (6 tools) 1. βœ… `zetrix_get_account` - Complete account info 2. βœ… `zetrix_get_account_base` - Basic account info 3. βœ… `zetrix_get_account_assets` - Asset holdings 4. βœ… `zetrix_get_account_metadata` - Account metadata 5. βœ… `zetrix_get_balance` - ZTX balance 6. βœ… `zetrix_create_keypair` - Generate test keys ### Block & Ledger Operations (3 tools) 7. βœ… `zetrix_get_block` - Block by number 8. βœ… `zetrix_get_latest_block` - Latest block 9. βœ… `zetrix_get_ledger` - Ledger details ### Transaction Operations (6 tools) 10. βœ… `zetrix_get_transaction` - Transaction details 11. βœ… `zetrix_get_transaction_history` - Transaction history 12. βœ… `zetrix_get_transaction_cache` - Pending transactions 13. βœ… `zetrix_get_transaction_blob` - Serialize transaction 14. βœ… `zetrix_submit_transaction` - Submit to blockchain 15. βœ… `zetrix_test_transaction` - Estimate fees ### Smart Contract (1 tool) 16. βœ… `zetrix_call_contract` - Call contract (sandbox) ### Utility (3 tools) 17. βœ… `zetrix_check_health` - Node health check 18. βœ… `zetrix_multi_query` - Batch queries ### WebSocket Real-time (5 tools) 19. βœ… `zetrix_ws_connect` - Connect to WebSocket 20. βœ… `zetrix_ws_submit_transaction` - Submit with real-time status 21. βœ… `zetrix_ws_subscribe_tx` - Monitor addresses 22. βœ… `zetrix_ws_disconnect` - Disconnect WebSocket 23. βœ… `zetrix_ws_status` - Connection status --- ## 🌐 Network Information ### Mainnet - **HTTP RPC:** https://node.zetrix.com - **WebSocket:** ws://node-ws.zetrix.com - **Use for:** Production queries, real data ### Testnet - **HTTP RPC:** https://test-node.zetrix.com - **WebSocket:** ws://test-node-ws.zetrix.com - **Use for:** Testing, development, experiments --- ## πŸ’‘ Usage Examples ### Basic Query **You:** "What's the latest block on Zetrix?" **Claude:** Uses `zetrix_get_latest_block` β†’ Returns block info ### Account Balance **You:** "Check balance for ZTX3Ta7d4GyAXD41H2kFCTd2eXhDesM83rvC3" **Claude:** Uses `zetrix_get_balance` β†’ Returns ZTX balance ### Real-time Monitoring **You:** "Connect to WebSocket and monitor address ZTX3Ta... for transactions" **Claude:** Uses `zetrix_ws_connect` + `zetrix_ws_subscribe_tx` β†’ Monitors in real-time ### Multi-Query **You:** "Get balances for these 3 addresses at once: ZTX3Ta..., ZTX4Ub..., ZTX5Vc..." **Claude:** Uses `zetrix_multi_query` β†’ Parallel execution **See EXAMPLES.md for 20+ more examples!** --- ## πŸ§ͺ Testing ### Run All Tests ```bash npm test ``` Expected output: ``` ╔═══════════════════════════════════════════════════════════╗ β•‘ Zetrix MCP Server - Test Suite β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• Testing HTTP Client βœ“ Node is healthy βœ“ Latest block: 12345 βœ“ Block 100 retrieved ... Testing WebSocket Client βœ“ Connected! Blockchain version: 3.0.0.0 βœ“ WebSocket is connected ... Overall: 12/12 passed (100%) βœ“ All tests passed! ``` ### Test Specific Networks ```bash npm run test:mainnet # Test mainnet npm run test:testnet # Test testnet ``` --- ## πŸ“š Learning Path ### Day 1: Basics 1. Read **QUICKSTART.md** 2. Run `npm run setup` 3. Test basic queries (health, latest block, balance) ### Day 2: Explore 1. Read **EXAMPLES.md** 2. Try account operations 3. Explore block/transaction queries ### Day 3: Advanced 1. Test WebSocket connections 2. Try multi-query 3. Experiment with smart contracts ### Week 2: Master 1. Build custom workflows 2. Combine multiple tools 3. Monitor real-time events --- ## πŸ”§ Troubleshooting ### Tools Don't Appear **Check:** 1. Did you restart Claude Desktop completely? 2. Is the path in config correct? (Use absolute paths) 3. Did you run `npm run build`? 4. Check logs: Help β†’ Debug β†’ View Logs **Fix:** ```bash # Rebuild npm run build # Re-run setup npm run setup # Test manually npm run dev # Should show "Zetrix MCP Server running on stdio" ``` ### Tests Fail **Common causes:** - Network connectivity issues - Firewall blocking ports - Node running but offline **Fix:** ```bash # Test connection curl https://node.zetrix.com/getLedger # Test specific network npm run test:mainnet ``` ### WebSocket Issues **Fix:** - Check firewall (port 7053) - Try HTTP-only operations first - Verify network in config matches your intent --- ## 🎯 Best Practices ### 1. Start Simple Begin with HTTP queries before WebSocket. ### 2. Use Multi-Query For bulk operations, use `zetrix_multi_query` instead of individual calls. ### 3. Monitor with WebSocket For real-time needs, use WebSocket subscriptions instead of polling. ### 4. Test on Testnet First Always test transactions on testnet before mainnet. ### 5. Natural Language Use conversational language with Claude - it understands context! --- ## πŸ“– Documentation Reference | Document | Purpose | |----------|---------| | **QUICKSTART.md** | Get started in 5 minutes | | **EXAMPLES.md** | 20+ usage examples | | **README.md** | Complete API reference | | **configs/README.md** | Configuration guide | | **SETUP_COMPLETE.md** | This file - overview | --- ## πŸš€ What's Next? ### Immediate (Next 10 minutes) 1. βœ… Run `npm run setup` 2. βœ… Restart Claude Desktop 3. βœ… Test: "What MCP tools do you have?" 4. βœ… Try: "Check Zetrix node health" ### Short-term (This week) 1. πŸ“– Read EXAMPLES.md 2. πŸ§ͺ Test different APIs 3. πŸ” Explore accounts and blocks 4. πŸ’¬ Have conversations with Claude about Zetrix ### Long-term (This month) 1. 🎯 Build custom workflows 2. πŸ“Š Monitor specific addresses 3. πŸ”— Integrate with your applications 4. 🀝 Share examples with community --- ## πŸ’ͺ You Now Have - βœ… **24 Blockchain Tools** at your fingertips - βœ… **Natural Language Interface** via Claude - βœ… **Real-time Monitoring** via WebSocket - βœ… **Complete Documentation** and examples - βœ… **Interactive Setup** wizard - βœ… **Comprehensive Tests** for reliability - βœ… **Both Networks** (Mainnet + Testnet) --- ## πŸŽ‰ Congratulations! You've successfully set up the most comprehensive Zetrix blockchain integration for Claude Desktop! **Start exploring:** ``` npm run setup # Run the setup wizard npm test # Verify everything works ``` Then open Claude Desktop and start asking questions about the Zetrix blockchain! --- ## πŸ“ž Support & Resources - **Setup Issues:** Run `npm run setup` again - **Test Failures:** Check network connectivity - **Usage Questions:** Read EXAMPLES.md - **API Reference:** See README.md - **Config Help:** Check configs/README.md --- **Happy exploring! πŸš€** Built with ❀️ for the Zetrix community

Latest Blog Posts

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/Zetrix-Chain/zetrix-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server