CMS for Windsurf
Decoupled.io is a headless CMS that Windsurf's agent can manage through MCP. Add the MCP server to Windsurf and the agent can create a Drupal space, define content types, import content and help you generate a typed client, while your team edits pages visually.
- Open source CMS: built on Drupal, which is GPL-licensed.
- Documented tools: 25+ MCP tools in the MCP reference.
- Standard MCP server: HTTP endpoint
https://mcp.decoupled.iowith a bearer token. - Free plan, then $20/month (Starter) or $60/month (Pro).
Create a free space | MCP reference
Why a Windsurf app needs a CMS
Windsurf can write an entire front end quickly, but anything an editor would change is still in source files.
- Content is scattered across components, so a copy edit needs a developer.
- No editing interface for non-technical teammates.
- No content model. Relationships and taxonomies need custom database work.
- No publishing workflow, such as drafts, revisions or approvals.
Connect Windsurf to Decoupled.io
- Create a token in dashboard.decoupled.io under Settings, then API Tokens.
- Add the server to Windsurf's MCP configuration. Use the same values the docs list for any MCP client:
{
"mcpServers": {
"decoupled-io": {
"url": "https://mcp.decoupled.io",
"headers": { "Authorization": "Bearer dc_tok_YOUR_TOKEN" }
}
}
}
The exact file and field names depend on your Windsurf version, so check Windsurf's MCP documentation if the server does not appear. The Decoupled.io CLI documents --ide setup for Claude Code and Cursor only.
- Ask the agent:
"Set up a blog with title, body, author, category and featured image. Import 5 sample posts, then tell me how to fetch them."
The agent uses create_space and import_content, as described in the MCP reference.
Generate a typed client
npm install decoupled-client
npx decoupled-cli schema sync
import { createClient } from 'decoupled-client'
import { createTypedClient } from './schema/client'
const base = createClient({
baseUrl: process.env.NEXT_PUBLIC_DRUPAL_BASE_URL!,
clientId: process.env.DRUPAL_CLIENT_ID!,
clientSecret: process.env.DRUPAL_CLIENT_SECRET!,
})
const client = createTypedClient(base)
const posts = await client.getEntries('NodeBlogPost', { first: 10 })
const page = await client.getEntryByPath('/about')
schema sync writes TypeScript types, queries and a createTypedClient() factory from your Drupal content model. Re-run it after content model changes. See the typed client docs.
A visual editor for everyone else
Your team builds and updates pages in Drupal Canvas: they arrange your components, see a live preview from your real frontend, then publish. The Next.js and Astro starters include 17 components and the editor already connected. See the Canvas editor.
What Decoupled.io provides for Windsurf apps
| Need | What Decoupled.io provides |
|---|---|
| Agent access | 25+ MCP tools for spaces, content import and discovery |
| Types | Generated from your Drupal schema |
| APIs | GraphQL and JSON:API on every plan |
| Editing | Canvas visual editor and Drupal admin |
| Hosting | Managed Drupal on Fly.io, one isolated app per space |
| Frameworks | Next.js and Astro starters; any frontend can call the APIs |
Questions
Is there a Windsurf-specific integration? No. It works as a generic MCP server. The CLI's documented mcp configure targets are Claude Code and Cursor, so use the manual entry above.
What does it cost? Free plan (one space, 24-hour auto-archive), Starter $20/month, Pro $60/month. See pricing.
Can I leave? Yes. Drupal is open source and your content exports as JSON.
What are the limits? A curated module set, and 5 to 8 second cold starts after idle on Free and Starter.
Try it in Windsurf
Create a free space, add the MCP server, and ask the agent to build your content model.