A Payload site, ready to clone

AI assistants

ChatGPT or Claude read and edit the site for you, with a key you create and never beyond what you may do.

What it does

A person connects an AI assistant to the site and asks it, in plain words, to find a page, translate a news item into Spanish, or draft a post with an image. The assistant works through MCP, the protocol ChatGPT and Claude use for tools, with the access of the person who connected it.

The assistant can find, create and update the content the person can reach: pages, posts, media, menus, settings. It passes the language of each read and write, so it can read in one language and write in another. It saves drafts: it publishes only when the key allows it and the person’s role may publish, so an editor’s assistant never publishes. It deletes only with a key that allows deleting. It can upload an image, which the site re-encodes, strips of its metadata (location included) and stores with the alternative text it must give. It can refresh the cache of a page that still shows old content.

It can never reach users, form submissions, the email or consent logs, or the keys themselves. Every request is checked against the key and the person’s roles at that moment: take a role away and the assistant loses it at once; revoke the key, let it expire or remove the person’s right to use assistants, and it stops working.

Keys belong to people, not to the site. Each person creates their own, one per assistant or device, with a name, what it may do and an expiry; it can never do more than its owner. The site keeps only a fingerprint of it, so not even an administrator can read it back. Revoking a key takes effect on the assistant’s next request and ends its sessions; the owner revokes it from their account, and whoever manages users can revoke anyone’s. And every action leaves a trace: the assistant activity log records each request, with the key, its owner, the assistant, what it did, on which content and in which language, and whether it was done, failed or not allowed. Only administrators read it, and entries are deleted after 90 days, or the period the project sets.

See it in the demo

Sign in to the admin as an editor or a publisher and open your account: under Keys for assistants, create a key (ChatGPT on my laptop), choose read or read and write, all your content or some kinds, and an expiry. Copy it: it is shown once.

Then, in ChatGPT (Settings, Apps and connectors) or Claude (Settings, Connectors), add the connector address, the site’s address ending in /api/mcp. A page of the site opens in your language and asks for the key; paste it and you are connected. Claude Code can send the key directly as a header. Administrators read what each key did in Logs, Assistant activity; whoever manages users sees and revokes anyone’s keys on their user page, without ever seeing the key.

For developers

It is part of template-site’s base and on by default, with its tables in a template migration; mcp: false in project/project.config.ts turns it off (no /api/mcp, OAuth, discovery or keys panel). Who may create keys is the useAiAssistants capability, which editors, publishers and admins hold. It wraps @payloadcms/plugin-mcp at /api/mcp, with keys people own instead of keys an admin manages, and an OAuth flow for ChatGPT and Claude at /api/oauth with discovery under /.well-known. Keys and tokens are stored as fingerprints, refresh tokens rotate and last 90 days at most, and the consent page, registration, tokens and /api/mcp are rate limited. mcp: { instructions } adds the project’s own lines to what the model is told. The code is in src/plugins/mcp/ and the README has the security model.

One block, every feature page

This strip is a reusable block: written once and placed at the end of every feature page. Edit it under Reusable blocks and all of them change.

All features