mini-cms-mcp

Costin Pietraru

An MCP server that lets Claude edit your website: a flat-file PHP CMS with no database

mini-cms-mcp is an open source MCP server and flat-file PHP CMS in one: you edit an existing website by talking to Claude. No database, no admin panel, no plugins; it runs on shared hosting with cPanel or Plesk.

MCP Claude CMS WordPress mini-cms-mcp

“Edit your website by talking to Claude”: a request to add an announcement goes through draft, preview link and approval before it is published on the site

mini-cms-mcp is an MCP server built into a small website: Claude uses it to create, edit and publish your pages, and nothing goes live until you approve it.

It is a flat-file CMS in plain PHP, with no database, no admin panel and no plugins. It is open source, under the MIT license, and runs on ordinary shared hosting with cPanel or Plesk. The MCP server lives at https://your-site/mcp, so there is nothing else to run.

I built it because I wanted to update my own sites from a conversation, including from my phone, without keeping a WordPress install patched. It now runs five sites, including this one.

What does an MCP server do for a website?

MCP (Model Context Protocol) is the standard way an AI assistant uses outside tools. An MCP server for a website gives Claude a short list of precise actions: list the pages, read one, save a draft, preview it, publish it, upload an image, add a redirect. Claude cannot do anything outside that list.

In mini-cms-mcp, those actions work on content only. The AI can change texts, pages, articles, images and PDF documents. It cannot touch the code, the theme or the server configuration. That rule is enforced by the server, not by a prompt.

What does editing look like in practice?

You write to Claude the way you would write to a colleague:

Add an announcement about Saturday's event, with the address and the start time, and put it first on the home page.

  1. Claude writes a draft

    Everything it creates starts as a draft. Nothing appears on the site yet.

  2. You preview it

    Claude gives you a temporary link where the page looks exactly as it will on the site.

  3. You publish

    Only after you say so. You can also schedule it for a later hour.

Every change is saved as a version and written to a log: who changed what, and when. A deleted page goes to the versions, not to the void, and can be restored.

Why a flat-file CMS with no database?

Pages and articles are JSON files in a folder. That choice removes a whole class of problems for a small site:

  • Backup is a copy of one folder. A command on your computer saves the whole site and can put it back, on the same server or on another one.
  • Nothing to keep in sync. No database server, no database user, no migrations when you move hosting.
  • Less to attack. No SQL, no plugins written by strangers, no admin login page to brute-force.

The trade-off is size: search and lists read the files on each request, which suits tens or hundreds of pages, not tens of thousands.

Is it a WordPress alternative?

For a site of a few pages and a blog, yes. I worked with WordPress for twenty years and I wrote down why I left it with 30 plugins behind. The short version: on a small site, most of the effort went into updates, plugin conflicts and security, not into content.

For a shop, a membership site or thousands of posts, WordPress or a larger CMS remains the better tool. mini-cms-mcp does not try to replace them there.

What does it need to run?

  • A domain or subdomain dedicated to the site, with HTTPS.
  • PHP 8.0 or newer on Apache, as offered by cPanel and Plesk hosting; I run it in production on both. There is also a configuration for nginx.
  • No Composer, no Node, no Docker, no files loaded from other servers.

Installation is one command on your computer, which runs the tests, generates the keys and builds a zip, plus one upload of that zip in the File Manager of cPanel or Plesk. The step-by-step guide, with screenshots, is here: how to install an AI-managed CMS.

How does Claude connect to it?

  • Claude Code: the site's key in a header. The installer runs the claude mcp add command for you.
  • claude.ai (web, desktop app, phone): add it as a custom connector with the address https://your-site/mcp. The approval uses OAuth 2.1 with PKCE and a six-digit code that only you can open, from your own computer.
  • Editors: a client or a colleague gets a key in their own name. They can write and publish; they cannot change the site's identity or theme. When they leave, you remove the key and their connections stop.

It is a remote MCP server over Streamable HTTP, stateless: each request is a POST with a JSON reply. The full walkthrough for editors is in how to edit your own site with Claude.

Can AI search engines read the site?

The site generates its sitemap, feed, llms.txt and FAQ markup on its own. One tool asks the site as ChatGPT, Claude, Perplexity, Bing and Google bots and reports who is blocked and by whom, the hosting firewall or Cloudflare. Another counts, on the server, which pages the AI assistants read. More in can ChatGPT read your site?

What it does not do

  • It does not build a design for you. Themes are CSS files that a person puts on the server; the AI only uses the blocks a theme offers.
  • It is not for large sites, shops or user accounts.
  • Image size is limited by the hosting's upload limit.
  • One site per domain or subdomain, at the root.

Frequently asked questions

Is mini-cms-mcp free?

Yes. It is open source under the MIT license: you can use, modify and distribute it, including commercially, as long as you keep the copyright notice.

Can I edit an existing website with AI, not only a new one?

Yes, once its content is moved into mini-cms-mcp. I moved a site with 281 addresses: after the move all 281 answered and the pages looked the same. Addresses that change get a permanent 301 redirect, so search engines keep what the old pages had earned.

Can the AI break my site?

It can only change content, and every change is versioned. If a text comes out wrong, you restore the previous version. The code and the theme are out of its reach.

Does it work from a phone?

Yes. After you connect it once in claude.ai, the connector appears in the Claude phone app, and you can write, preview and publish from there.

Where is the code?

On GitHub: paycodero/mini-cms-mcp. It is also listed and verified on Glama.

← All articles