You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Substrate MCP is a Rust-based Model Context Protocol server for the [Polkadot](https://polkadot.com/) ecosystem.
38
+
It lets AI agents explore chain metadata and state, decode extrinsics, submit dev extrinsics, scaffold pallets, and analyze [Polkadot SDK](https://polkadot.com/platform/sdk/) releases to understand their impact on your codebase.
The binary will be available at `./target/release/substrate-mcp`
37
83
38
-
## Prerequisites
39
-
40
-
For the `subxt_execute` tool, install the subxt CLI:
41
-
42
-
```bash
43
-
cargo install subxt-cli
44
-
```
45
-
46
-
## Usage with Claude Code
84
+
## 🤖 Usage with Claude Code
47
85
48
86
To use this MCP server with Claude Code, add it to your Claude Code configuration.
49
87
@@ -69,13 +107,13 @@ If you built the server locally instead of installing it, use the full path:
69
107
}
70
108
```
71
109
72
-
Alternatively, you can add using cli:
110
+
Alternatively, add via CLI:
73
111
74
-
```
112
+
```bash
75
113
claude mcp add substrate /path/to/substrate-mcp/target/release/substrate-mcp
76
114
```
77
115
78
-
## Configuration
116
+
## 🎛️ Configuration
79
117
80
118
### GitHub API Rate Limits
81
119
@@ -107,11 +145,12 @@ For Claude Code, you can set environment variables in your configuration:
107
145
}
108
146
```
109
147
110
-
## Available Tools
148
+
## ⚙️ Available Tools
111
149
112
150
### Release Analysis
113
151
114
152
-**`fetch_and_analyze_release`** - Fetches and analyzes a Polkadot SDK release - downloads PRDocs and generates summaries (manifest, crate changes, audience breakdown)
153
+
-**`find_runtime_pallets`** - Find and analyze runtime pallets configured in a given project directory. Scans for #[frame_support::runtime] attributes to discover all pallets used in your runtime(s)
115
154
-**`list_polkadot_releases`** - List all available Polkadot SDK releases from the polkadot-sdk repository. Helps discover valid release identifiers before using other tools. Supports filtering by release type (stable, legacy, or all)
116
155
117
156
### Chain Exploration
@@ -127,7 +166,7 @@ For Claude Code, you can set environment variables in your configuration:
127
166
128
167
-**`submit_dev_extrinsic`** - Submit a generic extrinsic to a Substrate chain using dev accounts. Supports any pallet call with arbitrary arguments. Use dev account names like 'alice', 'bob', 'charlie', etc. for signing
129
168
130
-
## Available Prompts
169
+
## 🚀 Available Prompts
131
170
132
171
The Substrate MCP server provides several specialized prompts for Substrate development and security analysis:
133
172
@@ -178,6 +217,6 @@ The Substrate MCP server provides several specialized prompts for Substrate deve
178
217
179
218
This prompt combines code security audit, economic security assessment, threat modeling, and weight analysis into a comprehensive security review. NOTE: This prompt is designed to be used during development as a tool to provide an extra layer of analysis. It is not meant to replace professional security audits.
180
219
181
-
## License
220
+
## 📜 License
182
221
183
-
[LICENSE](LICENSE)
222
+
This Project is licenced under the Apache License. See the [LICENSE](LICENSE) file for details
0 commit comments