Craft CMS 5.12 brings MCP servers and GraphQL with user permissions
For us, AI pays off most clearly in development, meaning code, templates, migrations and research. With version 5.12, Craft CMS now ships the interface that lets AI assistants work directly with an installation. On top of that comes a GraphQL API that works with the permissions of a real user for the first time, plus a series of smaller improvements for content editors.
What the new MCP servers do
The Model Context Protocol, MCP for short, is an open standard that AI tools use to talk to other systems. Craft 5.12 includes two such servers. Assistants like Claude, ChatGPT or Cursor can use them to connect directly to a Craft installation.
The authenticated server requires a sign-in, which runs through a new OAuth service from Craft. After that, the assistant acts on behalf of a user. It stays within that user's existing permissions and an access level that is set during authorization.
The public server works without signing in. It only exposes capabilities and content that have been explicitly approved beforehand. So the site owner decides what an AI agent can find out about the website.
Both servers are disabled after the update. They are enabled and configured in the control panel under Settings, in the MCP section. Plugins can register their own capabilities as well and open their content to agents that way.
For development, the local server matters most
Also new is the mcp/serve command. It starts an authenticated MCP server on your own machine. An agent running there works as a specific user. It can change content and even adjust the project config without anyone editing the YAML files directly.
For us, this is the most important point of the whole release. We change the project config through the control panel or Craft's PHP API rather than directly in the YAML files, so that the database and the configuration stay in sync. With mcp/serve, an assistant can follow the same principle, because Craft says such changes can be made safely without touching the files.
Decide who can write before you start
As convenient as the new access is, it calls for clean permission management. An assistant with write access to a live installation needs the same care as a user account with far-reaching rights. Craft makes this easy, because the authenticated server can never do more than the user it acts for.
We therefore recommend creating a dedicated user account for agents, with exactly the permissions the task requires. Structural changes run on a development environment first.
GraphQL now works with user permissions
Until now, Craft's GraphQL API was tied to schemas. A schema defines which queries and mutations are allowed. A request selects its schema via a token and then has full access to everything in it.
That works well as long as the application secures access itself or everything in the schema is safe to be public. For data that belongs to a specific user, such as account details or drafts, the model was less suitable.
From 5.12 on, a GraphQL request can authenticate as an actual user. Craft then builds the schema to match that user's permissions. The request can query and change anything this user is allowed to, and nothing beyond it. It is based on the same OAuth flow as the MCP server. Also new are personal tokens, which can access this GraphQL API or scopes defined by plugins.
Headless projects with a login area benefit most. A frontend can now query the account details or drafts of a signed-in user directly via GraphQL.
Smaller improvements for content editors
Besides that, 5.12 brings many small changes. These are the ones you notice most in the control panel.
- Files can be pasted from the clipboard straight into an Assets field.
- Markdown files can be uploaded and previewed with syntax highlighting.
- Element edit screens get a new Sites pane for toggling the status per site and switching between sites.
- Icon fields, entry types and option fields can use custom icon sets.
- Color fields now support translucent colors.
For multisite projects and multilingual websites, the new Sites pane is the most useful item on the list. Anyone who maintains an entry in several languages can now enable the sites in one place. The full list is in Craft's release notes on GitHub.
Our assessment
Craft 5.12 is only a minor release, but an important one for development. Because the MCP servers are disabled after the update, the update alone does not open any access for AI agents. We recommend installing 5.12 as usual and using MCP locally via mcp/serve first. We only enable the public server once it is clear which content an agent should see at all.