Publish from your AI agent

Claude Code, Cursor, Codex and Claude Desktop can publish Markdown to mdmd.uk and hand you a shareable link — no copy-paste. Scripts and CI jobs can do the same with a single curl command.

Sign up — it's free Log in

What your agent can do

Connect in one step

Replace YOUR_API_KEY with the key from My pages — there the commands come with your key already filled in.

Run once in a terminal — mdmd becomes available in all your projects.

claude mcp add --transport http --scope user mdmd https://mdmd.uk/mcp --header "Authorization: Bearer YOUR_API_KEY"

REST API

Every request needs Authorization: Bearer YOUR_API_KEY. Send Markdown as the raw request body or as JSON {"markdown": "…"}.

RequestWhat it does
POST /api/v1/pagesPublish a new page → {slug, url, title}
GET /api/v1/pages?query=&limit=&offset=List your pages, newest first
GET /api/v1/pages/{slug}Read a page: Markdown and metadata
PUT /api/v1/pages/{slug}Replace the text of your page
DELETE /api/v1/pages/{slug}Delete your page

Good to know