ML

moonsong-labs/substrate-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

5 stars 4 forks 质量 60 趋势 13Apache-2.0

An MCP (Model Context Protocol) server that provides tools for working with Substrate-based blockchains.

概览

An MCP (Model Context Protocol) server that provides tools for working with Substrate-based blockchains. Substrate MCP is a Rust-based Model Context Protocol server for the Polkadot ecosystem. It lets AI agents explore chain metadata and state, decode extrinsics, submit dev extrinsics, scaffold pallets, and analyze Polkadot SDK releases to understand their impact on your codebase. - For the subxt_execute tool, install the subxt CLI: Choose one of the following installation methods: This will: - Download the appropriate binary for your platform - Install it to ~/.substrate-mcp/bin/substrate-mcp - Add the binary to your PATH Download the binary for your platform from the latest release. The binary will be available at ./target/release/substrate-mcp To use this MCP server with Claude Code, add it to your Claude Code configuration.

README

以下为原文 README 节选,完整内容请查看原文。

Table of Contents

📖 About

Substrate MCP is a Rust-based Model Context Protocol server for the Polkadot ecosystem. It lets AI agents explore chain metadata and state, decode extrinsics, submit dev extrinsics, scaffold pallets, and analyze Polkadot SDK releases to understand their impact on your codebase.

🛠 Prerequisites

cargo install subxt-cli

⬇ Installation

Choose one of the following installation methods:

Quick Install

curl -sSfL https://raw.githubusercontent.com/Moonsong-Labs/substrate-mcp/main/install.sh | bash

This will:

  • Download the appropriate binary for your platform
  • Install it to ~/.substrate-mcp/bin/substrate-mcp
  • Add the binary to your PATH

Download from Releases

Download the binary for your platform from the latest release.

Install from Source

cargo install --locked --git https://github.com/Moonsong-Labs/substrate-mcp

Build Locally

git clone https://github.com/Moonsong-Labs/substrate-mcp.git
cd substrate-mcp
cargo build --release

The binary will be available at ./target/release/substrate-mcp

🤖 Usage with Claude Code

To use this MCP server with Claude Code, add it to your Claude Code configuration.

{
  "mcpServers": {
    "substrate-mcp": {
      "command": "substrate-mcp"
    }
  }
}
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "substrate-mcp": { "command": "substrate-mcp" } } }