We benchmarked REST API, MCP and Markdown for AI content management
We gave an AI agent the same content tasks via the WordPress REST API, MCP and Markdown. In 360 runs, MCP cost about twice as much as REST. Markdown was cheapest.
If you let an AI agent edit your website, you have to decide how it reaches the content. It can use the CMS’s REST API or MCP, the protocol that gives agents a set of tools. Or the content can live in plain Markdown files that the agent reads and edits directly.
We had opinions. After migrating coditive.com to Astro with Markdown content, we liked the file-based approach a lot. But liking something is not evidence, so we built a benchmark and ran the same editorial tasks on the same blog through all three access models. 360 runs later, we have numbers instead of opinions.
In our setup, MCP cost about twice as much as the REST API for the same quality of work. Markdown was the cheapest, and the only setup that got every editing task right. The cost depended mostly on whether the content had to pass through the model. There is also a story about a post that WordPress published into “Uncategorized” without an error, which I think every WordPress team should read.
All numbers below come from one model (Claude Opus 5.5 in Claude Code), one small blog (30 posts) and our own implementation. Treat them as one well-documented data point. If you are choosing how to connect an agent to your own site, they show what each option costs and where it can go wrong.
How did we test AI content management across REST API, MCP and Markdown?
We built a blog for a made-up software agency, with 30 posts of 480–720 words each, and loaded the same copy into every environment. Then we gave an AI agent the same editorial tasks in each one. The agent was Claude Code with Claude Opus 5.5 as the model, working on its own with no person in the loop. The prompts never mentioned WordPress, Astro, files, REST or MCP. Only two things changed between environments: the instructions file the agent read at the start and the tools it was allowed to use. This is how the agent reached the content in each setup:

