Skip to main content

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:

  1. Go to Settings → Integrations
  2. Create a new Custom Integration
  3. 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 tag
  • ghost_get_post — get post by ID or slug
  • ghost_create_post — create post from Markdown
  • ghost_update_post — update post fields (title, content, tags, SEO metadata, etc.)
  • ghost_delete_post — delete post
  • ghost_publish_post — publish a draft
  • ghost_unpublish_post — revert to draft

Pages

  • ghost_list_pages — list pages
  • ghost_get_page — get page by ID or slug
  • ghost_create_page — create page from Markdown
  • ghost_update_page — update page fields
  • ghost_delete_page — delete page

Tags

  • ghost_list_tags — list all tags
  • ghost_create_tag — create a new tag
  • ghost_delete_tag — delete tag

Images & Site

  • ghost_upload_image — upload image and get URL
  • ghost_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

Metadata

Release files for ghost-cms-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ghost-cms-mcp 0.1.1
File Size Uploaded Provenance
ghost_cms_mcp-0.1.1.tar.gz 12.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ghost-cms-mcp 0.1.1
File Interpreter ABI Platform
ghost_cms_mcp-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 24.7 kB

Release files / ghost_cms_mcp-0.1.1.tar.gz

Download URL ghost_cms_mcp-0.1.1.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
289bd8459223ddae0b7fe9b727d88ffbccb3d5ec07ee0b7636dbb4bf0b79abbe
BLAKE2b-256 checksum
How to use checksums
dc7585945211d9c7ea05a24e55fe8616293d6a613a438306a79cbff14c391902
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Release files / ghost_cms_mcp-0.1.1-py3-none-any.whl

Download URL ghost_cms_mcp-0.1.1-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09b83ded9323a75a2f7917b81e846aa5662527d78ef4fd423d830e2ece5a45b9
BLAKE2b-256 checksum
How to use checksums
6e767c362230ec40bbe912712dbf37a8c2951568bbd6197025e671fed857c66f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Security for ghost-cms-mcp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page