substrate-mcp-rs
Substrate MCP Server is a Rust-based Model Context Protocol server designed for dynamic interaction with Substrate blockchains. It facilitates blockchain operations via MCP protocol and integrates with tools like Cursor for AI-driven blockchain operations.
Substrate MCP Server
A Model Context Protocol server for Substrate blockchains, written in Rust. It enables dynamic operations such as querying balances, blocks, pallets, storage, and events over the MCP protocol. The server interfaces with Substrate nodes using the subxt crate.
Features
- Query balances and storage dynamically
- List pallets and entries
- Fetch and filter events and extrinsics
- Submit and watch transactions
- Access system and block information
- Custom RPC calls
Potential Use Cases
- AI-driven blockchain operations with LLM integration
- Custom dashboards and monitoring systems
Requirements
- Rust
- Substrate node endpoint
- Signing keypair
Installation
Clone the repository and build.
Configuration
Configure via a .env
file with WebSocket endpoint and signing keypair.
Usage
Start the server using cargo run --release
and listen for MCP requests via stdio.
Integrating with Cursor
Add the server to Cursor MCP configuration to enable interaction.
Available Tools
Tools for blockchain interaction, including balance query, transaction handling, and event fetching.