Ghost Blog MCP Server
Connects AI agents to a Ghost blog through the Ghost Admin and Content APIs. Provides context-safe read tools for listing posts, pages, tags, and authors (titles/metadata only) plus on-demand fetching of a single post's full body (Lexical parsed to plain text or raw HTML), and, with an admin key, write tools to create, update, publish/schedule, and delete posts, pages, and tags. Supports a read-only mode using only a Content API key.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Features
Context-safe listing — compact one-line tables (date, status, title, tags, author) for posts, pages, tags, and authors. No bodies in list output, so agents can triage the whole site without context overflow.
On-demand detail fetching — metadata plus a truncated body preview via
get_post()/get_page(), or the full body viaget_post_content()/get_page_content()(the Lexical document parsed to readable text, or raw HTML).Full mode with an admin key — create, update, publish/schedule, and delete posts, pages, and tags through the Ghost Admin API, plus full management of newsletters, membership tiers, offers, members, and webhooks.
Read-only mode with a content key — the post/page read tools work with just a Content API key; the five admin-only groups (newsletters, tiers, offers, members, webhooks) have no Content API surface, and write tools then report that
GHOST_ADMIN_KEYis required. No admin key needed to let an agent read your blog's posts and pages.Two MCP prompts —
summarize_post(load a post and ask the model to summarize it) andnewsletter_draft(prime the model to draft a Ghost-compatible HTML post, created as a draft after your approval).Stdlib-only admin auth — the Admin API's HS256 JWT is built with
hmac/base64/json; no extrajwtdependency.Draft → confirm pattern — every write tool's docstring asks the agent to confirm with the user first; posts and pages are live the moment they publish.
Connection check — verify credentials and connectivity, and report which auth mode (admin / content-only / unconfigured) the server is running in. In admin mode the key must pass an auth-required probe, so a broken admin key fails loudly.
Three transports — stdio (default), Streamable HTTP, and SSE, selected with
MCP_TRANSPORT; a Docker image is published to GHCR on every push tomain.
Related MCP server: Ghost MCP
Tools
Read Tools
Tool | Description |
| Verify credentials and connectivity, with the current auth mode (admin / content-only / unconfigured). In admin mode the key is proven against an auth-required endpoint ( |
| Compact one-line-per-post table: title, status, tags, author, date. Filters: status, tag, author; plus paging and ordering. Drafts are visible in admin mode only. |
| Metadata + a truncated body preview (default 1500 chars, adjustable) for one post by id or slug. |
| The FULL body of one post, on demand — |
| Compact table of static pages: title, status, tags, date. |
| Metadata + a truncated body preview for one static page by id or slug. |
| The FULL body of one static page, on demand — |
| All tags with post/page counts where the API provides them (counts are admin-mode only). |
| The site's authors — admin |
| The site's newsletters with subscriber counts (admin-only — no Content API surface). |
| Full metadata for one newsletter by id, UUID, or slug. |
| Membership tiers with prices (wire cents converted to display) and member counts (admin-only). |
| Full metadata for one tier by id, UUID, or slug. |
| Membership offers/discounts with the tier name and a plain-language discount label (admin-only). |
| Full metadata for one offer by id, UUID, or offer CODE. |
| Newsletter members with labels and status; filter by label or free/paid (admin-only). |
| Full details for one member by EMAIL, id, or UUID. |
| The site's webhooks — event, target URL, name. The signing secret is intentionally NOT shown here (admin-only). |
| Full details for one webhook by raw id or UUID, including the signing secret (treat it like a credential). |
Write Tools (admin key required)
Tool | Description |
| Create a post: title + body as HTML (sent with |
| Update a post — title, slug, excerpt, or body. |
| Publish, unpublish, or schedule a post ( |
| Permanently delete a post. |
| Create a static page (same shape as |
| Update a static page (same shape as |
| Permanently delete a page. |
| Create a tag (name required; slug/description optional). |
| Update a tag's name, slug, and/or description. |
| Permanently delete a tag. |
| Create a newsletter (name required; sender reply-to, status, header/feature-image/badge toggles, fonts optional). |
| Update a newsletter — omit a field to leave it unchanged. |
| Permanently delete a newsletter (the site's default newsletter cannot be deleted). |
| Create a membership tier — prices in cents ( |
| Update a tier — omit to keep, |
| Permanently delete a tier (tiers with active paid subscriptions may be rejected). |
| Create an offer for a tier — type percent/amount/one_time/tier_free_trial/tier_discount, amount, cadence, duration, redeemable code (pre-6.79 schema; on Ghost 6.79+ the offers group may 400/406) |
| Update an offer's name, code, or display fields (to change the discount itself: delete and recreate). |
| Permanently delete an offer — members holding the code lose the discount. |
| Sign a member up (email required; name, note, labels, newsletter subscriptions optional). |
| Update a member — labels/newsletters REPLACED (omit = unchanged, |
| Remove (unsubscribe) a member — this cannot be undone. |
| Create a webhook for a Ghost event (event + target URL required; secret omitted = Ghost generates one, shown once). Version caveat: on Ghost 6.79+ the /webhooks/ routes are version-gated (406 under the v6.0 pin), and on 6.80+ creation requires session (admin-UI) auth — an admin API key cannot create webhooks there. |
| Update a webhook's event, target URL, name, or API version (the signing secret cannot be changed). |
| Permanently delete a webhook. |
All write tools require GHOST_ADMIN_KEY — in read-only mode they return a clear configuration error naming it.
Each tool's docstring asks the agent to confirm with the user first; published posts and pages are live immediately.
Prompts
Prompt | What it does |
| Loads the post (id, UUID, or slug) and returns a ready-to-send instruction asking the model to summarize it in 3-5 sentences, with the key points as bullets. |
| Primes the model to write a 300-600-word body as clean Ghost-compatible HTML (h2/p/ul/ol/strong/em/blockquote, no script tags), to be shown to the user and created as a DRAFT via |
Deployment
Option 1 — Container (Recommended)
Running as a container means every client always uses the latest version.
The image is built automatically on every push to main via GitHub Actions
and published to GitHub Container Registry.
docker-compose / Portainer
services:
ghost-blog-mcp:
image: ghcr.io/glitch3dpenguin/ghost-blog-mcp:latest
container_name: ghost-blog-mcp
restart: unless-stopped
# Loopback-only by default: the endpoint fronts a Ghost admin key. To
# expose it beyond localhost, set HOST + MCP_AUTH_TOKEN in .env
# (non-loopback binds are refused without a token) and put a reverse
# proxy with its own auth in front.
ports:
- "127.0.0.1:8000:8000"
env_file:
- .env
environment:
# Transport: streamable-http recommended for container deployments.
# Options: streamable-http | sse | stdio
MCP_TRANSPORT: "streamable-http"
PORT: "8000"
# The container listens on all interfaces (docker forwards the
# published port to the container's eth0); the non-loopback bind
# requires MCP_AUTH_TOKEN, set in .env
HOST: "0.0.0.0"
MCP_AUTH_TOKEN: "${MCP_AUTH_TOKEN:?set MCP_AUTH_TOKEN in .env}"cp .env.example .env # then fill in GHOST_URL / GHOST_ADMIN_KEY / MCP_AUTH_TOKEN
docker compose up -dThe MCP endpoint will be available at the root path (the server is configured to serve at /, not FastMCP's default /mcp):
http://<host>:8000/With MCP_TRANSPORT=sse the endpoint is http://<host>:8000/sse.
Portainer via Stack
In Portainer, go to Stacks → Add stack
Paste the
docker-compose.ymlcontents aboveCreate the
.envfile on the host (from.env.example) and fill inGHOST_URL,GHOST_ADMIN_KEY, andMCP_AUTH_TOKENDeploy
Connecting your AI client to the container
Field | Value |
Transport | Streamable HTTP |
URL |
|
In claude_desktop_config.json:
{
"mcpServers": {
"ghost-blog": {
"type": "http",
"url": "http://<your-server-ip>:8000/"
}
}
}When MCP_AUTH_TOKEN is set, clients must send the bearer header:
{
"mcpServers": {
"ghost-blog": {
"type": "http",
"url": "http://<your-server-ip>:8000/",
"headers": {
"Authorization": "Bearer <MCP_AUTH_TOKEN>"
}
}
}
}Tip: If you're running behind a reverse proxy (Nginx, Caddy, Traefik), you can expose this on a subdomain with TLS instead of a raw port.
Option 2 — Local (stdio)
Run the server as a local process on the same machine as your AI client. No container required, but each machine needs its own install.
Install
git clone https://github.com/Glitch3dPenguin/ghost-blog-mcp.git
cd ghost-blog-mcp
pip install -r requirements.txtAI client configuration
In claude_desktop_config.json (or equivalent):
{
"mcpServers": {
"ghost-blog": {
"command": "python3",
"args": ["/absolute/path/to/ghost_blog_mcp.py"],
"env": {
"GHOST_URL": "https://your-ghost-site.example",
"GHOST_ADMIN_KEY": "<key id>:<64-char-hex-secret>",
"GHOST_CONTENT_KEY": "optional_content_key"
}
}
}
}⚠️ The path in
argsmust be absolute. AI clients cannot resolve relative paths.
Windows:
["C:\\Users\\Name\\ghost-blog-mcp\\ghost_blog_mcp.py"]Mac/Linux:
["/home/username/ghost-blog-mcp/ghost_blog_mcp.py"]
Security
The MCP endpoint fronts a Ghost admin key — full read/write access to a live blog. Treat the endpoint like an admin panel:
Loopback by default. The HTTP transports bind
127.0.0.1, and the container example publishes127.0.0.1:8000:8000. Nothing is reachable off-machine out of the box.Token-gated exposure. Set
HOSTto bind another address (e.g.0.0.0.0for LAN or reverse-proxy use). A non-loopback bind requiresMCP_AUTH_TOKEN— without a token the server refuses to start (fail-closed). With a token set, every HTTP request must carryAuthorization: Bearer <MCP_AUTH_TOKEN>or it gets a401.Exposing it publicly? The bearer token protects the MCP surface, but if the endpoint leaves your network, put a reverse proxy with TLS and its own authentication in front, and rotate the token like a password.
Credentials in
.env. The compose example readsenv_file: .env(gitignored). Never commit real keys to the compose file or the repo.Destructive tools off by default. every
delete_*tool (posts, pages, tags, newsletters, tiers, offers, members, webhooks) refuses to run unlessGHOST_ALLOW_DELETE=1is set. Every tool also advertisesreadOnlyHint/destructiveHintannotations so MCP clients can gate, confirm, or prompt natively.No key leakage. Keys are never logged or echoed, and error output never includes request URLs with query params (the Content API key rides in the query string).
Environment Variables
Variable | Required | Description |
| ✅ | Your Ghost site URL, e.g. |
| ✅ for writes | Admin API key, format |
| — | Set to |
| — | Content API key, from Ghost admin → Integrations → Content API. With no admin key set, the server runs in read-only mode. Never logged. |
| — |
|
| — | Port to bind on for HTTP transports (default: |
| — | Override the User-Agent sent to Ghost (default: a browser-class string that passes Cloudflare). |
| — | Address to bind for HTTP transports (default: |
A non-loopback value requires | ||
start otherwise. | ||
| required for the compose deployment (and any non-loopback | Bearer token |
enforced on the MCP HTTP surface ( | ||
loopback bind works without one, but then the endpoint is | ||
unauthenticated — keep it loopback-only. Never logged. |
Auth modes: admin key set → full mode (reads and writes via the Admin API) · only a content key →
read-only mode (reads via the Content API) · neither → check_connection reports a configuration problem
naming the missing variables.
See Ghost's API documentation for credential setup — Admin and Content API keys are created under Integrations in the Ghost admin panel.
Other Ghost MCP options
This is a community project. Ghost does not ship an official MCP server; every Ghost MCP integration is third-party, and this is not the only one:
Option | Type | What it is |
This server | Self-hosted | Context-safe MCP server for the Ghost Admin + Content APIs — stdio, Streamable HTTP, and SSE, with a Docker image on GHCR. |
Self-hosted | Popular TypeScript server for the Ghost Admin API — post management with an OAuth-style key flow. | |
Self-hosted | TypeScript server for managing a Ghost instance from LLM interfaces. | |
Self-hosted | Node/TypeScript server with full CRUD, bulk actions, and a test suite. | |
Self-hosted | Ghost Admin API server covering posts, pages, members, and more. | |
Self-hosted | Python (FastMCP) server with read-only Content API and read/write Admin API access. |
If you just need a quick Admin-API integration, one of the above may save you the ops work. This server is for teams that want a context-safe read model, an optional read-only mode with a content key, and their own credentials on their own infrastructure.
Branding & trademarks
Ghost is a trademark of its respective owners. This project is not affiliated with, endorsed by, or sponsored by Ghost. It is a community server that talks to Ghost's public Admin and Content APIs using your own credentials.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read posts, members and tiers; create draft posts and edit post text in Ghost.
Build and publish Ghost themes with your AI agent: pages, styles, patterns and previews.
Ghost MCP server for ChatGPT, Claude and any AI agent: list posts, create draft post, schedule post, send newsletter, list members and label members in your own Ghost account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Ghost yourself; Cotlet does not store your password and you need no Ghost API key. About the official Ghost API: Ghost has a full REST Admin API, but no official MCP server (checked 17 Oct 2026). The Admin API covers posts, pages, members, labels, newsletters, tiers and offers, and Ghost says everything Ghost Admin can do is also possible with the API. Setup and FAQ: https://cotlet.dev/integrations/ghost-api-mcp-server
Publish to self-hosted WordPress from AI agents: markdown, images, SEO, and Notion sync.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables interaction with Ghost CMS through the Ghost Admin API via LLM interfaces. It provides comprehensive tools for managing posts, members, newsletters, and other site entities through secure JWT authentication.-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Ghost CMS content including posts, members, users, tags, tiers, offers, newsletters, invites, roles, and webhooks via the Ghost Admin API.-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables interaction with Ghost CMS sites through both Content (read-only) and Admin (read/write) APIs, allowing natural language management of posts, pages, tags, and settings.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to securely manage Ghost CMS blogs, including posts, pages, members, newsletters, tiers, and more via natural language.MIT