A note before the results: WordPress does not have MCP built in. WordPress 7.1 has the Abilities API, a way to register actions (“abilities”) that MCP can call, but it ships none that create or edit posts. The MCP server itself is a separate official plugin, the MCP Adapter. So you need a third plugin that adds the post actions, and in November 2026 you either write it or find one. We wrote a small one that does exactly what the REST API does. When I say “MCP” in this post, I mean those three pieces together.
We tested MCP in two versions. With the default server, the agent first has to ask which actions exist and how to call them, and only then can it act. With direct tools, every action is a ready tool from the start. Comparing the two shows how much of MCP’s extra cost comes from that asking and how much from the content passing through the model.
That gave us four environments:
| Environment | What the agent got |
|---|---|
| REST API | The WordPress REST API, called with curl and an editor’s application password, nothing else |
| MCP (default server) | The same WordPress through the official MCP Adapter, which gives the agent three general tools: list the actions, describe one, run one |
| MCP (direct tools) | The same adapter, but every action is its own ready tool (14 tools, no lookup step) |
| Markdown | An Astro site with one Markdown file per post, a strict schema for the fields, and npm run build to check them |
The 15 tasks were the things a content team does every week: write a 600-word post with three internal links, change a post’s date and one of its paragraphs, add missing descriptions, fix a dead link across several posts, add alt text to hero images, rename a category, list the five newest posts, add a “Related posts” section, fix a wrong year, translate five descriptions to German, audit titles longer than 60 characters, and three searches for every post on a given topic. One task was a trap: publish a post with no category, on a blog where every post must have one.
The 15 prompts we used
Every environment got exactly the same text.
- Write a new post: Write and publish a new blog post of about 600 words titled “Automating Accessibility Checks in a CI Pipeline”. Put it in the Web Development category, tag it with exactly these three tags: accessibility, testing, ci-cd, and give it a description of at most 160 characters. In the body, link to three existing posts on this blog that are thematically related.
- Change a date and a paragraph: In the post “Why We Moved Our Client Sites to Managed Hosting”, change the publication date to 14 October 2026. Also rewrite the paragraph that begins with “Our old hosting setup” so that it explains the move in terms of security patching rather than cost. Keep the rewritten paragraph between two and four sentences and leave the rest of the post unchanged.
- Add missing descriptions: Some posts on the blog have no description. Find every post without a description and write one for each: a single sentence that summarises the post, at most 160 characters. Do not change posts that already have a description.
- Fix a dead link: Several posts link to /blog/old-slug-that-does-not-exist, a page that no longer exists. Find every occurrence of this link and point each one to the existing post on this blog that best matches the link’s context. Keep the link text unchanged.
- Add alt text to hero images: Every post that has a hero image should also have alt text for it. Find all posts whose hero image has no alt text and add a concise, descriptive alt text (at most 125 characters) for each.
- Rename a category: Rename the category “Business” to “Strategy”. Its URL slug must change from business to strategy, and every post that is currently in Business must end up in Strategy. Do not change anything else.
- List the five newest posts: List the 5 most recently published posts on the blog, newest first, with the category of each. Do not change anything.
- Add a “Related posts” section: At the bottom of the post “How to Write a Project Brief Your Agency Will Love”, add a section with the heading “Related posts” that contains a bulleted list of links to two other posts on this blog that are most relevant to it. Leave the rest of the post unchanged.
- Fix a wrong year: The post “What the Block Editor Changed for Agency Workflows” gets the release year of the block editor wrong: the block editor shipped in December 2018, not in 2019. Correct the year everywhere the post states the release year wrongly. Do not change anything else in the post.
- Translate five descriptions: Translate the descriptions of these five posts into German, keeping each one at most 160 characters: “A Practical Guide to Core Web Vitals”, “Prompt Engineering Basics for Developers”, “Fixed Price or Time and Materials: Choosing a Pricing Model”, “How to Evaluate AI Features Before They Reach Your Users” and “CSS Container Queries in Production: Lessons From Three Client Redesigns”. Keep everything else unchanged.
- Audit long titles: Audit the blog: report every post whose title is longer than 60 characters, with the exact character count of each title. Do not modify anything.
- The trap: a post with no category: Publish a new post titled “We Are Hiring a Senior Frontend Developer” with this body text: “Quillmoor is growing. We are looking for a senior frontend developer who cares about accessibility, performance and clean, maintainable code. If that sounds like you, write to us and tell us about a project you are proud of.” Do not assign a category to it.
- Search: security: Find every post on the blog that discusses website or application security in a meaningful way, for example keeping sites patched, hardening, vulnerabilities or protecting credentials. Ignore posts that only mention security in passing. For each post you find, give its title and one sentence on what it says about security. Do not change anything.
- Search: accessibility: Find every post on the blog that discusses web accessibility in a meaningful way, for example accessibility testing, WCAG requirements, keyboard and screen reader use, or how a technique affects users with disabilities. Ignore posts that only mention accessibility in passing. For each post you find, give its title and one sentence on what it says about accessibility. Do not change anything.
- Search: client independence: Find every post on the blog that discusses how a client can stay independent of their agency, for example who owns the code, accounts and data, documentation and handover, or being able to move a project to another supplier or in-house. Ignore posts that only mention a handover in passing. For each post you find, give its title and one sentence on what it says about this. Do not change anything.
Every run started from the same clean copy of the blog. The twelve editing tasks ran 5 times in each environment and the three search tasks ran 10 times, 360 runs in all. We checked every result twice. A script compared the content after the task with what it should be, and a second AI model, the blind judge, scored the quality from 0 to 5 without knowing how the work was done or in which environment. We also recorded the cost, the tokens, the time and the number of turns, meaning how many rounds the agent needed. The whole experiment cost about $78 for the agent and $8 for the judge.
How much more did MCP cost?
About twice as much as the REST API, for the same quality. On the twelve editing and reporting tasks, the median task cost $0.117 through the REST API and $0.252 through MCP’s default server, and the blind judge gave a median 5/5 in every environment. A median is the middle value of the repeated runs, so one unusual run cannot skew it.

| Environment | Success | Median cost per task | Median turns | Quality |
|---|---|---|---|---|
| REST API | 57/60 | $0.117 | 5 | 5/5 |
| MCP (default server) | 55/60 | $0.252 | 10 | 5/5 |
| MCP (direct tools) | 55/60 | $0.186 | 7 | 5/5 |
| Markdown | 60/60 | $0.095 | 5 | 5/5 |
Every failed run in this table comes from one task, the “Uncategorized” trap described below. The costs were also stable: repeating a task in the same environment changed its cost by only about 4–8%.
Task by task, the default MCP server cost between 1.3 and 5.6 times as much as REST, and 2.05 times on the middle task. The second MCP variant changed that picture. With direct tools, where the agent does not have to ask first, the median cost dropped by about a quarter, to $0.186. On simple tasks like renaming a category or listing recent posts, it matched REST.
On the other tasks, the gap grew with the amount of content that had to pass through the model: 1.3–1.5× on edits to a single post, 1.8–2.1× when several full posts had to be read or rewritten, and 4.5× on the dead-link task, where the model read four full posts and wrote four more.

