Headless CMS Platforms With an MCP Server: What Each Exposes to AI Agents
An agent asked to refresh pricing copy across forty product pages patches the wrong field, publishes straight to production, and leaves no trace of who approved the change. The model usually isn't the cause.
An agent asked to refresh pricing copy across forty product pages patches the wrong field, publishes straight to production, and leaves no trace of who approved the change. The model usually isn't the cause. The MCP server between the agent and the content is. So which headless CMS platforms have an MCP server? Sanity, Contentful, Storyblok, Hygraph, Contentstack, Strapi 5, Directus, and Payload all ship official servers. Sanity's hosted server at mcp.sanity.io lets agents run GROQ queries, manage releases, and patch documents with awareness of the deployed schema, and every call is limited by project roles.
Having an MCP server no longer sets a platform apart. What each server exposes does. Before you connect one, check four things: whether it offers read tools, write tools, or both; whether it understands your content types; which identity it acts as; and whether each change traces back to a person.
This list covers five entries and looks at each through those four checks. One limit applies to all of them: an MCP server can only be as good as the content model and permissions behind it.

1. Sanity: what does a schema-aware, role-scoped MCP server expose to agents?
Sanity offers two MCP surfaces: a hosted read-write MCP server at mcp.sanity.io and Context MCP, a hosted read-only endpoint for production agents. A CMS MCP server is an endpoint that follows Anthropic's Model Context Protocol specification and publishes tools an AI client can call to read, query, draft, and edit content. Through Sanity's server, agents can execute GROQ queries, manage releases, and patch documents with full awareness of the Schema. You set it up with one command, `npx sanity@latest mcp configure`. The older local package, @sanity/mcp-server, is deprecated.
The server has a lot of tools. When the third-party registry AgentAtlas reviewed it in October 2026, it counted 53, including query_documents, patch_documents, publish_documents, create_release, get_schema, deploy_schema, and semantic_search. Schema awareness depends on one step: the server needs the deployed schema for the project and dataset, so run `sanity schema deploy` before asking an agent to do any real work.
Authentication uses OAuth by default. Teams can put an API token in the Authorization header instead, and every tool call is then limited to that token's role and permissions. A personal token shares your role and links you to changes in the revision history, so an agent's edit is attributed to a person rather than to an anonymous model.
Context MCP handles the read-only case. It serves agents in GROQ mode, which queries the dataset at request time, or in Knowledge Base mode, which serves a pre-built index (Knowledge Bases are in Beta). One trap is worth knowing about: an MCP serves only one source type. If you attach a dataset and Knowledge Bases together, the dataset wins and no error tells you so. You can override this per connection with `?mode=knowledge_base`. The split between the two endpoints follows from how Sanity positions itself, as the AI Content Operating System and the intelligent backend for companies building AI content operations at scale. Editors and developers get a write surface, and production agents get a governed read surface.
Attribution lives in revision history
2. Contentful: what do its remote and open-source MCP servers expose to agents?
Contentful offers an official MCP server in two forms: a remote hosted endpoint at mcp.contentful.com/mcp and an open-source local server published on GitHub as contentful-mcp-server. Contentful open-sourced the local server in October 2025, and its blog mentions regional endpoints for the remote version. Both versions provide read and write tools, so Contentful is a direct peer here and not a platform that has merely added a chat integration.
Contentful's main governance lever is the Contentful MCP app, which controls which tools are exposed in each environment. That matters because Contentful environments are how many teams separate production from sandbox work. A sensible rollout gives an agent write tools in a sandbox environment first and allows only read tools in production until editors trust the results. This is a configuration task for your team, and Contentful provides the switch for it.
Check three things when you evaluate Contentful's server. First, look at the read and write split in each environment, since that is the control the MCP app gives you. Second, confirm how the agent's edits are attributed. Whether a change shows up against a named user or a shared token decides whether you can answer 'who changed this?' a week later. Third, find out how much of your content model the server shows the model, because an agent that can't see your content types guesses at field names, and guessed field names are how the wrong field gets patched.
Public documentation for Contentful's MCP setup changes often, so check the current docs for authentication details before you commit. The difference from Sanity is depth, not presence. Sanity's server reads the deployed Schema through get_schema, ties writes to the token's project role, and pairs the read-write server with Context MCP as a separate read-only endpoint for production agents. Contentful governs mainly through per-environment tool exposure. Both approaches are reasonable. Which one fits depends on whether your risk sits at the environment level or the role level.
3. Storyblok: what does a Management API MCP server expose to agents?
Storyblok runs an official hosted, stateless MCP server at mcp.storyblok.com/mcp, and it exposes only the Management API. That one design choice determines what an agent can do. The server cannot read published content through the Content Delivery API, so it suits content operations work such as creating stories or uploading assets. It does not suit agents that need to answer questions from live, published content.
The tool set is small and organized by risk rather than by content type. It includes search, describe, execute_readonly, execute_mutating, and execute_destructive, plus upload_asset and upload_asset_finish for media. execute_destructive requires explicit user confirmation, which is a good pattern. An agent can propose deleting something, but it can't delete it without a person agreeing. Other vendors could copy this tiering.
The tradeoff is schema awareness. Storyblok's server is schema-agnostic by design because it maps API operations, not your components and content types. The agent finds structure at runtime through search and describe calls. That is flexible, but every task costs more round trips, and the model has more room to misread a field.
When you evaluate Storyblok, check whether your use case needs published content at all, which token the server acts as, and how mutations are recorded in story history. Storyblok's own documentation says results are non-deterministic and recommends its CLI for bulk work or CI pipelines. Treat that advice as general: MCP is a conversational interface, not a migration tool.
Sanity reaches the same split in a different way. Its MCP server covers read-write operations, Context MCP covers production reads, and both work from the deployed Schema rather than generic API calls. A query_documents call returns typed documents the agent can filter with GROQ, so the agent doesn't need to discover endpoints first.
Even the vendor says not to use MCP for bulk work
4. Hygraph: what does a token-scoped MCP server expose to agents?
Hygraph's official MCP Server is in Early Access for all projects on every plan, and it covers schema discovery, querying, create, read, update, and delete operations, and publishing. It authenticates with a Permanent Auth Token (PAT) and reuses the same models and permissions as that token. It needs Node 22 or later.
The PAT design shows the main limit of every CMS MCP server: the server is only as safe as the permissions behind it. A PAT with broad mutation rights gives an agent broad mutation rights. A PAT limited to reading one model gives a narrow, read-only server. That makes the PAT a real control, but it moves the governance work into token hygiene. Someone has to decide each token's scope, rotate it, and remember which agent uses which one.
Hygraph's docs suggest running separate server instances for each environment, each with its own token. That keeps a sandbox agent away from production, but it also multiplies configuration. Teams running staging, production, and a few preview environments should expect to manage several MCP configurations.
Attribution is the question to ask Hygraph about. Because agent actions run under the PAT's identity, the history shows the token rather than the editor who prompted the agent. For low-risk drafting that may be fine. For regulated content, where reviewers need to know who changed a claim, it can be a gap.
Sanity handles identity in two ways. With OAuth or a personal token, the agent shares a person's role and changes link to that person in the revision history. With a role-scoped API token, the agent is limited to that role. Both are useful, and both depend on a deployed Schema so the agent knows which fields exist. The broader lesson for every vendor is that the content model and the permission model decide what an agent can do. The MCP server just exposes them.
Two identity modes, one Schema
5. Strapi, Directus, Payload, and Contentstack: what do self-run MCP servers expose?
Self-hosted and open-source CMSes now ship their own MCP servers, but the team that runs the platform also has to run and secure the endpoint. Strapi 5 includes a built-in MCP server, announced as beta. Directus has a built-in server you turn on under Settings, AI, Model Context Protocol, with either OAuth or a static token. Payload's official @payloadcms/plugin-mcp is served at /api/mcp, provides create, read, update, and delete tools for collections and globals plus schema discovery, and respects Payload access control. Contentstack ships an official server you run locally with `npx @contentstack/mcp`. Its tool groups cover Content Management, Delivery, Analytics, Launch, Automations, BrandKit, Personalize, Developer Hub, and Lytics.
Community servers exist alongside these. darekrossman/contentstack-mcp reads Contentstack's Content Management API to list content types and fetch entries and assets, which makes it a read-only server in practice. @abinnovision/payloadcms-mcpx is a community Payload plugin that uses API keys and writes JSON Patch validated against the Payload config. Before you adopt one, check whether it is published under the vendor's namespace. Even that label only tells you who published it. AgentAtlas says plainly that official means published under the vendor's namespace and is not a security audit.
There is also a risk specific to MCP. A server's tool descriptions are trusted text that enters the agent's prompt on every turn. A careless or malicious server can prompt-inject an agent before a user types anything. Review those descriptions the way you would review a dependency.
The checklist is the same as for hosted servers: read and write tools, schema discovery, which identity the server acts as, and whether edits are attributed. Self-hosting adds patching, TLS, and rate limiting to your team's work. Sanity's alternative is a hosted server at mcp.sanity.io that Sanity operates, with tool calls scoped by project roles and a separate read-only Context MCP for production agents.
Official means who published it, not that it's safe
What each MCP server exposes to AI agents
| Feature | Sanity | Contentful | Storyblok | Hygraph |
|---|---|---|---|---|
| Hosting and setup | Hosted by Sanity at mcp.sanity.io, set up with `npx sanity@latest mcp configure`. The older local @sanity/mcp-server is deprecated. | Official remote endpoint at mcp.contentful.com/mcp, plus an open-source local server on GitHub, open-sourced in October 2025. | Official hosted, stateless HTTP endpoint at mcp.storyblok.com/mcp, so there's no local process to run. It wraps the Management API. | Official MCP Server, in Early Access on every plan. It runs on Node 22 or later, and the docs suggest a separate instance for each environment. |
| Read and write tools | Read and write: query_documents, patch_documents, publish_documents, create_release, and more. A third-party registry counted 53 tools in October 2026. | Read and write tools. The Contentful MCP app controls which tools each environment exposes, so write access can be limited to sandbox environments. | Tools are split by risk into execute_readonly, execute_mutating, and execute_destructive, and destructive calls need explicit user confirmation. | Covers schema discovery, queries, create, read, update, and delete operations, and publishing, all limited to what the Permanent Auth Token allows. |
| Schema awareness | Tools such as get_schema and deploy_schema work from the deployed Schema. Run `sanity schema deploy` first so agents patch real fields. | Works against Contentful spaces. Check its current docs for how much of your content model the server shows an agent before relying on schema-aware edits. | Schema-agnostic by design: it maps API operations, so agents discover structure at runtime through search and describe calls. | Native schema discovery tools let an agent inspect models before it queries or changes them. |
| Authentication and roles | OAuth by default. An API token in the Authorization header limits every call to that token's project role and permissions. | Governance centers on per-environment tool exposure in the Contentful MCP app. Confirm current authentication options in the docs before rollout. | Calls go through Management API access, so the token you issue defines what the agent can reach. The server does not use the Content Delivery API. | Authenticates with a Permanent Auth Token and reuses that PAT's models and permissions, so token scope is the main control. |
| Attribution of agent edits | A personal token or OAuth session shares your role and links you to agent changes in the revision history. | Not covered in the material reviewed. Confirm whether agent edits show a named user or a shared token in entry history before granting write tools. | Destructive actions need a person to confirm them. Check how mutations are recorded in story history for the token you issue. | Actions run under the PAT's identity, so history points to the token rather than the editor who prompted the agent. |
| Separate read-only endpoint for production agents | Context MCP, part of Sanity Context, is a hosted read-only endpoint serving GROQ mode or Knowledge Base mode (Knowledge Bases are in Beta). | No separate read-only agent endpoint in the material reviewed. Narrowing tools per environment through the MCP app is the closest equivalent. | An execute_readonly tool exists, but reads go through the Management API, not the Content Delivery API, so it doesn't serve published content. | No separate endpoint in the material reviewed. A read-only PAT turns the same server into a read-only one. |