Page 1 of 1

mcp-bludit: single-file MCP server that runs inside the Bludit core (3.22)

Posted: Wed Nov 18, 2026 10:12 pm
by murkir
Hi everyone,

I’ve built an MCP (Model Context Protocol) server for Bludit and want to share it with the community. It lets AI assistants like Claude OpenCode manage a Bludit site: pages, categories, tags, media, users, settings, plugins and themes.

How it differs from an API-based connector

mcp-bludit.php is a single file you drop into the Bludit root, next to index.php. It doesn’t go through the API plugin or edit the JSON databases. It boots the core the same way index.php does and calls the native functions: createPage(), editPage(), deletePage(), createCategory(), editUser(), editSettings(), activatePlugin(), activateTheme(), transformImage() and others.

As a result, everything behaves the same as editing in the admin panel:

plugin hooks fire (afterPageCreate, afterPageModify, afterPageDelete), so sitemap, cache and SEO plugins update on their own;
tag and category indexes are rebuilt;
every action is written to the syslog under the user’s name;
admin / editor / author roles are enforced. An author can only touch their own pages.

Features

44 tools: pages (create, edit, delete, change type, reorder, child pages, custom fields), categories, tags (rename, merge, delete), images and files (upload by URL or base64, set cover image), users, site settings, logo, plugins (activate, configure, reorder), themes, syslog, reindex.
bludit_images_optimize recompresses images that are already uploaded, using the core Image class. Filenames stay the same, so links in content don’t break. It can also downscale images wider than a set width. Originals are backed up first, and there’s a dry-run mode.
Authentication uses the user’s own Bludit auth token (Authorization: Bearer <token>). No sessions or cookies are created.
Basic hardening: SSRF protection for URL downloads, MIME and extension checks, path checks on deletes, optional IP allowlist.

Requirements: Bludit 3.22.x (tested on 3.22.0), PHP 7.4+ (tested on 8.3), GD.

Repository: https://github.com/Murkirpus/mcp-bludit (MIT license)

Manage your Bludit website by just asking your AI agent: “write a draft post about our spring sale with this cover image”, “compress all images on the site”, “move every post tagged news to the Blog category”.

This skill pairs with mcp-bludit, a free open-source MCP server (a single PHP file) that you drop into the root of your Bludit site. It gives your agent 44 bludit_* tools, and this skill teaches it to use them safely and well.

Why it’s different
Works through Bludit’s own core. Every change goes through the same functions as the admin panel, so plugin hooks fire, sitemaps, caches and tag/category indexes update, and each action lands in the Bludit syslog under your user’s name.
Respects roles. The agent acts with the role of the Bludit user whose token you give it (admin, editor or author). Give it an editor account if you don’t want it touching settings.
Safe by default. It checks for duplicates before creating posts, creates drafts unless you ask to publish, edits only the fields you change, and asks before anything destructive or public: deleting, switching themes, changing settings, bulk edits of more than ~10 pages.
Image compression with a dry run. Shows the estimated savings first, keeps backups of originals and keeps file names so links don’t break.
What it covers

Posts and static pages (create, edit, schedule, publish, delete), cover images and media uploads, categories and tags (including merging tags), users, plugins, themes, site settings and the action log.

Setup (about 5 minutes)
Download mcp-bludit.php from GitHub and put it next to Bludit’s index.php.
Copy your user token from Bludit admin → Users → your profile.
Add the server to your agent (Claude, Claude Code, Cursor and others). Step-by-step instructions are in SETUP.md.

Requires Bludit 3.22.x (other 3.x versions untested), PHP 7.4+ with GD, and HTTPS.