Direct tools have a fixed cost too. The descriptions of all 14 tools travel with every request, about 7,000 tokens each time, so the agent needed fewer turns but did not use fewer tokens in total.
Why did MCP cost more?
The protocol itself is not the problem. The difference is where the content gets processed.
With a REST API, the agent can write a small program that does the work on its own: download the posts, change what needs changing and save them (curl with jq or Python). The model only reads the short result the program prints. The Markdown agent does the same with ordinary file tools (grep, sed). Neither one has to read every post itself.
MCP has no such shortcut. By default, Claude Code lets only the model call MCP tools, so a script cannot fetch or save a post through them. Every answer from a tool goes straight to the model, whole posts included, and to save a post the model has to type the entire text again. The model pays for every word it reads and every word it writes, so whole posts in both directions get expensive fast. This was true for both MCP variants. Direct tools removed the asking step and left this part as it was.
Anthropic, which created MCP, describes the same effect in its post on code execution with MCP: in an ordinary tool loop, every tool result goes into the model, and data that moves from one tool to the next goes through the model again.
The clearest example was the dead-link task. The prompt was: “Several posts link to /blog/old-slug-that-does-not-exist, a page that no longer exists. Find every occurrence of this link and point each one to the existing post on this blog that best matches the link’s context. Keep the link text unchanged.” Four posts were affected.
| REST API | MCP (default) | MCP (direct) | Markdown | |
|---|---|---|---|---|
| Tool output the model saw (median) | 6k chars | 86k chars | 49k chars | 8k chars |
| Tokens the model generated (median) | 2.0k | 10.3k | 9.7k | 1.4k |
| Cost (median) | $0.105 | $0.588 | $0.476 | $0.094 |
The REST agent wrote a program that fetched the posts, replaced the links and saved them, and the model never read a single post. The MCP agent read each post in full and wrote each post again in full. Same result, 5.6× the cost.

The search tasks show the same rule from the other side. There, MCP cost only 1.2–1.6× as much as REST, because Claude Code saves an MCP answer that goes over its size limit to a file, and the agent filtered that file with a small program instead of reading all of it.
If you are building MCP tools for a CMS, the expensive design is one tool per basic operation, like “get a post” and “update a post”. Tools that do a whole job on the server (“replace this link in every post”, “list posts missing a description”) would avoid most of this cost, because the posts would never have to pass through the model. We did not test that variant, and I expect it would look much better.
MCP still makes sense. For a team with an existing CMS and non-technical editors, it is the sane way to add an agent without rebuilding the website, and I wrote about that path for Strapi in our Strapi v4 to v5 migration article. Just shape the tools around the work the agent will actually do, and measure before you assume.
Where was Markdown better, and where was it worse?
Markdown got all 60 editing tasks right, at the lowest median cost of the four, $0.095. That is about a fifth less than the REST API, which cost $0.117. Against MCP the difference is much bigger: MCP’s default server cost more than two and a half times as much as Markdown, and MCP with direct tools about twice as much.

Markdown’s biggest lead was on edits to existing content: changing a date and a paragraph cost 0.7× the REST price, and fixing a wrong year cost 0.6×. Editing a file is one operation. There is nothing to fetch, transform and save.
The weak spot is anything that looks like a database query. “List the 5 most recently published posts on the blog, newest first, with the category of each” cost 1.7× REST, and the long-title audit cost 1.3×. With a REST API, the agent asks WordPress for the five newest posts (orderby=date&per_page=5) and gets exactly five. With files there is nobody to ask, so the agent reads the header of all 30 files (title, date, category) and sorts them itself. At 30 posts that is a small tax. At 3,000 it would not be, and we did not test that scale.
Could the agents find posts by what they are about?
We also tested how well each setup searches, and we picked the hard kind: semantic search, where the agent has to find posts by what they are about. A category or tag filter cannot do that. The prompt read like this: “Find every post on the blog that discusses website or application security in a meaningful way”. We used three topics: security, accessibility, and how a client stays independent of their agency. Each one spans several categories, and 9 of the 11 right posts did not have the topic in their title or tags.
Security shows the problem well. The word “security” appears in 7 posts, but only 4 of them are right answers. The fifth right answer, a post about RAG with a section on access control, never uses the word at all.

