substrate mcp as a child process — there is no port to open, no daemon to manage, and no network connection involved. The server reads the .substrate/ directory in whatever working directory the runtime uses when it spawns the process, so getting that path right is the single most important configuration step.
Configuration
Choose the tab that matches your setup:- Claude Code
- Any MCP Runtime
Place the following block in an npm release (once Substrate is published):After saving
.mcp.json file at your project root. Claude Code will ask you to approve the project-scoped MCP server the first time you open the project.v0.7.0 pre-release (installed via global link — use this now):.mcp.json
.mcp.json
.mcp.json, install the agent skill so Claude carries workflow conventions across sessions without re-prompting:Verify the connection
Ask your agent to call thewhoami tool. A healthy response looks like this:
not_found error, check two things:
- Working directory — confirm the runtime is spawning
substrate mcpfrom the directory that contains.substrate/. - Initialization — run
substrate initin that directory if.substrate/does not exist yet.
The agent skill
Runningsubstrate install-skill writes a skill file to ~/.claude/skills/substrate, stamped with the current binary version. The skill encodes conventions your agent needs to work effectively with Substrate:
- Call
whoamiat the start of every session - Use optimistic concurrency when updating tasks
- Read and respect the policy envelope returned by write operations
The skill is version-stamped against the binary. After upgrading Substrate, re-run
substrate install-skill to keep the skill in sync.Next steps
The Agent Loop
Follow the recommended whoami → get_board → list_tasks → write loop and understand how the policy envelope guides agent behavior.
Quickstart
Initialize a board and start the local inspector if you haven’t already.