MCP server for Ghost CMS — manage posts, pages, tags and images
Project description
ghost-cms-mcp
Unofficial MCP server for Ghost CMS. Not affiliated with Ghost Foundation.
Manage posts, pages, tags and images through any MCP-compatible client (Claude Code, Claude Desktop, Cursor, OpenCode, etc.).
Installation
uvx ghost-cms-mcp
Or install with pip:
pip install ghost-cms-mcp
Configuration
You need a Ghost Admin API key. Get it from your Ghost Admin panel:
- Go to Settings → Integrations
- Create a new Custom Integration
- Copy the Admin API Key (format:
id:secret)
Claude Code
claude mcp add ghost \
-e GHOST_URL=https://your-blog.com \
-e GHOST_ADMIN_KEY=your-id:your-secret \
-- uvx ghost-cms-mcp
Or add to your project's .mcp.json:
{
"mcpServers": {
"ghost": {
"command": "uvx",
"args": ["ghost-cms-mcp"],
"env": {
"GHOST_URL": "https://your-blog.com",
"GHOST_ADMIN_KEY": "your-id:your-secret"
}
}
}
}
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"ghost": {
"command": "uvx",
"args": ["ghost-cms-mcp"],
"env": {
"GHOST_URL": "https://your-blog.com",
"GHOST_ADMIN_KEY": "your-id:your-secret"
}
}
}
}
Cursor
Add to .cursor/mcp.json in your project root:
{
"mcpServers": {
"ghost": {
"command": "uvx",
"args": ["ghost-cms-mcp"],
"env": {
"GHOST_URL": "https://your-blog.com",
"GHOST_ADMIN_KEY": "your-id:your-secret"
}
}
}
}
CLI
ghost-cms-mcp --url https://your-blog.com --key "your-id:your-secret"
Environment variables take priority over CLI arguments.
Tool Selection
By default all tools are enabled. You can control which tools are available using presets or manual selection.
Presets
| Preset | Tools | Description |
|---|---|---|
all |
posts, pages, tags, images | All tools (default) |
writer |
posts, tags, images | For authors: write, tag, upload images |
content |
posts, pages, tags, images | All content tools |
readonly |
posts, pages, tags, images | Only list/get operations, no create/update/delete |
Configure via env variable or CLI argument:
{
"mcpServers": {
"ghost": {
"command": "uvx",
"args": ["ghost-cms-mcp"],
"env": {
"GHOST_URL": "https://your-blog.com",
"GHOST_ADMIN_KEY": "your-id:your-secret",
"GHOST_PRESET": "writer"
}
}
}
}
Or via CLI:
ghost-cms-mcp --url https://your-blog.com --key "id:secret" --preset readonly
Manual tool selection
Enable only specific tool groups:
{
"env": {
"GHOST_URL": "https://your-blog.com",
"GHOST_ADMIN_KEY": "your-id:your-secret",
"GHOST_TOOLS": "posts,tags"
}
}
Or via CLI:
ghost-cms-mcp --url https://your-blog.com --key "id:secret" --tools posts,tags
Available groups: posts, pages, tags, images
GHOST_TOOLS / --tools takes priority over GHOST_PRESET / --preset.
Available tools
Posts
ghost_list_posts— list posts with filtering by status and tagghost_get_post— get post by ID or slugghost_create_post— create post from Markdownghost_update_post— update post fields (title, content, tags, SEO metadata, etc.)ghost_delete_post— delete postghost_publish_post— publish a draftghost_unpublish_post— revert to draft
Pages
ghost_list_pages— list pagesghost_get_page— get page by ID or slugghost_create_page— create page from Markdownghost_update_page— update page fieldsghost_delete_page— delete page
Tags
ghost_list_tags— list all tagsghost_create_tag— create a new tagghost_delete_tag— delete tag
Images & Site
ghost_upload_image— upload image and get URLghost_site_info— get site metadata (title, version, etc.)
Development
git clone https://github.com/matveev-pavel/ghost-mcp.git
cd ghost-mcp
uv sync --dev
uv run pytest
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ghost_cms_mcp-0.1.1.tar.gz.
File metadata
- Download URL: ghost_cms_mcp-0.1.1.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
289bd8459223ddae0b7fe9b727d88ffbccb3d5ec07ee0b7636dbb4bf0b79abbe
|
|
| MD5 |
734214c6fbda53b47320bc64bc774048
|
|
| BLAKE2b-256 |
dc7585945211d9c7ea05a24e55fe8616293d6a613a438306a79cbff14c391902
|
File details
Details for the file ghost_cms_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ghost_cms_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09b83ded9323a75a2f7917b81e846aa5662527d78ef4fd423d830e2ece5a45b9
|
|
| MD5 |
06f9c783140330931c8d4a18ac7010c6
|
|
| BLAKE2b-256 |
6e767c362230ec40bbe912712dbf37a8c2951568bbd6197025e671fed857c66f
|