Skip to main content

MCP server for Ghost CMS — manage posts, pages, tags and images

Project description

ghost-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-mcp

Or install with pip:

pip install ghost-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

Add to your project's .mcp.json:

{
  "mcpServers": {
    "ghost": {
      "command": "uvx",
      "args": ["ghost-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-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-mcp"],
      "env": {
        "GHOST_URL": "https://your-blog.com",
        "GHOST_ADMIN_KEY": "your-id:your-secret"
      }
    }
  }
}

OpenCode

Add to your opencode.json:

{
  "mcpServers": {
    "ghost": {
      "command": "uvx",
      "args": ["ghost-mcp"],
      "env": {
        "GHOST_URL": "https://your-blog.com",
        "GHOST_ADMIN_KEY": "your-id:your-secret"
      }
    }
  }
}

CLI (alternative)

ghost-mcp --url https://your-blog.com --key "your-id:your-secret"

Environment variables take priority over CLI arguments.

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/pmatveev/ghost-mcp.git
cd ghost-mcp
uv sync --dev
uv run pytest

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ghost_cms_mcp-0.1.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ghost_cms_mcp-0.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file ghost_cms_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: ghost_cms_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for ghost_cms_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 faad9234e8459460da65e81c8aa4f57d875381422c34b9a6c0b5dce0515e7a41
MD5 ed098026ae455545fa41aa0a5903dbc5
BLAKE2b-256 72f9773c0e3757ab170bad3f710999d2da1852376d9efc5923d68780375dad37

See more details on using hashes here.

File details

Details for the file ghost_cms_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ghost_cms_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cea2345ec92f5c833a1354cbe92f895e59ece1c785f841f0142e24d826bc087e
MD5 247fe881669f1bdbf651b63e0bfb1542
BLAKE2b-256 d060c09c7aac85838461cbf13123b5e2f90595e7773933bb204de3f3e8a3a6c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page