Paperboy CMS
OfficialPaperboy CMS MCP server lets an authorized user or agent manage multi-site, multilingual content through role-scoped tools.
Browse the page tree and list pages, shared blocks, globals, trash, content types, sites, locales, and media.
Read, create, update, and set individual fields on page, block, or global drafts, including long text safely.
Publish immediately or schedule/unpublish/expire content, with language-mismatch and type guards.
Copy content to another locale, duplicate items, move pages in the tree, discard drafts, and trash/restore items.
View version history and roll back drafts to prior versions.
Manage media: list assets, edit alt text, delete assets, search/import stock images, upload from URLs/base64/local files via temporary upload links.
Use the writing assistant for SEO, summaries, rewrites, translations, variants, drafts, and schema suggestions (not image alt text).
Respect Paperboy permissions, site scoping, reviews, and versioning.
The Astro starter is the frontend the CMS serves: content managed through the MCP tools is delivered to an Astro site via the typed delivery API and @paperboycms/client, with on-page visual editing bridged by @paperboycms/preview.
Alternative AI provider for the ai_assist tool — any OpenAI-compatible endpoint can be configured in Settings → AI to perform editorial tasks such as meta generation, summarization, translation, rewriting and schema.org field suggestions.
The MCP-first headless CMS. Point Claude, Cursor or any MCP client at Paperboy and it can build pages, translate them, fix SEO, migrate redirects and publish on a schedule — as a real user, with that user's permissions, through the same validation and audit trail as your editors. Then open the admin: a visual editor where you click any text on your live site and change it.
Agents do the volume. People decide what goes live. Self-hosted, MIT, one container and a Postgres.
Paperboy ONE — Open, No Extras. · DPX — Don't Pay eXtra. A proper headless CMS without the "experience platform" invoice.
The website you build on is a separate repo, the Astro starter.
Two front doors, one CMS
Your agent (MCP) | Your editors (admin) | |
Gets in with | OAuth sign-in with a Paperboy login (2FA included) or a site-scoped token | Password, or email + TOTP code once 2FA is on |
Sees | Only the tools its role can use — an Author is never offered publish, users or webhooks | Only the sections and actions its role allows |
Writes through | The same Zod validation, RBAC and audit log — parity is test-enforced | ← same |
Is recorded as |
|
|
Related MCP server: agent-cms
Connect your agent
In Claude or Cursor, add
https://<your-domain>/mcpas a connector.Sign in with your Paperboy login and pick which site it may work in.
Ask for something real:
"Write a post about our summer opening hours in Norwegian, put it under Blog, and schedule it for Monday 09:00."
"Here are 40 URLs from our old WordPress sitemap. Redirect each to the matching page and check every one lands in one hop."
"Create an FAQ page type and fill it from this document."
"Which pages are missing a meta description? Draft them, don't publish."
"Who changed the home page last week, and what did they change?"
"Export this month's contact-form submissions."
Running locally? An admin mints a token in Settings → Agent access and use stdio — see MCP setup.
Why "MCP-first" means more than an MCP server
Every rule below exists because a real agent run broke without it.
You decide how much to trust it. Every version records whether a person or an agent wrote it, and agent drafts are badged Agent edited. Switch on agent review (Settings → Agent access) and agent drafts become Needs review: the agent can still write, but nothing goes live until a person approves.
Nothing an agent does is permanent by accident. Full version history, a trash with restore, drafts by default, scheduled publishing instead of fake dates in a field.
Errors teach instead of fail. A bad write is refused with the field name, the expected JSON shape and a copyable example, so the agent fixes it in one step. Paperboy never "succeeds" with mangled data — that once sent an agent into a nine-attempt loop.
Guard rails for agent-typical mistakes. Norwegian text can't silently land on the English branch. A blog post created at the root gets told where it belongs. Updates merge instead of wiping fields.
Long text survives the trip.
set_fieldtakes one flat string, because some clients mangle long strings nested in JSON.Files from the agent's own machine.
create_upload_linkgives the agent a 15-minute upload URL; no base64 through the context window.Tested the way agents use it. CI drives the real MCP server through editorial tasks — a deterministic driver on every push, a real model every week — and tool descriptions are graded publicly (the Glama badge above). The full rules are in
CLAUDE.md.
Where to start****Where to start
You want to… | Go to |
Connect an AI agent | |
Try it in five minutes | |
Build a website on it | Astro starter, or any framework with |
Run it for real | |
Work on the CMS itself |
See it
Click any text on your page and edit it right there. The preview is your real frontend, not a mock-up, and it updates as you type.
Your site stays yours. This is the Astro starter's demo site, every page of it built through the Management API. One command runs it with the CMS: docker compose -f docker-compose.demo.yml up -d --build.
Highlights
Built for agents
MCP server — OAuth 2.1 sign-in or site-scoped tokens; acts as a user and lists only the tools that user's role can use. See why MCP-first.
Secure by default — Argon2id, server-side sessions, CSRF, TOTP 2FA, deny-by-default RBAC with object-level scopes, append-only audit log.
Typed client SDK —
@paperboycms/client, typed from the same Zod schemas the server serializes with. No codegen.
Content
Content types are data — pages, blocks and globals are defined in the admin, not in code. Content areas hold inline or shared blocks; a built-in template library covers the essentials.
Multisite — several sites in one instance, each with its own delivery keys, media, preview URL and start page. Types, languages and users are shared.
Multi-language with a fallback chain, hierarchical URLs from the page tree, version history, trash. Translation gaps show in the tree and on the dashboard.
Forms with submissions in your database — a form is content. Delivery ships it as a schema, submissions are validated server-side against the published form, and errors come back per field. Spam checks on by default, retention runs, erase-by-email is one audited action. One spread makes a form a WebMCP tool for in-browser agents.
A/B experiments — test a content area of a page against up to three other versions. The frontend picks a version server-side (no flicker), counts are stored per day with no visitor data, cookieless by default, and no winner is named before the planned sample size. The winner becomes the area's draft.
Delivery
One read path, no leaks — public keys see published content, preview keys see drafts, private fields never serialize. Lists filter, sort, paginate and search; every item carries
fieldTypesso frontends switch on schema.SEO and structured data computed by the CMS — meta, canonical, OpenGraph, Twitter and JSON-LD (Organization, breadcrumbs, FAQ Question/Answer,
dateModified) on every page. Preview is alwaysnoindex.Public files generated from content — robots.txt, sitemap.xml, llms.txt and security.txt.
Redirects that keep link equity — a rename or move records a 301 on publish. The frontend matches one manifest with
matchRedirect; a 404 log shows what visitors miss.Image transforms —
?w=800&format=webp&q=75on any media URL, generated once and cached.Webhooks — HMAC-signed
content.published,form.submittedanddelivery.changedfor every move, sort or settings change, so a cache can purge on webhooks alone.
Editing
Visual on-page editing — click an element in the preview to edit its field, drag blocks onto the page, cross-origin included. The bridge is
@paperboycms/preview.Admin — React 19, light/dark, ⌘K palette, keyboard-operable drag-drop, axe-clean. The dashboard deep-links gaps, missing alt text and unused blocks.
AI writing assistant (optional; Anthropic or any OpenAI-compatible endpoint) — improve, rewrite, translate, alt text from the image, schema.org suggestions. With no key it refuses instead of faking output.
How it compares
What ships in the box as of 2026-10-17. core = built in · plugin · paid · no. Every cell is sourced in docs/comparison-sources.md; corrections welcome.
Paperboy | Strapi | Payload | Directus | Sanity | |
License | MIT | MIT + paid tiers | MIT | source-available | closed backend |
Self-host | one image | Node app | your Next.js app | one image | no |
Forms, validated server-side | core | plugin | plugin, partial | no | no |
SEO meta + JSON-LD from the CMS | core | plugin, no JSON-LD | plugin, no JSON-LD | plugin, no JSON-LD | no |
Auto 301 on rename | core | plugin | plugin, manual | no | DIY |
MCP server acting as a user | core | core | plugin (beta) | core | core |
Multisite | core | no | plugin | pattern | datasets |
Click-to-edit on the live page | core | paid | soon | core | core |
GraphQL | no | plugin | core | core | core |
Hosted option | no | paid | paused | paid | yes |
Ecosystem | none yet | large | growing | growing | large |
Quickstart
1. Run the CMS (Docker):
./scripts/setup.sh # writes .env with unique secrets and your admin password — required
docker compose up -d # db → init (migrate + seed) → api, which also serves the admin
# Admin http://localhost:8090 API http://localhost:8091 (OpenAPI UI at /api/docs)setup.sh is safe to re-run and never overwrites .env. Paperboy refuses to boot on the
placeholder secrets in this repo and refuses to seed production with the published demo login.
2. Run the website. The Astro starter renders every built-in content type and is where your site lives:
git clone https://github.com/hybriden/paperboy-astro-starter my-site
cd my-site && npm install && npm run setup && npm run dev # http://localhost:4321The admin's side-by-side preview points at http://localhost:4321 by default. apps/web in this
repo is a Next.js contract reference, not a site to build on; it is opt-in
(docker compose --profile web up -d web, :8092).
🪟 Windows, no experience needed
Install Docker Desktop, restart if asked, open it and wait for Engine running.
Download Paperboy: GitHub → green Code button → Download ZIP → right-click → Extract All….
Open a terminal there: open the extracted folder in File Explorer, type
powershellin the address bar, press Enter.Create your login (required; it gives your copy its own private keys):
powershell -ExecutionPolicy Bypass -File .\scripts\setup.ps1It prints an email and password. Save them now, they cannot be shown again.
Start it:
docker compose up -d(the first run downloads for a few minutes).Open http://localhost:8090 and log in.
Everyday: docker compose stop / docker compose start / docker compose ps.
⚠️ Never run
docker compose down -vonce you have content:-vdeletes the database. If a page won't load, check that Docker Desktop says Engine running.
Production
The generated .env targets localhost. Before exposing a real host set COOKIE_SECURE=true, drop
ALLOW_INSECURE_COOKIES, and point CORS_ORIGIN at the admin's HTTPS origin. Redeploy one service
with docker compose up -d --no-deps --force-recreate <svc>; the seed refuses to wipe a database that
holds content unless FORCE_SEED=1. The deploy-safety rules are in CLAUDE.md.
Without a VM. One container, no proxy: it fits any "run a container" platform (App Service, Container Apps, Cloud Run, Fly, Render, Railway) plus a managed Postgres.
Setting | Value |
Image |
|
Port | the platform's |
|
|
Secrets |
|
| the admin's HTTPS origin, with |
| the load-balancer range, so rate limits see real IPs; include your frontend's address if it forwards visitors' ( |
| delivery reads per route per minute from one address (default 6000); your frontend's server is one address |
Storage | a persistent volume at |
Remote MCP |
|
Run one replica: rate limits and the publish/retention timers are in-process. Migrations run on
boot. Create the first admin by running the image once with pnpm --filter @paperboy/db seed and real
SEED_ADMIN_EMAIL, SEED_ADMIN_PASSWORD, PAPERBOY_PUBLIC_KEY, PAPERBOY_PREVIEW_KEY.
Without a Postgres server. For a demo or a small site, DATABASE_URL=pglite:///data/db runs
Postgres inside the container (PGlite, the same schema and migrations) with the
database in a folder. Seeded on first boot, never reseeded:
docker run -d -p 8090:8091 -v paperboy:/data \
-e DATABASE_URL=pglite:///data/db -e UPLOADS_DIR=/data/uploads \
-e SESSION_SECRET=$(openssl rand -hex 32) -e CSRF_SECRET=$(openssl rand -hex 32) \
-e COOKIE_SECURE=false -e ALLOW_INSECURE_COOKIES=true -e ALLOW_DEMO_CREDENTIALS=true \
ghcr.io/hybriden/paperboy-app # http://localhost:8090, admin@paperboy.test / Admin!Passw0rdThat is a localhost demo. Exposed, use HTTPS settings and real seed values as below. It is one
Postgres session, so writes queue: fine for a small site, not for heavy traffic. Expect ~0.5 GB of
memory. Back it up with ops/backup-pglite.sh, which stops the container for a few seconds, archives the volume and starts it again.
Accounts. Your admin login is what setup.sh printed. The demo logins (editor@, author@,
viewer@, passwords <Role>!Passw0rd) are development fixtures: a production seed creates only the
admin unless ALLOW_DEMO_CREDENTIALS=true.
Backups
Nothing backs itself up. ops/backup.sh is a working reference: nightly pg_dump
plus a tar of the uploads volume, 14-day rotation, alert on failure. It refuses to succeed with an
empty media archive and writes mode-600 files, because a backup is a full credential dump and,
once you have forms, visitor personal data. Cron lines and the restore procedure are in
ops/README.md. Known gap: backups land on the same disk as the data; add one
rclone copy line once you have a bucket.
MCP setup
Remote clients (Streamable HTTP). Start the MCP container; the api forwards /mcp to it, so
clients use the admin's own domain:
docker compose --profile mcp up -d --no-deps mcp # → https://<your-domain>/mcpOn a one-container host, set MCP_EMBEDDED=true on the api instead and it serves the MCP itself.
Local clients (stdio). The client starts the server, so this goes in its config, not a terminal.
An admin mints a token in Settings → Agent access and point -C at your Paperboy checkout (after pnpm install):
{
"mcpServers": {
"paperboy": {
"command": "pnpm",
"args": ["-s", "-C", "/path/to/paperboy", "--filter", "@paperboy/mcp", "start"],
"env": {
"MCP_TOKEN": "mcp_…",
"DATABASE_URL": "postgresql://paperboy:paperboy@localhost:5433/paperboy"
}
}
}
}Keep -s: without it pnpm prints its script banner to stdout, which corrupts the stdio protocol.
The MCP acts as a Paperboy user and inherits its permissions. Tokens are minted per site (or for
every site); PAPERBOY_SITE pins a server to one site, and every per-site tool also takes a per-call site.
Toolsets. A connection lists the content tools by default (writing, editing, publishing,
media). The rest is opt-in, so an agent writing a page isn't choosing among user and webhook tools:
Toolset | For |
| pages, blocks, globals, versions, trash, media, the writing assistant |
| what the public website receives (published output, search) |
| content types and type templates |
| redirect rules and the 404 log |
| A/B tests of a page's content area: set up, start, pause, read results, end |
| form submissions (export, erasure) |
| users, delivery keys, webhooks, audit log, start page |
Pick them with PAPERBOY_TOOLSETS=content,redirects on the server (in .env with Docker Compose), or per connection on the URL:
https://<your-domain>/mcp?toolsets=content,redirects (all lists everything). Your role still
decides what you may do; a tool outside the chosen toolsets answers with how to enable it.
OAuth for remote clients. Add https://<your-domain>/mcp as a connector in Claude or Cursor. The
client registers itself, sends you through Paperboy's own login (with 2FA), and a consent screen asks
which site the connection may work in. Revoke it in Settings → Connected apps. One domain is enough:
the API forwards /mcp and serves /.well-known/oauth-*. For other layouts set PUBLIC_URL (the
issuer, default CORS_ORIGIN) and MCP_PUBLIC_URL (default {PUBLIC_URL}/mcp) on both api and mcp.
Files from the agent's machine. create_upload_link mints a 15-minute link the agent curls files
to (POST /api/v1/uploads, 20 files of 5 MB per request). upload_asset takes a public URL or base64.
The npm packages
Frontends integrate against these two packages, not the CMS codebase. Both are versioned independently.
@paperboycms/client — dependency-free, typed end to end:
import { createClient, mediaUrl } from "@paperboycms/client";
const cms = createClient({ baseUrl: "https://cms.example.com", key: process.env.PAPERBOY_PUBLIC_KEY! });
const post = await cms.getBySlug<BlogPost>("hello-world", { locale: "en" });
const { items } = await cms.list<BlogPost>("BlogPost", { sort: "-data.publishDate", limit: 10 });
const src = post?.data.image && mediaUrl(post.data.image.url, { w: 640, format: "webp" }); // image fields arrive as {url, alt, …}Also getByPath, startPage, global, search, render helpers that follow fieldTypes,
matchRedirect, applyExperiments for A/B tests, formToolAttrs for WebMCP forms,
preview-token verification and an optional ETag cache. 404s return null, other
errors throw PaperboyError. Full README.
@paperboycms/preview — zero-dependency bridge that makes any frontend
editable inside the admin's preview. Call initPreviewBridge() in preview mode and mark the DOM with
data-pb-field, data-pb-area and data-pb-block-index (or let the client's pbAreaAttrs emit
them). Full README.
Developing
apps/api Fastify v5 — Management API (auth/RBAC) + Delivery API (read-only, key-scoped); serves the admin
apps/admin React 19 + Vite — the editor
apps/web Next.js 15 — reference frontend, pins the delivery contract (opt-in)
apps/mcp MCP server (stdio or Streamable HTTP)
packages/shared Zod schemas + types (single source of truth) + the AI provider
packages/db Drizzle schema, migrations, query layer (object-level authz), seed
packages/client @paperboycms/client — typed Delivery API SDK (npm)
packages/preview @paperboycms/preview — on-page-editing bridge (npm)pnpm install
docker compose up -d db
export DATABASE_URL=postgresql://paperboy:paperboy@localhost:5433/paperboy
export UPLOADS_DIR=$PWD/.uploads # the default, /app/uploads, is the container path
pnpm db:seed
pnpm dev # api :8091, admin :8090, web :8092 (mcp waits for MCP_TOKEN)
pnpm --filter @paperboy/api test # integration tests against a real Postgres
pnpm --filter @paperboy/admin test:e2e # Playwright e2e + axeCI also runs the MCP usability eval (evals/) on every push with a deterministic mock driver and
weekly with a real model. Rules of the road: CONTRIBUTING.md. Everything about
deploy safety, auth, the content model and the incidents behind each rule: CLAUDE.md.
Stack choices: STACK.md. Research behind the bigger features: docs/plans/.
Vulnerabilities: SECURITY.md.
License
MIT — Don't Pay eXtra. 📰
Available Tools
25 toolsassist_writingARead-only
Run the CMS's writing assistant on a piece of text: SEO titles and descriptions, summaries, polishing, rewrites, variants, translation, drafting from a brief, schema.org field suggestions. Returns {result, provider}: result is the text (for variants, a JSON array of 3 strings). It saves nothing — write the result with set_field or update_content. It uses the model set in Settings → AI provider; without one, only meta_title, meta_description and summarize work (by truncation) and the rest are refused with a hint. It cannot write image alt text, since it never sees the image: write that yourself and save it with update_asset_alt. Requires the content.update permission (Admin, Editor, Author — an Author only within their own sections).
Inputs: task (required), input (required), targetLocale.
copy_variantADestructive
Copy a document's working version (name, slug and EVERY field) from one locale to another, server-side and atomically. USE THIS to move content that landed in the wrong language branch — re-typing it field by field loses fields. It REPLACES the target locale's draft (its unpublished edits are lost; its published version stays live until you publish_content the copy). The text is copied as-is: to translate it afterwards, run assist_writing {task:'translate'} and save with set_field. Returns the target locale's new draft in the get_content shape. To copy into a NEW item instead, use duplicate_content. Requires the content.update permission (Admin, Editor, Author — an Author only within their own sections).
Inputs: toLocale (required), documentId (required), fromLocale (required), site.
create_contentA
Create a new content item (page, block or global) as an unpublished draft, filled in ONE call: pass its fields in data (shapes from list_content_types {name}). Without data you get an empty shell that stays blank until update_content/set_field fills it. A page's position decides its URL and the template that renders it, so find the right parentId with list_tree (blog posts go under their blog page); omit it only for top-level sections. Under a list page, omit type to inherit the type it lists — a mismatch is refused, since the item would never appear on that list. Returns the new item in the get_content shape (documentId, locale, revision, data…), plus a hint when it still needs filling or placing. Then publish_content. To copy an existing item instead, use duplicate_content. Requires the content.create permission (Admin, Editor, Author — an Author only within their own sections).
Inputs: name (required), data, site, slug, +5 more.
create_upload_linkA
Get a 15-minute link for uploading LOCAL files (images, PDFs) into the media library — the way to upload files on your own machine, which this server can't read. POST them as multipart/form-data with the returned header, e.g. with curl (several -F file=@… per request is fine). The response lists each stored asset's documentId: set it on an image field with set_field, and give it alt text with update_asset_alt. The link uploads as you, into this site (pass site to upload into another), and expires after 15 minutes. Returns {uploadUrl, headers, expiresAt, example, limits}: PNG, JPEG, GIF, WEBP or PDF, max 5 MB per file, up to 20 files per request. Refused when the server has no PUBLIC_URL configured — then use upload_asset with dataBase64. For a file at a public URL, or a stock photo, use upload_asset instead. Requires the content.create permission (Admin, Editor, Author — an Author only within their own sections).
Inputs: site.
delete_assetADestructive
Permanently delete a media asset — by the asset's documentId from list_assets, not a page's — removing the database row and the stored file. Irreversible. Content that still points at it is not blocked: delivery resolves those fields to null, so the image silently disappears from those pages — clear or replace them first. To stop using an image on one page, just clear that field with set_field and keep the asset. Returns {ok:true}. Requires the content.delete permission (Admin, Editor).
Inputs: documentId (required), site.
discard_draftADestructive
Throw away the unpublished draft changes of one item (documentId) in one locale (omitted: the item's own language), so the working version falls back to the published one. The live site is unchanged; the discarded draft cannot be recovered. Refused for content that was never published (there is nothing to fall back to) — use trash_content to remove that instead. To roll back to an older version rather than the live one, use restore_version. Returns {ok:true}. Requires the content.update permission (Admin, Editor, Author — an Author only within their own sections).
Inputs: documentId (required), site, locale.
duplicate_contentA
Copy a content item into a NEW unpublished document beside the original (same parent), named " (copy)", with every field of each locale's working version. A copied page gets a fresh slug, so it never collides with the original's URL. Children are not copied. locale only picks which language of the copy comes back. Returns the new item in the get_content shape; edit it, then publish_content. To copy one language into another locale of the SAME item use copy_variant; to start from nothing use create_content. Requires the content.create permission (Admin, Editor, Author — an Author only within their own sections).
Inputs: documentId (required), site, locale.
get_contentARead-only
Read one content item for editing: its working version (the draft if one exists, else the published version) in one locale, with name, slug, status, revision and the full data field map. Read this before update_content so you merge into current values, and pass its revision when replacing with merge:false. data maps each field name to its value in the shape list_content_types reports (valueFormat). An unknown documentId, or one from another site, is refused as not found (pass site for another site); omit locale for the item's own language. This is the editing view; for the public view (published only, private fields removed) use delivery_get, in the delivery toolset. Requires the content.read permission (Admin, Editor, Author, Viewer — an Author only within their own sections).
Inputs: documentId (required), site, locale.
list_assetsARead-only
List this site's whole media library (images and PDFs), newest first, in one call (no paging, so a big library is a big response): each asset's documentId, filename, mime, size, public url, alt text, attribution for stock imports, and folder. Media is per site: pass site to see another site's library. An empty library gives []. Use it to reuse an existing image: an image field stores the asset's documentId, set with set_field. To add a new file use upload_asset (URL, base64 or stock photo) or create_upload_link (files on your machine). Requires the content.read permission (Admin, Editor, Author, Viewer — an Author only within their own sections).
Inputs: site.
list_contentARead-only
List EVERY item of one kind in this site that you can see, as one flat array (documentId, name, type, per-locale status, plus parentId for pages and folderId for blocks) — no tree walking needed. kind 'page': pages, to find one by name or pick a parent/reference target (list_tree shows one level in display order). kind 'block': SHARED blocks — reusable block documents (banners, forms, CTAs…) that pages place by reference, so one edit updates every page using them; inline blocks live inside a page's data and are not listed. kind 'global': singletons (header, footer, site settings…), which are neither in the page tree nor blocks, so this is the only way to enumerate them. kind 'trash': items removed with trash_content (any kind), newest first, with deletedAt; nothing is purged automatically, and restore_content brings one back. Everything comes back in one call (no paging). Edit any of them with get_content/update_content on its documentId. Requires the content.read permission (Admin, Editor, Author, Viewer — an Author only within their own sections).
Inputs: kind (required), site.
list_content_typesARead-only
Read the content model of a site: the types every site shares plus the site's own (siteId null = shared). Pass name to get ONE type's definition — name, kind, displayName, schemaType and fields (name, type, required, options, allowed blocks of a content area…); an unknown name is refused with the list of real names. Call this before writing content of a type. Each field carries valueFormat + valueExample: the exact JSON shape create_content/update_content expect. These are LIVE types editors fill in; reusable type recipes (templates) live in the schema toolset. Omit name to get every full definition, which is large, so prefer name. Requires the content.read permission (Admin, Editor, Author, Viewer — an Author only within their own sections).
Inputs: name, site.
list_sitesARead-only
Report where this server acts and in which languages. Returns: sites (every site you can reach: id, slug, name), activeSiteId, tokenScopedTo (the one site your token is limited to, or null), activeSite (startPageId — the page served at /, or null — and previewBaseUrl, where the admin previews a page as {previewBaseUrl}/{locale}{urlPath}), and locales (enabled language branches in order: code, displayName, isDefault, fallback). It lists no content (use list_tree or list_content for that). Use it to pick the locale matching the language you write, so text lands in the right branch, and a slug to pass as site to other tools (pass site here too to see that site's setup). Content in another site is invisible to every tool, so an empty tree or search usually means the wrong site, not missing content. Requires the content.read permission (Admin, Editor, Author, Viewer — an Author only within their own sections).
Inputs: site.
list_treeARead-only
List ONE level of the page tree: the direct children of parentId, or the top-level pages when it is omitted, in the order the container sorts them, the whole level in one call. Returns an array of nodes, each with documentId, type, name, per-locale status and hasChildren — call list_tree again with a node's documentId to go deeper. Trashed pages are left out, and a page without children (or a parentId that matches nothing) gives [] rather than an error, so check hasChildren first. Use it to find the parentId for create_content/move_content. For every page at once use list_content {kind:'page'}; shared blocks and globals are not in the tree (list_content with kind block or global). Requires the content.read permission (Admin, Editor, Author, Viewer — an Author only within their own sections).
Inputs: site, parentId.
list_versionsARead-only
List a content item's version history in one locale, newest first and complete (no paging); locale picks the language branch (omitted: the item's own). Each version's id, versionNumber, status, whether it is the live one, name, and who created it when. An unknown documentId is refused as not found. Use it to find what to roll back to — pass a version's id (not its versionNumber) to restore_version. For the current draft itself, use get_content. Requires the content.read permission (Admin, Editor, Author, Viewer — an Author only within their own sections).
Inputs: documentId (required), site, locale.
move_contentAIdempotent
Move a page in the page tree: parentId re-parents it (its URL path follows its new position, and the old URL gets a 301 automatically), beforeId/afterId place it among its siblings. Its whole subtree moves with it. Refused when the new parent is the page itself, is not a page, or lies outside your sections. Sibling order only sticks under a parent with a manual child sort; a computed sort (name, date…) re-orders it. Returns {ok:true}. To change only the URL's last segment, set a new slug with update_content instead; blocks and globals are not in the tree. Requires the content.update permission (Admin, Editor, Author — an Author only within their own sections).
Inputs: documentId (required), site, afterId, beforeId, +1 more.
publish_contentA
Make a content item's working draft live in one locale (a LANGUAGE BRANCH: Norwegian text published into 'en' lands on the English site, so a clear mismatch is refused). A future publishAt SCHEDULES it instead: it stays invisible until then; call again with a new publishAt to reschedule, or without one to go live now. expireAt unpublishes it automatically later. Never fake a schedule with a date field — that publishes now. A changed slug or position gets a 301 from the old URL. Fires content.published. Refused when there is nothing new to publish, when required fields are empty (the error names them), or, if the site requires human review of agent drafts, until an editor approves it. Returns the item in the get_content shape with its new status. To take it down use unpublish_content; to drop unpublished edits, discard_draft.
Inputs: documentId (required), site, locale, expireAt, +2 more.
restore_contentA
Bring a trashed item back to its old place in the tree, together with the descendants that were trashed with it. Restored content is NOT republished — call publish_content for each locale that should go live. Refused if its parent is still in the trash (restore that first) or a live sibling took its URL meanwhile. There is no locale to pass: every language comes back. Returns {restored: }. Find trashed ids with list_content {kind:'trash'}. To roll back an item that is not trashed, use restore_version instead. Requires the content.delete permission (Admin, Editor).
Inputs: documentId (required), site.
restore_versionADestructive
Roll back an item to an older version: copy that version's name, slug and fields into the working draft of one locale. versionId is the version's id from list_versions of the SAME locale, not its versionNumber. It REPLACES the current draft of that locale, so unpublished edits there are lost; published versions stay in the history (a rollback can itself be rolled back), and nothing goes live until you publish_content. Returns the new draft in the get_content shape. To bring back a TRASHED item use restore_content; to simply drop unpublished edits use discard_draft. Requires the content.update permission (Admin, Editor, Author — an Author only within their own sections).
Inputs: versionId (required), documentId (required), site, locale.
search_stock_imagesARead-only
Search the configured stock photo provider (Settings → Stock images; Unsplash) for photos to use on a page. Returns up to 24 candidates, best match first, each with id, description and attribution; nothing is stored yet. To USE one: upload_asset {stockImageId: } imports it into the media library, then set_field the returned asset documentId on an image field. Refused with a hint when no provider key is configured. To reuse a photo you already have, list_assets. Requires the content.read permission (Admin, Editor, Author, Viewer — an Author only within their own sections).
Inputs: query (required), site.
set_fieldAIdempotent
Write ONE field of an item's draft as a plain string; the other fields are kept. It is the safest way to send long text or Markdown, because a flat string survives client serialization that can mangle long strings nested in update_content's data. field is a text, markdown, select, datetime or image field from list_content_types {name} (an image takes an asset documentId), or name for the item's display name; value is the field's whole new value. For richtext, contentArea or reference fields, or several fields at once, use update_content. A value the field can't take is refused with the expected shape and an example; text in another language than the locale branch is refused unless allowLanguageMismatch. Like any agent edit, it cancels a pending scheduled publish. Returns the saved draft in the get_content shape; publish_content separately. Requires the content.update permission (Admin, Editor, Author — an Author only within their own sections).
Inputs: field (required), value (required), documentId (required), site, +2 more.
trash_contentA
Move a content item (by documentId) AND its whole page subtree to the trash: every locale is unpublished at once and disappears from delivery, so there is no locale to pass. Recoverable — restore_content brings it back (as drafts; publish again explicitly). An unknown documentId is refused as not found. Returns {trashed: }. To only take it off the live site, use unpublish_content instead. Requires the content.delete permission (Admin, Editor).
Inputs: documentId (required), site.
unpublish_contentADestructive
Take a content item off the live site in one locale: delivery stops serving it there (its URL starts answering 404) and content areas that reference it drop it. Fires the content.unpublished webhook. The content and its version history are kept, so publish_content brings it back. Name the item by documentId and the branch by locale (omit it for the item's own language); other locales are unaffected. Returns the item in the get_content shape, now unpublished in that locale. To remove the item entirely use trash_content. Requires the content.publish permission (Admin, Editor).
Inputs: documentId (required), site, locale.
update_asset_altAIdempotent
Set (overwrite) an image asset's alt text — the description screen readers announce and search engines index. Alt text belongs to the ASSET, not to a page: every page showing the image picks up the change, and set_field/update_content cannot set it. documentId is the asset's (from list_assets or an upload), not a page's; an unknown one is refused as not found. Describe what the image shows in one sentence; use "" only for a purely decorative image. Returns the updated asset with its new alt. assist_writing cannot write alt text (it needs the image itself), so look at the image and write it. Requires the content.update permission (Admin, Editor, Author — an Author only within their own sections).
Inputs: alt (required), documentId (required), site.
update_contentAIdempotent
Save fields into a content item's working draft; nothing goes live until publish_content. Each value's shape follows its field type (list_content_types {name} gives valueFormat): text/markdown → string; richtext → TipTap doc {type:'doc',content:[…]}; contentArea → array of block instances; reference → {documentId}; image → asset documentId. data is MERGED over the draft by default, so omitted fields are kept; merge:false replaces the whole map (send every required field, and the get_content revision so a concurrent human edit is refused with 409 instead of overwritten). For one LONG text/markdown value use set_field: nested long strings can be mangled in transit. A value of the wrong shape is refused with the field, the expected shape and an example; text in another language than the branch is refused unless allowLanguageMismatch. An agent's edit marks the draft for review and cancels a pending scheduled publish of it. Returns the saved draft in the get_content shape, with its new revision. Requires the content.update permission (Admin, Editor, Author — an Author only within their own sections).
Inputs: data (required), documentId (required), name, site, +6 more.
upload_assetA
Add a file (PNG, JPEG, GIF, WEBP or PDF, max 5 MB) to the media library from exactly one source: a public URL, base64 bytes, or a stock photo id from search_stock_images (stored with its attribution). Returns the new asset — set its documentId on an image field with set_field. Each call stores a NEW asset, even for a file already in the library (reuse one via list_assets). A URL must be publicly reachable: private-network addresses are refused at every redirect hop, and a download over 5 MB is cut off with an error. For files on YOUR machine prefer create_upload_link: base64 through a tool call costs roughly 1 token per 2-3 bytes. Requires the content.create permission (Admin, Editor, Author — an Author only within their own sections).
Inputs: alt, url, site, filename, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
Each tool targets a distinct resource+action, and near-pairs are explicitly cross-referenced (copy_variant vs duplicate_content, restore_version vs restore_content, update_content vs set_field, list_tree vs list_content vs get_content). With 25 tools there are a few pairs an agent must read carefully (restore_content/restore_version, unpublish vs trash vs discard_draft), but descriptions resolve them well.
Consistent snake_case verb_noun pattern throughout: list_*, get_*, create_*, update_*, publish_content, move_content, trash_content, upload_asset, delete_asset. The only slight outlier is assist_writing, which still fits the verb_noun convention.
The domain genuinely spans content CRUD, publishing lifecycle, versioning, page tree, media, stock search, and site/locale setup, so nearly every tool earns its place. Still, 25 tools is at the heavy end and strains an agent's context and selection reliability.
Content covers full lifecycle (create, read, update, set_field, publish, unpublish, draft discard, version list/restore, trash/restore, duplicate, move, copy variant), and media covers list/upload/link/alt/delete. Minor gaps: no per-asset read/metadata edit beyond alt text, no media folder management, and content-type/schema and delivery operations live in separate toolsets.
Maintenance
Related MCP Connectors
Efficient, MCP-native headless CMS. Agents draft entries and roll back revisions over OAuth.
Hosted Kontent.ai MCP server to manage content, types, taxonomies, and workflows
A blog CMS that AI agents write into over MCP: Markdown drafts, versions, media, human approval.
Agent control plane for multi-site content ops: research, drafts, review, CMS draft delivery.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA self-hosted content engine with an MCP interface that enables AI agents to read, write, and manage content models through tools like describe_model, create_type, draft, and publish.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceAgent-first headless CMS running as a Cloudflare Worker, providing MCP servers for schema/content management and editorial operations.25 npm5MIT
- AlicenseBqualityCmaintenanceOpen-source MCP server that turns any CMS backend into an AI-agent-ready content management system. It provides tools for content CRUD, idea management, and publication tracking, with safety features requiring human approval for publishing.52MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP-native CMS that lets you create and edit content by chatting, with typed schemas and seamless publishing.4MIT