MCP
Only available on hosted Pages CMS.
The hosted MCP server lets AI assistants such as Claude, ChatGPT or Cursor work with your content: find entries, draft and update posts, upload images and run actions. It uses your Pages CMS permissions, and every change is a commit like any other.
Connect
- In your MCP client, add a remote server with the URL
https://app.pagescms.org/mcp. - Sign in to Pages CMS when prompted and review the permissions it asks for.
- Choose the repositories the assistant needs. Start with read access for discovery and review. Grant write or action permissions when the task requires them. Repository files can contain instructions written by other contributors.
Your client must support the Streamable HTTP transport; the older HTTP+SSE transport isn't supported. Clients that can't do OAuth can send a personal access token as a bearer token instead.
Disconnect a client under Account → Connected applications.
What to ask
Start by having the assistant discover your project. For example: "List my Pages CMS repositories, then show me the content model for the main branch." From there it can work like an editor: "Draft a post announcing our new pricing in the blog collection", or "Find posts without a cover image".
Tools
To find French posts, call entries_list with locale: "fr". Omitting the locale uses the collection default. For collections that store one file per language, pass a returned entry path to entries_translations. Each item gives the locale, exact path, whether the file exists, and its revision. When translations share fields in a single file, use entries_read to see those fields.
Skip repository search when the ID is already known.
Each tool publishes its input schema to the client. Every tool except repositories_search takes a repository ID, and every tool except repositories_search and branches_list also takes a branch. Writes require an idempotencyKey, and changes to existing content require the revision from a previous read:
{
"repository": "123",
"branch": "main",
"collection": "posts",
"path": "content/posts/hello.md",
"revision": "0123456789abcdef0123456789abcdef01234567",
"content": { "title": "Hello" },
"idempotencyKey": "update-hello-1"
}Same rules as the API
MCP is a different interface to the same operations as the REST API. It shares the API's:
- permissions and repository controls;
- monthly usage allowance, counted together with REST calls;
- write, idempotency and retry rules;
- error codes, returned as tool results with
isError: true.
For OAuth discovery, the protected resource metadata is at /.well-known/oauth-protected-resource/mcp.