Ghost
Drive Ghost (open-source publishing platform) from any AI agent: posts, pages, tags, members, newsletters. 12 tools, Admin API JWT auth.
7 天免费 · 无需信用卡 · EU 托管
问 Ghost 任何事
通过 AnythingMCP 对 Ghost 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。
在 Cloud 上安装 GhostClaude 是 AI,可能会出错。请核对回答。
2 分钟设置
- 1在 cloud.anythingmcp.com 开始免费试用。
- 2在连接器商店点击 Ghost。提示时粘贴凭据。
- 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
Ghost 指南
面向主流 AI 客户端的逐步设置。
配置 Ghost
直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。
This connector uses the Ghost Admin API v5 (ghost.org/docs/admin-api/).
Setup:
- Sign in to Ghost Admin → Settings → Advanced → Integrations → Add custom integration.
- Copy the Admin API Key — format is
<id>:<secret>(e.g.5f3a...c4:b9d8...e2). - Set:
GHOST_ADMIN_API_URL= your Ghost site's admin API base, e.g.https://yoursite.com/ghost/api/adminGHOST_ADMIN_API_KEY= the fullid:secretkey from step 2
Authentication — JWT generation required: Ghost's Admin API does NOT accept the raw API key. Each request needs a JWT signed with the secret half. The JWT is short-lived (5 min) and has these claims:
alg: 'HS256', kid: <id_part>, typ: 'JWT'
exp: now+5min, iat: now, aud: '/admin/'
This connector currently expects the OPERATOR or external orchestrator to generate the JWT and pass it as GHOST_ADMIN_JWT — the engine then sends Authorization: Ghost ${GHOST_ADMIN_JWT}. For a proper LOGIN_TOKEN-style auto-rotation see the Sorare adapter as the reference pattern; that's a future enhancement.
Workaround for testing: use the official @tryghost/admin-api JS SDK to generate a JWT and copy it as GHOST_ADMIN_JWT. Or use the Ghost CLI: ghost generate-jwt.
Content API alternative: for read-only public-published content, the simpler Content API uses a single key as a query parameter — no JWT. Switch baseUrl to /ghost/api/content and use a Content API key.
Post status: draft, published, scheduled, sent.
Mobiledoc vs Lexical: Ghost stores post content in either format. Modern Ghost (v5+) defaults to Lexical (lexical field). Set html on writes — Ghost converts to its internal format.
Pagination: ?page=N&limit=M (max 100 for posts/pages, 15 for some). Response has meta.pagination.
Webhooks out of scope.
Out of scope here: themes, settings, redirects management, oEmbed.