---
title: Headless CMS with an MCP server: connect Claude safely
description: Connect Claude to a headless CMS over MCP: which CMSs support it, and five safety questions to ask before an AI agent gets write access.
url: https://sharpwritecms.com/blog/headless-cms-with-mcp-server-claude
published: 2026-11-25
updated: 2026-11-25
category: How-to
tags: mcp server, headless cms, claude code, ai agents, drafts
author: The SharpWrite team
site: SharpWrite (https://sharpwritecms.com)
---

# Headless CMS with an MCP server: connect Claude safely

> **Short answer:** A CMS with an MCP server lets an AI agent such as Claude read your content and save drafts through a standard connection, with no custom glue code. Before you connect one, check whether the agent can publish or delete, whether write access is opt-in, and whether every change is versioned. SharpWrite's MCP server is draft-only, so an agent can write but never publish.

MCP (Model Context Protocol) is the standard way an AI tool such as Claude talks to another app. When your CMS has an MCP server, you can tell Claude "draft a changelog entry about today's release" and it will find your content types, read your existing posts for tone, and save the result into the CMS.

The useful question is not whether a CMS supports MCP. A growing number do. It is how much the agent is allowed to do once it is connected.

## What an MCP server does for a CMS

Without MCP, getting AI output into your CMS means copy and paste, or a script you write and maintain. With MCP the agent uses the CMS directly, through a small set of tools such as "list content types", "read an entry" and "save a draft".

That gives you three practical wins:

- **The agent knows your structure.** It can ask the CMS what content types and fields exist before it writes, so it fills the right fields.
- **It can read before it writes.** An agent that has read your last five posts matches your style better than one working from a one-line prompt.
- **No glue code.** You paste one address and one key into your AI tool.

## Which headless CMSs have an MCP server

As of November 2026, several do. These are the ones with a public announcement or listing we could find. Check each vendor's own docs for current details, because this area changes fast.

| CMS | What the vendor says |
| --- | --- |
| [Strapi](https://strapi.io/blog/manage-strapi-content-with-claude-desktop) | Built into Strapi 5 (version 5.47.0 or later); works with Claude Desktop, Claude Code and Cursor |
| [Storyblok](https://www.storyblok.com/mp/storyblok-on-claude-connector-directory) | A remote-hosted connector in Claude's connector directory |
| [Agility CMS](https://claude.com/connectors/agility-cms) | A listed Claude connector for content and media |
| [Cosmic](https://www.cosmicjs.com/blog/connect-claude-to-your-cms-mcp-server) | A hosted endpoint with a guide for Claude |
| [SharpWrite](https://sharpwritecms.com/docs/ai-agents) | Built in on Cloud and Self-host; reads content and saves drafts only |

## Five safety questions to ask first

An agent with a key to your CMS is a new kind of user. Ask these before you connect one.

### 1. Can it publish?

If yes, a wrong guess goes live. The safer design lets the agent save drafts and leaves publishing to a person. SharpWrite's agent tools can create and edit drafts but cannot publish or unpublish anything.

### 2. Can it delete?

Deleting is the hardest mistake to undo. SharpWrite's agent cannot delete entries, and it cannot change an entry that is already published.

### 3. Is write access opt-in?

A key should be read-only unless you decide otherwise. In SharpWrite a key can only write if you ticked "Let AI agents write drafts" when you created it, and existing keys stay read-only.

### 4. Is every change versioned?

You want to undo a bad draft with one click. Every agent change in SharpWrite is kept in the entry's version history.

### 5. What happens when you edit at the same time?

If you and the agent save the same entry, one of you should not silently overwrite the other. SharpWrite's update tool needs the entry's current version number, and refuses the update if the entry changed in between. The agent then reads the entry again and retries.

## Connect Claude Code to SharpWrite in three steps

This uses SharpWrite as the example. Other MCP clients that support remote HTTP servers take the same two things: an address and a header.

### Step 1: create a key

In the app, open **MCP**, name the key (for example "Claude"), tick **Let AI agents write drafts** if you want it to write, and copy the key. It is shown once. Use one key per agent so you can revoke one without touching the others.

### Step 2: add the server

The address is your app address plus `/api/mcp`:

```bash
claude mcp add --transport http sharpwrite https://app.sharpwritecms.com/api/mcp \
  --header "Authorization: Bearer sw_live_YOUR_KEY"
```

### Step 3: ask for a draft

Start with a small request, such as "List my content types, then save a draft post titled 'Release notes' with a two-paragraph summary of this week's changes."

Treat the key like a password. Do not paste it into shared chats or public repositories.

## What the agent can do

SharpWrite exposes five tools. The first three only read.

| Tool | What it does | Needs a write key |
| --- | --- | --- |
| `list_content_types` | Shows your types and their fields | No |
| `list_entries` | Lists entries of one type, filtered by status or search text | No |
| `get_entry` | Reads one entry in full, with its version number | No |
| `create_draft` | Saves a new entry as a draft | Yes |
| `update_draft` | Changes fields of an existing draft | Yes |

Each key can make about 60 MCP requests a minute, and requests over 300 KB are refused. Saving a draft sends no webhook, so your live site is not rebuilt until you publish.

## Prompts that work well

Agents do best with narrow, checkable jobs:

- "Read my last three changelog entries, then draft one for this release in the same style."
- "Find posts that are still drafts and list what each one is missing."
- "Turn these bullet points into a draft post, and leave the slug and date for me."

Avoid "write and publish my whole blog". It is not possible with a draft-only server, and it is a bad habit even where it is.

## If something does not work

- **401 Missing or invalid API key.** The header must be exactly `Authorization: Bearer` followed by the key. A revoked key fails too.
- **"This API key is read-only."** Create a new key with the write option ticked. Existing keys cannot be upgraded.
- **"The entry changed since you read it."** Someone saved in between. The agent should read the entry again and retry.

The full list is in the [AI agents docs](https://sharpwritecms.com/docs/ai-agents).

## Who this is for, and who it is not for

It suits you if you write regularly, already use Claude or a similar tool, and want drafts to land in your CMS without copy and paste. It is a weaker fit if you want an agent to run your whole publishing pipeline on its own. A draft-only server will not do that, by design.

SharpWrite also has [AI tools inside the editor](https://sharpwritecms.com/blog/what-is-an-ai-native-cms) on Cloud. The MCP server is separate: it uses your own AI tool and account, and on Self-host SharpWrite adds no AI of its own. You can [try it free for 7 days](https://app.sharpwritecms.com/sign-in) on Cloud.

## Frequently asked questions

### What is an MCP server in a CMS?

It is a connection that lets an AI tool such as Claude use your CMS through a standard set of tools: listing content types, reading entries and saving drafts. You add one address and one key to your AI tool, and no custom code is needed.

### Can an AI agent publish content to my CMS?

It depends on the CMS. Some MCP servers allow publishing. SharpWrite's does not: agents can read content and save drafts, and a person publishes from the app.

### Is it safe to give Claude access to my CMS?

It is safer when the key is read-only by default, the agent cannot publish or delete, every change is versioned and edits cannot silently overwrite yours. Use a separate key per agent so you can revoke one at any time.

### How do I connect Claude Code to a CMS?

Create an API or MCP key in the CMS, then run `claude mcp add --transport http` with the server address and an `Authorization: Bearer` header. For SharpWrite the address is your app address followed by `/api/mcp`.

### Does SharpWrite Self-host support MCP?

Yes. The MCP server is built into both Cloud and Self-host. On Self-host the address is your own domain plus `/api/mcp`, and SharpWrite adds no AI of its own.

---

## Try SharpWrite

SharpWrite is an AI-native CMS for one-person businesses. A clean editor, a plain REST API and built-in AI.

- [Start a 7-day free trial](https://app.sharpwritecms.com/sign-in)
- [See pricing](https://sharpwritecms.com/pricing): Cloud from $39 a month, or a one-time self-host license from $149
- [Read this post on the web](https://sharpwritecms.com/blog/headless-cms-with-mcp-server-claude)
