RustChain区块链查询与转账MCP服务

RustChain MCP Server 是一种用于 RustChain 区块链集成的 MCP 服务,支持查询节点余额、矿工、纪元与健康状态,并可配置钱包执行 wRTC 转账,同时具备备用节点容错能力,可接入 Claude Code 等 MCP 客户端。

  • by Gitthack
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 Gitthack/rustchain-mcp-server

使用说明

RustChain MCP Server

MCP (Model Context Protocol) server for RustChain blockchain integration.

Features

  • Query RustChain node for balance, miners, epoch, health status
  • Perform transfers (with wallet configuration)
  • Fallback node support for high availability
  • Compatible with Claude Code and other MCP clients

Installation

git clone <repo-url>
cd rustchain-mcp-server
pip install -r requirements.txt

Configuration

Set environment variables:

export RUSTCHAIN_PRIMARY_NODE="https://50.28.86.131"
export RUSTCHAIN_FALLBACK_NODES="https://node2.example.com,https://node3.example.com"

Usage with Claude Code

claude mcp add rustchain python server.py

Or with the MCP config file (~/.config/claude/mcp_config.json):

{
  "mcpServers": {
    "rustchain": {
      "command": "python",
      "args": ["/path/to/server.py"]
    }
  }
}

Available Tools

Required Tools

  • rustchain_balance - Query account balance
  • rustchain_miners - List active miners
  • rustchain_epoch - Get current epoch information
  • rustchain_health - Check node health status
  • rustchain_transfer - Transfer wRTC (requires wallet)

Bonus Tools

  • rustchain_ledger - Query ledger entries
  • rustchain_register_wallet - Register new wallet
  • rustchain_bounties - List active bounties

API Reference

Primary Node: https://50.28.86.131

License

MIT