How to Connect Craft to OpenCode with MCP
Step-by-step guide to connect Craft documents to OpenCode via MCP. Read, search, and update your notes directly from OpenCode.
Adding an MCP Connector in OpenCode
Create a new connector in OpenCode and use the MCP URL to connect the two services.
Step 1
- Project config:
opencode.jsonin your project root (recommended) - Global config:
~/.config/opencode/opencode.jsonfor all projects
opencode.jsonStep 2
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"craft": {
"type": "remote",
"url": "https://mcp.craft.do/my/mcp"
}
}
}Step 3
opencode mcp auth craft in your terminal to authenticate. A browser window will open for you to sign in with your Craft account.opencode mcp auth craftStep 4
You can now ask OpenCode about your documents, and even have them updated. Try something like this to get started:
Click an example to copy the prompt to your clipboard
Some Ideas to Get You Started
Browse App Templates

Build a personal blog powered by Craft docs. Auto-syncs content via API — publish from your notes app.
Learn more

Track books and capture quotes with Claude or ChatGPT via MCP.
Learn more

A live plant care dashboard built with Lovable. Pulls watering schedules and care tips from your Craft doc.
Learn more