MCP.so
登录

Substrate MCP Server

@ThomasMarches

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

ThomasMarches

关于 Substrate MCP Server

A Model Context Protocol (MCP) server for Substrate blockchains, written in Rust and interfacing the subxt crate.

#rust#mcp#ia#substrate#polkadot#subxt

Substrate MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Substrate MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Substrate MCP Server?

An MCP server for Substrate blockchains, written in Rust. It exposes dynamic blockchain operations—querying balances, blocks, pallets, storage, events, and more—via the Model Context Protocol. Designed for developers integrating Substrate data into LLM‑driven tools, dashboards, or monitoring systems.

How to use Substrate MCP Server?

Clone the repository, place a runtime metadata file at artifacts/metadata.scale, create a .env file with RPC_URL and SIGNING_KEYPAIR_HEX variables, then build with cargo build --release and run with cargo run --release. The server communicates via stdio. Integrate with Cursor by adding the binary path to .cursor/mcp.json.

Key features of Substrate MCP Server

  • Query account balances and storage dynamically
  • List pallets and their storage entries
  • Fetch and filter events and extrinsics
  • Submit and watch dynamic signed transactions
  • Access system and block information
  • Make custom RPC calls to Substrate nodes

Use cases of Substrate MCP Server

  • AI‑driven blockchain operations via natural language queries (e.g., “What was the last transfer from Alice?”)
  • Real‑time on‑chain monitoring in development tools like VSCode, Cursor, or Claude Code
  • Custom dashboards and alerts for Substrate blockchains
  • AI‑agent detection of suspicious activity by analyzing events and extrinsics

常见问题

1

What are the requirements to run Substrate MCP Server?

Rust, access to a Substrate node WebSocket endpoint, a valid signing keypair as hex, and a runtime metadata file (`artifacts/metadata.scale`).

2

How do I generate a signing keypair?

Use `subkey generate --scheme Sr25519 --output-type Json`. Use the `secretSeed` field (strip the `0x` prefix if present) for the `SIGNING_KEYPAIR_HEX` environment variable.

3

How do I obtain and place the runtime metadata?

Run `subxt metadata -f bytes > artifacts/metadata.scale` from your project root. The file must be named `metadata.scale` and placed in the `artifacts/` directory before building.

4

How do I integrate this server with Cursor?

After building, add an entry to your project’s `.cursor/mcp.json` with the `command` set to the absolute path of the built binary (e.g., `target/release/substrate-mcp-rs`). Restart Cursor to detect the server.

5

What tools does the server expose?

It provides 14 tools including `query_balance`, `list_pallets`, `send_dynamic_signed_transaction`, `get_latest_events`, `find_extrinsics`, `custom_rpc`, and more.

评论

其他 分类下的更多 MCP 服务器