A Model Context Protocol (MCP) server for Substrate blockchains, written in Rust and interfacing the subxt crate.
Overview
What is Substrate MCP Server?
Substrate MCP Server is a Model Context Protocol (MCP) server designed for Substrate blockchains, implemented in Rust. It facilitates dynamic operations on Substrate blockchains, such as querying balances, blocks, and events, through the MCP protocol.
How to use Substrate MCP Server?
To use the Substrate MCP Server, clone the repository, build it using Cargo, and configure the necessary environment variables in a .env file. Start the server with the command cargo run --release to listen for MCP requests.
Key features of Substrate MCP Server?
- Dynamic querying of account balances and storage
- Listing of pallets and their entries
- Fetching and filtering of events and extrinsics
- Submitting and monitoring dynamic signed transactions
- Custom RPC calls to Substrate nodes
Use cases of Substrate MCP Server?
- AI-Driven Blockchain Operations: Integrate with LLMs to allow natural language queries about blockchain activities.
- Custom Dashboards and Monitoring: Create dashboards for real-time data analytics and alerts on blockchain operations.
FAQ from Substrate MCP Server?
- What programming language is used?
The server is written in Rust.
- How do I configure the server?
Create a
.envfile with the required variables such as RPC_URL and SIGNING_KEYPAIR_HEX.
- Can I contribute to the project?
Yes! Contributions are welcome, and you can open issues or pull requests.