ghost-publisher

v0.10.0
io.github.BoraGkc/ghost-publisher Checked 22 hours ago Published 3 months ago

Local-first MCP server for safe Ghost authoring, diagnostics, scheduling, and publishing.

Values you need

VariableWhat it is
GHOST_URLrequired URL of the Ghost site.
GHOST_ADMIN_API_KEYrequired secret Admin API key from a Ghost custom integration.
GHOST_API_VERSIONoptional Ghost Admin API compatibility version; defaults to v5.0.
GHOST_PERMISSION_PROFILEoptional Permission profile: read-only, draft-editor, scheduler, or publisher. Defaults to publisher.
GHOST_READ_ONLYoptional Legacy alias for the read-only profile. Do not combine with GHOST_PERMISSION_PROFILE.
GHOST_UPLOAD_ROOTSoptional Allowed absolute directories for local image uploads.
GHOST_DEPLOY_HOOK_URLoptional secret Optional deployment hook called once after a completely successful publish or unpublish batch.
GHOST_PUBLIC_POST_URL_TEMPLATEoptional Optional public post URL containing {slug} for live checks.
GHOST_PUBLIC_PAGE_URL_TEMPLATEoptional Optional public page URL containing {slug} for headless live checks.

npm (npx)

Requires Node.js 18+

Run in a terminal
claude mcp add ghost-publisher -e 'GHOST_ADMIN_API_KEY=<GHOST_ADMIN_API_KEY>' -e 'GHOST_URL=<GHOST_URL>' -- npx -y ghost-publisher-mcp@0.10.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "ghost-publisher": {
      "args": [
        "-y",
        "ghost-publisher-mcp@0.10.0"
      ],
      "command": "npx",
      "env": {
        "GHOST_ADMIN_API_KEY": "<GHOST_ADMIN_API_KEY>",
        "GHOST_URL": "<GHOST_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "ghost-publisher": {
      "args": [
        "-y",
        "ghost-publisher-mcp@0.10.0"
      ],
      "command": "npx",
      "env": {
        "GHOST_ADMIN_API_KEY": "<GHOST_ADMIN_API_KEY>",
        "GHOST_URL": "<GHOST_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "GHOST_ADMIN_API_KEY",
      "id": "ghost-admin-api-key",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "GHOST_URL",
      "id": "ghost-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "ghost-publisher": {
      "args": [
        "-y",
        "ghost-publisher-mcp@0.10.0"
      ],
      "command": "npx",
      "env": {
        "GHOST_ADMIN_API_KEY": "${input:ghost-admin-api-key}",
        "GHOST_URL": "${input:ghost-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.ghost-publisher]
command = "npx"
args = ["-y", "ghost-publisher-mcp@0.10.0"]
env = { "GHOST_ADMIN_API_KEY" = "<GHOST_ADMIN_API_KEY>", "GHOST_URL" = "<GHOST_URL>" }

For AI agents

  1. Ask the user for: GHOST_URL, GHOST_ADMIN_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json