# Ghost (official)

> Ghost's own ghst CLI in MCP mode: posts, pages, members, newsletters, stats and the social web over the Admin API.

[Canonical HTML page](https://top-mcps.com/mcp/ghost-ghst) · [server.json](https://top-mcps.com/mcp/ghost-ghst.json) · [methodology](https://top-mcps.com/about/methodology)

## Install

### Claude Desktop — `claude_desktop_config.json`

Paste under mcpServers. Fully quit and reopen Claude after editing.

```json
{
  "mcpServers": {
    "ghost-ghst": {
      "command": "npx",
      "args": [
        "-y",
        "@tryghost/ghst",
        "mcp",
        "stdio",
        "--tools",
        "all"
      ],
      "env": {
        "GHOST_URL": "${GHOST_URL}",
        "GHOST_STAFF_ACCESS_TOKEN": "${GHOST_STAFF_ACCESS_TOKEN}"
      }
    }
  }
}
```

### Claude Code — `CLI or .mcp.json`

Run from your repo. Commit .mcp.json to share with your team.

```shell
# export GHOST_URL=https://yourblog.com
# export GHOST_STAFF_ACCESS_TOKEN=your_token_id:your_token_secret
claude mcp add ghost-ghst -- npx -y @tryghost/ghst mcp stdio --tools all
```

### Cursor — `.cursor/mcp.json`

Global path: ~/.cursor/mcp.json. Reload window after editing.

```json
{
  "mcpServers": {
    "ghost-ghst": {
      "command": "npx",
      "args": [
        "-y",
        "@tryghost/ghst",
        "mcp",
        "stdio",
        "--tools",
        "all"
      ],
      "env": {
        "GHOST_URL": "${GHOST_URL}",
        "GHOST_STAFF_ACCESS_TOKEN": "${GHOST_STAFF_ACCESS_TOKEN}"
      }
    }
  }
}
```

### VS Code — `.vscode/mcp.json`

VS Code uses the "servers" key (not "mcpServers").

```jsonc
{
  "servers": {
    "ghost-ghst": {
      "command": "npx",
      "args": [
        "-y",
        "@tryghost/ghst",
        "mcp",
        "stdio",
        "--tools",
        "all"
      ],
      "env": {
        "GHOST_URL": "${GHOST_URL}",
        "GHOST_STAFF_ACCESS_TOKEN": "${GHOST_STAFF_ACCESS_TOKEN}"
      }
    }
  }
}
```

### Windsurf — `~/.codeium/windsurf/mcp_config.json`

Open via Cascade → hammer icon → Configure.

```json
{
  "mcpServers": {
    "ghost-ghst": {
      "command": "npx",
      "args": [
        "-y",
        "@tryghost/ghst",
        "mcp",
        "stdio",
        "--tools",
        "all"
      ],
      "env": {
        "GHOST_URL": "${GHOST_URL}",
        "GHOST_STAFF_ACCESS_TOKEN": "${GHOST_STAFF_ACCESS_TOKEN}"
      }
    }
  }
}
```

### Cline — `cline_mcp_settings.json`

Open via the Cline sidebar → MCP Servers → Edit.

```json
{
  "mcpServers": {
    "ghost-ghst": {
      "command": "npx",
      "args": [
        "-y",
        "@tryghost/ghst",
        "mcp",
        "stdio",
        "--tools",
        "all"
      ],
      "env": {
        "GHOST_URL": "${GHOST_URL}",
        "GHOST_STAFF_ACCESS_TOKEN": "${GHOST_STAFF_ACCESS_TOKEN}"
      }
    }
  }
}
```

### Continue — `~/.continue/config.json`

Continue uses modelContextProtocolServers with a transport block.

```json
{
  "experimental": {
    "modelContextProtocolServers": [
      {
        "transport": {
          "type": "stdio",
          "command": "npx",
          "args": [
            "-y",
            "@tryghost/ghst",
            "mcp",
            "stdio",
            "--tools",
            "all"
          ],
          "env": {
            "GHOST_URL": "${GHOST_URL}",
            "GHOST_STAFF_ACCESS_TOKEN": "${GHOST_STAFF_ACCESS_TOKEN}"
          }
        }
      }
    ]
  }
}
```

### Codex CLI — `~/.codex/config.toml`

Codex uses TOML. Each server is a [mcp_servers.<name>] subtable.

```shell
# ~/.codex/config.toml
[mcp_servers.ghost-ghst]
command = "npx"
args = [
  "-y",
  "@tryghost/ghst",
  "mcp",
  "stdio",
  "--tools",
  "all",
]
env = { GHOST_URL = "${GHOST_URL}", GHOST_STAFF_ACCESS_TOKEN = "${GHOST_STAFF_ACCESS_TOKEN}" }
```

### Zed — `~/.config/zed/settings.json`

Zed calls them "context_servers". Settings live-reload on save.

```jsonc
{
  "context_servers": {
    "ghost-ghst": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "@tryghost/ghst",
          "mcp",
          "stdio",
          "--tools",
          "all"
        ]
      },
      "env": {
        "GHOST_URL": "${GHOST_URL}",
        "GHOST_STAFF_ACCESS_TOKEN": "${GHOST_STAFF_ACCESS_TOKEN}"
      }
    }
  }
}
```

### ChatGPT — `ChatGPT → Plugins`

Ghost (official) doesn't ship a hosted HTTPS endpoint today. ChatGPT supports remote MCP servers only — to use this server in ChatGPT you'll need to deploy it to a public HTTPS URL first (e.g. via Cloudflare Workers or Vercel) or wait for an official remote build.

```none

```

## At a glance

- **Maintainer:** Ghost Foundation
- **Transport:** stdio, Streamable HTTP
- **Auth model:** API key
- **Required secrets:** GHOST_URL, GHOST_STAFF_ACCESS_TOKEN
- **Supported clients:** Claude, Claude Code, Cursor, VS Code, Any MCP-compatible client, Ghost 6.x
- **License:** MIT
- **Language:** TypeScript
- **Latest version:** 0.19.0
- **MCP spec:** 2025-11-25 (1 revision behind)
- **Evidence:** npm @tryghost/ghst 0.19.0 (2026-11-10) pins @modelcontextprotocol/sdk 1.32.2, whose newest protocol revision is 2025-11-25; src/mcp/tools/core.ts at 7095d16 registers 91 ghost_* tools; README "MCP Server Mode"; default Admin API version v6.0; not in a Claude or ChatGPT plugin; read 2026-11-10
- **Last verified:** 2026-11-10
- **GitHub stars:** 35 (fetched 2026-11-19T09:02:21.990Z)
- **Score:** 78/100 (rubric 2027-01 — see https://top-mcps.com/about/methodology)
- **Source:** https://github.com/TryGhost/ghst

## Tools & permissions

Showing 16 of 91 tools the server reported on `tools/list`. The rest exist and are not listed here.

| Tool | Description | Args | Side effects |
|------|-------------|------|--------------|
| `ghost_post_list` | List posts. | `—` | read |
| `ghost_post_get` | Get a post by id or slug. | `—` | read |
| `ghost_post_create` | Create a post. | `—` | write |
| `ghost_post_update` | Update a post. | `—` | write |
| `ghost_post_publish` | Publish a post, with optional email delivery settings. | `—` | write |
| `ghost_post_schedule` | Schedule a post, with optional email delivery settings. | `—` | write |
| `ghost_post_delete` | Delete a post (confirm=true and --enable-destructive-actions). | `—` | write |
| `ghost_image_upload` | Upload an image. | `—` | write |
| `ghost_member_list` | List members. | `—` | read |
| `ghost_member_update` | Update a member. | `—` | write |
| `ghost_comment_hide` | Hide a comment. | `—` | write |
| `ghost_stats_overview` | Get the analytics overview report. | `—` | read |
| `ghost_search` | Search posts, pages, tags and members. | `—` | read |
| `ghost_setting_set` | Set a Ghost setting by key. | `—` | write |
| `ghost_api_request` | Run a raw Ghost Admin API request. | `—` | network |
| `ghost_site_list` | List configured site aliases without credentials. | `—` | read |

## Security & scope

- **Access scope:** read-write
- **Sandbox:** Runs locally as a stdio process, or as an HTTP server bound to loopback unless --unsafe-public-bind is passed. Authenticates with a staff access token, so the agent acts with that staff user's Ghost role.
- **Gotchas:**
  - ghost_api_request can call any Admin API route; the README says to treat it as privileged admin access, so drop the api group with --tools when it is not needed.
  - A staff access token for an Owner or Administrator reaches members and settings site-wide. Use a staff user with the narrowest role that does the job.
  - ghost_post_publish can send the post by email to members; check the newsletter settings in the call before letting an agent publish.

## Quick answer

**What it does.** Runs the Ghost Admin API as MCP tools: list, get, create, update, publish, schedule and delete posts and pages; tags; members (including import); comments and moderation; settings; site info; analytics through the stats tools; ActivityPub through socialweb; image and theme upload; webhooks; and ghost_api_request for any Admin API route. Over stdio, or HTTP on loopback with --auth-token.

**Best for:**
- Drafting, scheduling and publishing Ghost posts
- Member lookups and updates
- Newsletter and post analytics
- Comment moderation
- Managing several Ghost sites from one server

**Not for:**
- Unattended production publishing on a pre-1.0 tool
- Teams that want a preview-hash gate on every write
- Node.js versions before 22.13
- Theme design work beyond uploading a zip

## Recipes

### Draft a post and schedule it without emailing members

```
On my Ghost site, create a draft post titled "Release notes: November" from the Markdown in ./release-notes.md, tag it "changelog", and schedule it for next Tuesday at 09:00 site time with no email delivery. Show me the scheduled time and the post URL. Do not publish now and do not delete anything.
```

_Tested with: Claude Code, Cursor_

## Description

ghst is the Ghost Foundation's command-line tool for Ghost (TryGhost/ghst, MIT, published as @tryghost/ghst) and has a built-in MCP server mode. `ghst mcp stdio` exposes 91 tools in tool groups - posts, pages, tags, members, comments, site, settings, users, search, stats, socialweb and a raw api tool - over the Ghost Admin API with a staff access token. Every tool takes an optional site argument, so one server can work across several Ghost sites. It is pre-1.0 beta, and Ghost says to back up critical data before using it.

## Why it matters

It is the vendor's own tool, so it covers the parts of Ghost a publisher runs on - members, newsletters, offers, stats, the social web - not only drafting posts, and it moves with Ghost's Admin API. Tools carry readOnlyHint and destructiveHint, and deletes refuse to run unless the server was started with --enable-destructive-actions and the call passes confirm=true.

## Key features

- Ghost Foundation's own CLI, MIT
- 91 MCP tools in 12 selectable groups
- Deletes need --enable-destructive-actions plus confirm=true
- readOnlyHint / destructiveHint annotations on every tool
- Multi-site through a site argument
- stdio, or loopback HTTP with an auth token

## FAQ

### Is this different from the community Ghost MCP?

Yes, and both are listed. ghst is Ghost's own CLI and covers most of the Admin API, including members, newsletters, stats and the social web, with 91 tools. The community ghost-publisher-mcp covers drafting, scheduling and publishing only, but every write needs a preview hash and an explicit confirmation, which is the stricter model if publishing is all the agent does.

### How do I authenticate?

Create a staff access token in Ghost Admin under your user profile, then either run `ghst auth login` once or set GHOST_URL and GHOST_STAFF_ACCESS_TOKEN for the server. Add more sites with ghst auth login and select them per call with the site argument; ghost_site_list shows the aliases without credentials.

### Can the agent delete posts?

Only if you allow it twice. Delete tools require confirm=true in the call and also refuse to run unless the server was started with --enable-destructive-actions. Leave that flag off and the agent can draft, update and publish but not delete.

### Can I limit which tools load?

Yes. `--tools` takes all or a comma-separated list of groups, for example `--tools posts,tags,stats`. Fewer groups also means a smaller tools/list for the model to read.

### Is it stable?

Not yet. The README marks ghst as beta and pre-1.0, says to use it with caution and to back up critical data. Pin a version in your client config rather than tracking latest.

## Changelog

- **2026-11-10** — Added alongside the community Ghost server: Ghost's own ghst CLI has an MCP server mode. The community entry had said Ghost publishes no MCP server.
