Skip to main content
Glama

RustChain MCP Server

An MCP (Model Context Protocol) server for RustChain that allows Claude Code and other MCP-capable clients to query the blockchain and perform core actions directly from the terminal.

Features

Required Tools (Implemented)

  • ✅ rustchain_balance - Get RTC balance of any address

  • ✅ rustchain_miners - List active miners on the network

  • ✅ rustchain_epoch - Get current epoch information

  • ✅ rustchain_health - Check health status of all nodes

  • ✅ rustchain_transfer - Transfer RTC (requires private key)

Bonus Tools (Implemented)

  • ✅ rustchain_ledger - View recent transactions

  • ✅ rustchain_bounties - Get open bounty information

Related MCP server: rustchain-mcp-server

Installation

Prerequisites

  • Node.js 18+

  • npm or yarn

Install from Source

# Clone the repository
git clone https://github.com/Async777/rustchain-mcp-server.git
cd rustchain-mcp-server

# Install dependencies
npm install

# Build the project
npm run build

Configuration

Add to Claude Code

# Add the MCP server to Claude Code
claude mcp add rustchain node /path/to/rustchain-mcp-server/dist/index.js

Or manually edit your Claude Code configuration:

{
  "mcpServers": {
    "rustchain": {
      "command": "node",
      "args": ["/path/to/rustchain-mcp-server/dist/index.js"]
    }
  }
}

Usage Examples

Once configured, you can use these tools in Claude Code:

# Check your balance
What is my RTC balance for address RTCc29259460d01e6aca70b16f044852dddd0369c0d?

# List miners
Show me the top 5 miners on RustChain

# Check network health
Is the RustChain network healthy?

# Get epoch info
What is the current epoch?

# View recent transactions
Show me the last 10 ledger entries

Node Configuration

The server uses the following node priority:

  1. Primary: https://50.28.86.131

  2. Fallback 1: https://rustchain.org

  3. Fallback 2: https://node2.rustchain.org

If the primary node is unavailable, the server automatically tries fallback nodes.

API Endpoints Used

Tool

Endpoint

rustchain_balance

GET /wallet/balance?miner_id={address}

rustchain_miners

GET /miners?limit={n}

rustchain_epoch

GET /epoch/current

rustchain_health

GET /health

rustchain_transfer

POST /wallet/transfer

rustchain_ledger

GET /ledger?limit={n}

Security Notes

  • Private Keys: The rustchain_transfer tool requires your private key. Only use this in secure environments.

  • Node Verification: The server validates node health before performing sensitive operations.

  • Fallback Protection: If all nodes are unreachable, operations fail gracefully with clear error messages.

Development

# Run in development mode (auto-rebuild)
npm run dev

# Build for production
npm run build

# Start the server
npm start

Bounty Information

This project was built for RustChain Bounty #1152:

License

MIT

Author

Async777

  • Wallet: RTCc29259460d01e6aca70b16f044852dddd0369c0d

Available Tools

7 tools
rustchain_balanceB

Get the RTC balance of a wallet address or miner_id

Inputs: address (required).

rustchain_bountiesC

Get open bounty information from RustChain

Inputs: status.

rustchain_epochB

Get current epoch information

Inputs: no named parameters.

rustchain_healthB

Check the health status of RustChain nodes

Inputs: no named parameters.

rustchain_ledgerC

Get recent ledger transactions

Inputs: limit.

rustchain_minersC

Get list of active miners on the network

Inputs: limit.

rustchain_transferC

Transfer RTC to another address (requires private key)

Inputs: amount (required), to_address (required), from_private_key (required), memo.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool targets a distinct resource or action: balance, miners, epoch, health, transfer, ledger, bounties. Boundaries are clear, with no overlapping purposes that would cause misselection.

    Naming Consistency5/5

    All tools use the same rustchain_ prefix and snake_case naming, mostly noun-based resources with one action verb. The pattern is predictable and consistent.

    Tool Count5/5

    Seven tools are well-scoped for a blockchain network server, covering core queries plus transfer without obvious redundancy. Each tool earns its place.

    Completeness4/5

    Core read operations (balance, miners, epoch, health, ledger, bounties) and transfer are covered, but transaction detail and bounty lifecycle actions (claim/create) are missing. These are minor gaps an agent can work around.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to interact with the RustChain blockchain, including checking node health, querying wallet balances, listing miners, retrieving epoch information, and browsing open bounties.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables querying and interacting with the RustChain blockchain from Claude Code or any MCP-compatible client, including balance checks, miners, epoch info, health, and transfers.
      MIT