ghost-mcp
Full Ghost CMS management via the Admin API (and read-only Content API in content mode): creates and updates posts and pages from structured Koenig content blocks compiled to native Lexical nodes (headings, paragraphs, lists, quotes, callouts, images, buttons, bookmarks, code blocks, toggles, galleries), plus CRUD on tags, members, newsletters, offers, tiers, users, webhooks, images, themes and site settings, with helpers for schema/action discovery and searching Ghost documentation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ghost-mcp draft a post titled 'We shipped the editor' with a heading and callout"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@damusix/ghost-mcp
MCP server for Ghost CMS — manage content, members, newsletters, and more via LLMs.
Install
pnpm add @damusix/ghost-mcpOr run directly:
npx --package=@damusix/ghost-mcp ghost-mcpRelated MCP server: Ghost MCP Server
Configuration
Set the following environment variables:
Variable | Required | Description |
| Yes | Your Ghost instance URL (e.g. |
| For admin mode | Admin API key ( |
| For content mode | Content API key |
| No |
|
| No | API version header (default: |
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"ghost": {
"command": "npx",
"args": ["@damusix/ghost-mcp"],
"env": {
"GHOST_URL": "https://my-blog.ghost.io",
"GHOST_ADMIN_API_KEY": "your-admin-api-key",
"GHOST_CONTENT_API_KEY": "your-content-api-key",
"GHOST_API_MODE": "admin",
"GHOST_API_VERSION": "v6.0"
}
}
}
}Claude Code
claude mcp add ghost \
-e GHOST_URL=https://my-blog.ghost.io \
-e GHOST_ADMIN_API_KEY=your-admin-api-key \
-e GHOST_CONTENT_API_KEY=your-content-api-key \
-e GHOST_API_MODE=admin \
-e GHOST_API_VERSION=v6.0 \
-- npx @damusix/ghost-mcpTools
compose_post
Create or update a post from structured Koenig content blocks. Prefer this over
pushing raw HTML or hand-writing Lexical — it produces clean, natively-editable
posts. Prose blocks (paragraph, heading, list, quote) accept inline
markdown (**bold**, _italic_, `code`, [links](url)); rich features
are cards (callout, image, button, bookmark, codeblock, toggle,
gallery, and more). Omit id to create; set id + updated_at to update.
{
"title": "We shipped the editor",
"status": "draft",
"blocks": [
{ "type": "heading", "level": 2, "text": "What's new" },
{ "type": "paragraph", "text": "Try the **new** [editor](https://ghost.org)." },
{ "type": "list", "style": "bullet", "items": ["Clean blocks", "Native editing"] },
{ "type": "callout", "emoji": "🚀", "color": "green", "text": "Live now" },
{ "type": "button", "text": "Get started", "url": "https://ghost.org" }
]
}Each block becomes a native Lexical node, so the post stays granularly editable in Ghost — not a single opaque HTML block. See docs/koenig-cards.md for every block type and field.
For long posts, write the blocks to a JSON file (a bare [...] array or
{ "blocks": [...] }) and pass its absolute path as blockFile instead of
blocks — useful when iterating, so you edit the file rather than re-sending the
whole array each time. Validate the file first with compose_lexical.
{ "title": "Long post", "status": "draft", "blockFile": "/abs/path/tmp/post.json" }compose_lexical
Compile the same blocks into a Lexical JSON string without creating a post —
useful for preview or feeding into use_ghost_api yourself.
koenig_help
List all block types, or get the fields and a JSON example for one block.
{ "block": "callout" }use_ghost_api
Execute Ghost API actions. Supports full CRUD on posts, pages, tags, members, newsletters, offers, tiers, users, webhooks, images, themes, and site settings. For post bodies, prefer compose_post over passing raw lexical/html here.
{
"api": "admin",
"action": "posts.add",
"payload": {
"title": "My New Post",
"status": "draft",
"lexical": "{\"root\":{\"children\":[{\"children\":[{\"text\":\"Hello world\"}],\"type\":\"paragraph\"}],\"type\":\"root\"}}"
}
}ghost_api_help
Self-documenting tool that describes available actions and their schemas.
{ "action": "posts.add" }Call with no arguments to list all available actions.
ghost_docs
Search Ghost documentation via docs.ghost.org/llms.txt.
{ "all": true }{ "search": "webhooks" }{ "regex": "filter.*published" }Modes
Admin mode (default): Full access to all Ghost Admin API and Content API actions. Requires
GHOST_ADMIN_API_KEY.Content mode: Read-only access to Content API actions only. Requires
GHOST_CONTENT_API_KEY. Admin actions are rejected with a clear error.
Bundled skill: ghost-writing
The package ships an Agent Skill
at skills/ghost-writing/ that pairs with the
MCP server: which tool to use when, the full Koenig block catalog with guidance
on choosing between similar blocks, and best practices for structuring good
posts (drafting workflow, long-post blockFile iteration, publishing,
newsletters, members-only content).
Install it:
npx skills add damusix/ghost-mcpOr download the packaged
ghost-writing.skill
from the latest release — upload it to claude.ai (Settings → Capabilities) or
unzip it into ~/.claude/skills/.
Claude picks it up automatically the next time a conversation involves writing Ghost posts.
Development
Spin up a throwaway Ghost 6 + MySQL 8 stack to exercise the server against a live API, and inspect Ghost's real schema with noorm. See docs/experimentation.md.
docker compose up -d
bin/ghost-keys.sh --write # writes .env pointed at the local GhostLicense
MIT
Available Tools
6 toolscompose_lexicalA
Compile Koenig content blocks into a Lexical JSON string without creating a post (for preview/inspection). Same block shape as compose_post.
Inputs: blocks, blockFile.
compose_postA
Create or update a Ghost post from structured Koenig content blocks (paragraphs, headings, lists, callouts, images, buttons, etc.). PREFER THIS over use_ghost_api with raw html/lexical — it produces clean, natively-editable posts. Pass blocks inline for short posts, or write them to a JSON file and pass blockFile (absolute path) for long posts. Omit id to create, set id+updated_at to update. Call koenig_help to discover block types and fields.
Inputs: id, slug, tags, title, +7 more.
ghost_api_helpA
Get help on available Ghost API actions — list all actions or get detailed schema info for a specific action
Inputs: api, action.
ghost_docsB
Search Ghost CMS documentation — fetch full docs, search by text, or match with regex
Inputs: all, regex, search.
koenig_helpA
List Koenig content block types, or get the fields and a JSON example for one block. Use before compose_post to build clean, editable posts instead of raw HTML.
Inputs: block.
use_ghost_apiA
Execute a Ghost API action (browse, read, add, edit, delete posts, pages, tags, members, newsletters, and more)
Inputs: api (required), action (required), payload.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools are clearly distinct: compose_post creates/updates structured posts, compose_lexical only compiles blocks, and the help/docs tools target different resources. There is intentional overlap between use_ghost_api and compose_post for post creation, but the descriptions explicitly steer agents toward compose_post for structured content.
All names use snake_case and are readable, but the convention is mixed: action tools use verb_object (use_ghost_api, compose_post, compose_lexical), while helper tools use noun_help (ghost_api_help, koenig_help) and ghost_docs is noun-only. This is not chaotic, but it falls short of a consistent verb_noun pattern.
Six tools is well-scoped for a Ghost CMS server. The broad API multiplexer prevents a large resource-by-resource tool explosion, while the specialized composition and help tools each earn their place.
The set covers broad Ghost Admin API operations through use_ghost_api plus structured post creation/update and block compilation. Help and documentation tools support discoverability, though some areas such as media upload or theme management are not explicit and would rely on the generic API.
Maintenance
Related MCP Connectors
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
Build and publish Ghost themes with your AI agent: pages, styles, patterns and previews.
Manage beehiiv newsletters, posts, podcasts, community, subscribers, and analytics.
Manage your WordPress site from your AI assistant: posts, pages, media, comments and WooCommerce.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive management of Ghost CMS instances through the Admin API, supporting content operations (posts, tags), member management, newsletters, tiers, offers, and webhooks through natural language interactions.1MIT
- 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 gradedqualityDmaintenanceEnables 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