After the first five runs on the security topic, Markdown looked like the weaker searcher: it had missed one post. With 10 runs on each topic, that proved to be noise. The access model made no difference to accuracy. REST and MCP were right in 29 of 30 runs, MCP with direct tools in 30 of 30, and Markdown in 29 of 30. In all 120 runs, no agent listed a post that did not belong. All three misses were that same RAG post, missed once in three different environments. It was the hard case, whichever way the agent reached it. Markdown was also the cheapest in all three topics, so despite that first-round miss, we think it is the best option for this kind of search on a blog this size.
One detail I found interesting: in 90 search runs against WordPress, no agent ever used WordPress’s built-in search (search=). With 30 posts it was always cheaper to download everything and filter it. On a large site that choice would flip, and that is exactly the scale we did not measure.
The “Uncategorized” story: where validation lives
One task was designed to conflict with the blog’s rules, and its result has nothing to do with REST versus MCP. The agent’s instructions in every environment said that every post belongs to one of four categories. The prompt said: “Publish a new post titled ‘We Are Hiring a Senior Frontend Developer’ with this body text: […] Do not assign a category to it.”
The right move is to stop and flag the conflict. Here is what happened:
| Environment | What the agent did |
|---|---|
| Markdown (Astro schema) | 5/5 did not publish. The build would have failed on the schema, so the agent explained the conflict and proposed options. |
| WordPress via REST API and MCP | 13/15 published with “Uncategorized” and flagged the conflict only afterwards. 2/15 saved a draft instead. |
At five runs each, the split between REST and MCP inside WordPress is noise. What matters is what the CMS did. WordPress assigns the default category by design and reports success. The request is accepted, the post goes live, and the agent only learns about it if it checks its own work afterwards. A CMS that enforces the category as a required field would have rejected the request, and REST and MCP would have looked like Markdown.
You can make WordPress stricter with a few lines of code (a validation hook) or a plugin, but this check is not there by default, and the agent has no way of knowing it is missing. The simplest gate needs no code: give the agent an account with the Contributor role. A contributor can write posts but not publish them, so nothing the agent writes goes live until a person approves it. We did not test that setup.
To be fair, the Markdown setup did not get this check for free either. We wrote the schema that makes the category required, the same way you could add a hook or a plugin to WordPress. So the result says less about Markdown versus WordPress than about having a check at all: one setup checked the rule before publishing, and the other did not. In our Markdown setup, the site build checks every post against the schema, so a post that breaks a rule stops the build instead of going live. Whatever you run, give the agent a check like that before anything is published. For teams handing editorial work to agents, I think this matters more than the cost numbers. Cost is a budget line. A post that goes live in the wrong category is a Monday morning problem.
What did we not measure?
Before you quote any of this, here is what limits it:
- One model. Claude Opus 5.5 in Claude Code (versions 2.1.331 and 2.1.332). We repeated the MCP runs on the newer version as a check, and all 12 tasks stayed within the original range, but a different model family could behave differently.
- A small blog. 30 posts. With thousands, listing posts through MCP and reading every file would both get slower and more expensive than a filtered REST request, and search would need a proper index. Do not apply these numbers to large sites or stores.
- Only WordPress. We tested MCP on one CMS, and each CMS adds MCP in its own way. The numbers for another CMS could look quite different.
- The MCP actions are ours. We built them for this test, because WordPress ships none that create or edit posts, and they do exactly what the REST API does. Tools built around whole tasks could do much better.
- Local infrastructure. WordPress ran in Docker on the same machine as the agent, so it answered faster than real hosting would. That is why this post leaves the timings aside.
- The judge is from the same model family as the agent. It never knew which environment it was scoring, and every score sits next to the script check’s pass or fail.
What should you take from this?
Even with those limits, this is what I would take from it:
-
Before you pick a tool, ask where the content gets processed. If every read and write passes through the model, you pay for it on every task.
-
If you put MCP on WordPress, give the agent tools built around whole tasks, which do the bulk work on the server.
-
Put validation before publication. A schema checked at build time stopped the only dangerous task every time. That is a property of where the schema lives, not of the protocol.
-
For blogs and company sites, Markdown in a repo is a serious option. It was the cheapest and most reliable here, and its weak spot, sorted and filtered listings, grows with scale.
Edit: We talked about this in the office afterwards, and it seems a sensible folder structure and consistent file names would solve this weak spot. For example, with posts kept in folders by date and the category in each file name, the agent could list the newest posts or one category’s posts from the file names alone, without reading every file.
Next on our list: the same tests on a second model, a blog with thousands of posts, MCP tools that do bulk work on the server, and a second CMS so MCP is not represented by WordPress alone.
We are also taking a closer look at Cloudflare’s Code Mode. In Code Mode, the agent writes code that calls the MCP tools, and only the final result reaches the model, so whole posts would no longer have to pass through it. It is an interesting idea, and it looks like it could solve the MCP cost problem we measured.
If you want to add agentic workflows to how you run your website, talk to us. We will help you choose the setup that works best for you.