Payload CMS
Why Payload is now the perfect CMS for Next.js and AI developers
Payload's schema, types, data access and admin are all code in your own repo. That is why an AI agent can read it, change it and check its own work. Here is the case, and where it still falls short.
The argument
Payload is the CMS that an AI coding agent can properly work in.
A year ago I wrote 25 reasons why you should use Payload CMS. This piece makes one argument, and I think it is now the strongest of the lot.
Payload is the CMS that an AI coding agent can properly work in. That was true by accident when Payload 3.0 launched two years ago. Since then the team has been building for it on purpose, and this autumn they put it on the home page.
"Perfect" needs defining before I'm held to it. I don't mean flawless, and the second half of this piece is a list of flaws. I mean fit. A tool is perfect for a job when its shape matches how the job is done, and the job of building a website has changed shape.
What changed this autumn
Three things happened inside a few weeks.
On 9 October the first Payload 4.0 beta was tagged, and on 19 October the team announced it. The list includes a redesigned admin, support for TanStack Start alongside Next.js, a rebuilt MCP integration and agent skills. One line from that post is the thesis of this article: "Payload's TypeScript-first architecture makes it a natural fit for AI-assisted development."
Some time between 4 and 29 October, the headline on Payload's home page changed. The archived copy from 4 October reads "The backend to build the modern web." The copy from 29 October, and the live site today, read "The Agentic Content Framework".
And on 15 October, Figma, which has owned Payload since June 2025, launched Payload inside Figma Make, its tool for building apps from a prompt.
The numbers moved too. npm recorded 1,410,603 downloads of Payload in the week of 21 to 27 November 2026. In the same week a year earlier it was 165,456. That is 8.5 times as many, though download counts include automated installs, so read it as direction and not as users.
Headlines are marketing, and marketing changes. What interests me is that this claim was true before anyone at Payload made it.
The whole CMS is text in your repo
An AI coding agent is good in exactly one kind of place: a folder of text it can read, edit and run checks against. Everything it does well follows from that. Everything it does badly tends to involve something it can't see.
Many content management systems keep their most important facts somewhere the agent can't see. The content model lives in a database, or in a vendor's dashboard, built by clicking. The agent gets an API and has to guess at the shape behind it. Sanity and Strapi are exceptions, because both keep the content model as files in the project.
Payload keeps the model there too, and then puts the rest of the CMS in the same place. Its own docs describe it as "a config-based, code-first CMS and application framework", and the config as "a fully-typed JavaScript object". Fields, in the docs' words, "define your schema and auto-generate the matching Admin UI".
So one TypeScript file describes a collection, and from that file you get the database schema, the editing screen and the API. Here is a whole content type, for a list of events:
import type { CollectionConfig } from 'payload'
export const Events: CollectionConfig = {
slug: 'events',
fields: [
{ name: 'title', type: 'text', required: true },
{ name: 'date', type: 'date', required: true },
{ name: 'venue', type: 'relationship', relationTo: 'venues' },
],
}
Change the file and all three change, though on Postgres or SQLite the live database only follows once you create and run a migration. For a person that's convenient. For an agent it means the whole CMS is something it can read.
Three more things make it work.
The types are generated. Run payload generate:types and every collection becomes a TypeScript type. If an agent adds a field in one place and misuses it in another, the compiler says so. That is what I mean by an agent checking its own work. It doesn't need to be clever. It needs a check it can run.
The data access is a function call. Payload's Local API lets server code ask for content directly: "With Payload, you don't have to leave your server to gather the data you need." The page that shows an event and the collection that defines an event are linked by types, in one codebase.
It lives inside the Next.js app. "Payload installs directly in your Next.js /app folder". There is one repo, one build and one deployment. An agent asked to add an events section can write the collection, the types and the page in a single change, and a person can review it as a single change.
The tooling caught up with the architecture
The architecture was a happy accident. The tooling since has been deliberate, and you can date it.
- 23 October 2025. The MCP plugin first shipped in beta, letting AI models work with your collections through a standard protocol.
- 19 December 2025. Every template started shipping with an
AGENTS.mdfile and Cursor rules, "for improved AI-assisted development". - 27 February 2026. The MCP plugin was declared "stable and ready for production use".
- 1 April 2026. Payload added an evaluation suite that tests how well models follow Payload conventions and generate Payload code.
- 15 April 2026. The project scaffolder gained an
--agentflag for Claude, Codex and Cursor, which downloads a Payload coding skill. - In 4.0, which reached beta in October 2026. The skill now ships inside the
payloadpackage. Every CLI command takes a--jsonoption that "scripts and coding agents can read". Editors can write instructions for AI agents in the admin. MCP works with an empty config, and from 10 November it has a built-in OAuth server.
Payload also publishes its documentation for machines: an llms.txt split by major version, and a Markdown copy of every docs page.
It's worth separating two jobs here, because most CMS vendors only do one of them.
The first is an agent working with your content: drafting a page, tagging fifty articles, finding every product without a description. That is what MCP is for, and Sanity, Strapi, Directus and Contentful all have it now.
The second is an agent working on your codebase: adding a collection, changing a field, building the page that displays it. That is what the skill, the generated types and the code-first config are for. It's the rarer of the two, and it's where the hours are for a developer.
Payload's own repository is built this way. Its contributor instructions are written for agents, and end by asking for a short "Written with AI" line.
Still the Next.js CMS, whatever the docs now say
Here I have to deal with an awkward fact. Payload is becoming less of a Next.js product on paper.
The 3.x docs say "Payload is the Next.js fullstack framework." The 4.x docs say "Payload is a fullstack framework." The beta announcement is blunt about it: "Payload 3.0 brought Payload and Next.js together, but the plan was never to support Next.js exclusively."
In practice very little has moved. The 4.x install guide still targets the Next.js App Router first. In the week of 21 to 27 November, the Next.js adapter was downloaded 1,315,952 times and the TanStack one 13,564 times. That's about 1%, but the TanStack adapter only exists for the 4.0 prereleases. Among 4.0 installs it is nearer one download in ten.
And the Next.js support is current. Payload has been compatible with Next.js 16 since January, including Turbopack. The 4.0 beta added support for cache components on 19 October. Smaller things landed this autumn as well, such as hot reloading with a basePath.
It also deploys wherever Next.js does. The deployment docs name Vercel, Netlify, SST, DigitalOcean and AWS, and you can self-host. It runs on MongoDB, Postgres or SQLite.
I read the move to a second framework as good news for Next.js developers. A CMS that can only run on one framework is a risk you carry for the life of the site. One that prefers your framework and can leave it is a better bet.
Everyone else shipped agent features too
It would be dishonest to pretend Payload did this alone. In the same two months:
- Sanity took its Context Knowledge Bases out of beta on 10 November, and kept shipping updates to its hosted MCP server.
- Strapi's MCP server, built into the core and generally available since June, kept getting fixes.
- Directus added an AI text step to its automation flows on 18 November.
- Contentful made its Content Operations Agent generally available on its higher plans in November, according to its changelog.
These are real features. They are also mostly the first job: an agent reaching into your content from outside.
Payload's difference is the second job. The schema, the types, the data access and the admin are code in the same repository the agent is already editing. Nothing has to be exposed to it, because nothing was hidden. That is my argument and not something I can measure for you, so weigh it as an opinion.
Where it still falls short
I said "perfect" meant fit, not flawless. Here are the flaws, and none of them is small.
The best of it is in a beta with no date
Payload 4.0 is still a beta. The latest is beta.12, published on 24 November, and no date for a stable release has been announced. Zero-config MCP, OAuth for MCP, the skill inside the package, the instructions for agents and the JSON output from the CLI are all 4.0 features. They are not in the stable 3.x line.
The last major version took about seven months to go from beta to stable. Payload has said it wants a shorter path this time. Its own versioning policy is clear about what a beta is: "Canary and beta builds make no promises to each other."
So for a client site today I'd build on stable 3.x, which already has the MCP plugin, the agent files in the templates and the scaffolder flag. I'd try 4.0 on a staging copy, and move when it's released.
The security record this autumn
Between 18 September and 24 November 2026, Payload published 45 security advisories. Six were rated critical. Four, all rated high, concern the MCP plugin, and they affected versions released after it was declared ready for production.
Payload's explanation is worth quoting: "Models are getting significantly better at reading code and finding vulnerabilities in it, and OSS naturally sits on the leading edge of that shift."
There's fairness to add. All four MCP advisories were fixed in releases that came out before the advisories were published, and three of them needed a setup that isn't the default. Payload isn't alone either. Strapi says it published five patched vulnerabilities of its own in May, two of them critical.
The practical point stands either way. November alone had two releases marked as security updates, on the 4th and on the 24th. A Payload site that isn't being updated is a risk, and looking after one is a monthly job that needs a budget.
Upgrades are real work
Payload moves fast, and it takes the floor with it. Going by the published package requirements for version 3.89.0 and version 3.94.0, the minimum Next.js 16 version went from 16.2.6 in September to 16.4.5 in November. The Node.js minimum rose three times in the same period. Three of the seven stable releases in the last two months carry a breaking-changes section.
The 4.0 migration guide lists more than a hundred breaking changes. Most can be applied automatically, and there is an agent-assisted mode for the upgrade tool. One of them deserves care. A default in the Local API flips, so code that used to skip access control now respects it. The upgrade tool can put the old setting back at every call. If you skip that step, in the guide's words "there is no compile error". Your code still builds. It just behaves differently.
Agents still get it wrong
The compiler catches a lot. It doesn't catch everything, and Payload says so. Its skills work is aimed at "places where an agent invented an API, missed a required config property, misunderstood a feature, or failed to use a Payload capability correctly".
On the content side there is an open bug report from 7 November. It says that on 3.x any MCP update to a list field with translated sub-fields can wipe that content in the other languages.
The rule I work to hasn't changed. The agent proposes and a person who knows what good looks like reviews it. Payload makes that review easier, because the change is a diff you can read. It doesn't make it optional.
Hosting and ownership
Payload Cloud is closed to new projects. The notice says "deployment of new projects is currently paused". Unless you are an enterprise customer or building in Figma Make, you host it yourself, and the deployment docs are plain about what that involves: "most Payload projects will also need a database, file storage, an email provider, and a CDN."
Figma owns it. The licence is still MIT, and when the deal was announced Figma's CTO said "Payload will remain an open-source product". I have no reason to doubt that. I'd still note that the roadmap now has a second customer. The beta announcement says the admin was redesigned partly because Payload now powers the backend for Figma Make apps.
It isn't for every website
Payload's own docs include a section on when it might not be for you, and one line is "If you are building a website that fits within the limits of a tool like Webflow or Framer". I agree. A five-page brochure site doesn't need a custom content model, a database and an update schedule.
So why "perfect"?
Because every flaw on that list comes from the same place as the strength.
Payload is fast-moving, code-first and in the open. That is why upgrades take work, why you host it yourself and why its vulnerabilities are being found by the dozen. It is also why an agent can read the entire system, why a compiler can check the agent's work, and why a change to your content model arrives as a diff a person can review.
I don't know another CMS where all of that is true at once. For a Next.js developer who works with AI, and for a client whose site needs a content model of its own, that's the best fit there is right now. That's what I mean by perfect.
If you want to know whether it fits your project, get in touch, or read more about how I build with Payload.
Want a hand with this on your own site? See Payload CMS development.
Sources
Where this comes from
Release dates are from Payload's GitHub releases. Docs pages and download counts were read on 28 November 2026.
- Payload 4.0 beta announcement, Payload, 19 October 2026
- An early look at Payload 4.0, Payload, 9 June 2026
- Payload releases, GitHub
- Payload security advisories, GitHub
- Payload security update for 3.x and 4.0, Payload, 18 September 2026
- Payload 3.0 to 4.0 migration guide and versioning policy, Payload docs
- Payload config, Local API, MCP plugin and AI tooling, Payload docs
- Websites with Payload in Figma, Figma, 15 October 2026
- Payload joins Figma, Figma, 17 June 2025
- npm download counts for
payload, week of 21 to 27 November 2026
Who wrote this
I'm Simon, a freelance web designer and developer. I build websites and online shops with AI, and I build AI into them: chatbots, content tools and automations. How I use AI on client work, and what never goes into it, is set out in my AI policy.
How this was written
AI helped write this piece. I've checked it, and I stand behind every claim on it.