Black Friday: Lấy ngay deal hời giảm 40% trọn đời!

Imagine With Craft

How to Connect Craft to Claude Code with MCP

You can enable an MCP server for your documents, allowing Claude Code to interact directly with your content. This guide walks you through setting up the connection between Craft and Claude Code using MCP.

Craft
Claude Code

Enabling MCP for Documents

First, you have to enable MCP in order for Craft to setup an MCP server for your documents. Then, you use the MCP URL to connect to the server from Claude Code.

Click the “Imagine” tab in the sidebar

Step 1

Open the “Imagine” tab
Click “Create Your First MCP Connection” button

Step 2

Click “Create Your First MCP Connection”
Configure MCP connection settings

Step 3

Configure your MCP connection with a name.
Click “Add Document” button

Step 4

Click “Add Document” to select which documents this MCP connection has access to.
MCP URL displayed at the top

Step 5

The MCP URL that will be used to interact with your document is now displayed at the top.

Adding an MCP Connector in Claude Code

Create a new connector in Claude Code and use the MCP URL from Craft to connect the two services.

Step 1

First, decide which scope you want for your MCP server in Claude Code:
  • Local scope (default): Project-specific, private to you
  • Project scope: Team-shared via .mcp.json file
  • User scope: Cross-project, personal utility
Add the scope to the end of the command in the next step if you want a different scope.
--scope project | --scope user

Step 2

Run this command in your terminal to add the Craft MCP server. Replace craft with a short name you can identify the MCP server by. This uses the local scope by default, which keeps the connection private to your current project.
Use the /mcp command in Claude Code

Step 3

If you've configured a password, use the /mcp command in Claude Code, pick the MCP server you just created, and follow the browser steps to log in.
Using the MCP server in Claude Code

Step 4

Your Craft MCP server is now configured! You can start using it in Claude Code to interact with your Craft doc content.

You can now ask Claude Code 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 Examples