How to Connect Craft to Windsurf with MCP
You can enable an MCP server for your documents, allowing Windsurf to interact directly with your content. This guide walks you through setting up the connection between Craft and Windsurf using MCP.
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 Windsurf.

Step 1

Step 2

Step 3

Step 4

Step 5
Adding an MCP Connector in Windsurf
Create a new connector in Windsurf and use the MCP URL from Craft to connect the two services.

Step 1
Step 2

Step 3
craft with a descriptive name for your MCP server.Replace <MCP_URL> with the MCP URL from Craft.Save the file.
Step 4
You can now ask Windsurf 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





