Ghost MCP by usefulapi
Read posts, members and tiers; create draft posts and edit post text in Ghost.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"ghost": {
"url": "https://ghost.usefulapi.io/mcp"
}
}
}远程端点
https://ghost.usefulapi.io/mcpstreamable-http它能做什么
工具清单
工具(14)
🟢ghost_get_site
Get the site title, URL, Ghost version and settings. Use it first to confirm which site is connected. Ghost Admin API: GET /site/.
输入模式
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ghost_list_posts(filter, limit, page, order, formats)
List posts with their status, title, slug, authors and tags. Filter by status with filter, for example "status:draft" or "status:published". Ghost Admin API: GET /posts/.
输入模式
{
"type": "object",
"properties": {
"filter": {
"description": "NQL filter, for example \"status:published\" or \"status:free\".",
"type": "string",
"maxLength": 500
},
"limit": {
"description": "Results per page (1-100, default 15).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"order": {
"description": "Sort order, for example \"published_at desc\".",
"type": "string",
"maxLength": 100
},
"formats": {
"description": "Post body format to return: \"html\" (default), \"lexical\", or \"html,lexical\".",
"type": "string",
"enum": [
"html",
"lexical",
"html,lexical"
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ghost_get_post(post_id, formats)
Get one post by id, including its body and updated_at. Keep updated_at: ghost_update_post needs it. Ghost Admin API: GET /posts/{id}/.
输入模式
{
"type": "object",
"properties": {
"post_id": {
"type": "string",
"pattern": "^[0-9a-f]{24}$",
"description": "The Ghost id (24 characters)."
},
"formats": {
"description": "Post body format to return: \"html\" (default), \"lexical\", or \"html,lexical\".",
"type": "string",
"enum": [
"html",
"lexical",
"html,lexical"
]
}
},
"required": [
"post_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ghost_list_pages(filter, limit, page, order)
List static pages with their status, title and slug. Ghost Admin API: GET /pages/.
输入模式
{
"type": "object",
"properties": {
"filter": {
"description": "NQL filter, for example \"status:published\" or \"status:free\".",
"type": "string",
"maxLength": 500
},
"limit": {
"description": "Results per page (1-100, default 15).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"order": {
"description": "Sort order, for example \"published_at desc\".",
"type": "string",
"maxLength": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ghost_list_tags(filter, limit, page, order)
List post tags with their name, slug and post count. Ghost Admin API: GET /tags/.
输入模式
{
"type": "object",
"properties": {
"filter": {
"description": "NQL filter, for example \"status:published\" or \"status:free\".",
"type": "string",
"maxLength": 500
},
"limit": {
"description": "Results per page (1-100, default 15).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"order": {
"description": "Sort order, for example \"published_at desc\".",
"type": "string",
"maxLength": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ghost_list_members(filter, search, limit, page, order)
List members (subscribers). Filter with NQL, for example "status:free" (free), "status:-free" (paid), or "subscribed:true". Search by name or email with search. Ghost Admin API: GET /members/.
输入模式
{
"type": "object",
"properties": {
"filter": {
"description": "NQL filter, for example \"status:published\" or \"status:free\".",
"type": "string",
"maxLength": 500
},
"search": {
"description": "Search text (name or email).",
"type": "string",
"maxLength": 200
},
"limit": {
"description": "Results per page (1-100, default 15).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"order": {
"description": "Sort order, for example \"published_at desc\".",
"type": "string",
"maxLength": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ghost_get_member(member_id)
Get one member by id: status, email, labels, subscriptions and the last seen time. Ghost Admin API: GET /members/{id}/.
输入模式
{
"type": "object",
"properties": {
"member_id": {
"type": "string",
"pattern": "^[0-9a-f]{24}$",
"description": "The Ghost id (24 characters)."
}
},
"required": [
"member_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ghost_list_tiers(include, filter, limit, page)
List paid membership tiers with their name, status, and optional prices and benefits. Set include to monthly_price,yearly_price,benefits for prices. Ghost Admin API: GET /tiers/.
输入模式
{
"type": "object",
"properties": {
"include": {
"description": "Extra fields: monthly_price, yearly_price, benefits (comma separated).",
"type": "string",
"maxLength": 100
},
"filter": {
"description": "NQL filter, for example \"status:published\" or \"status:free\".",
"type": "string",
"maxLength": 500
},
"limit": {
"description": "Results per page (1-100, default 15).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ghost_list_newsletters(filter, limit, page, order)
List newsletters with their name, status and sender settings. Ghost Admin API: GET /newsletters/.
输入模式
{
"type": "object",
"properties": {
"filter": {
"description": "NQL filter, for example \"status:published\" or \"status:free\".",
"type": "string",
"maxLength": 500
},
"limit": {
"description": "Results per page (1-100, default 15).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"order": {
"description": "Sort order, for example \"published_at desc\".",
"type": "string",
"maxLength": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ghost_list_offers(filter, limit, page, order)
List member offers (discounts or trials for paid tiers) with their code, status and redemption type. Ghost Admin API: GET /offers/.
输入模式
{
"type": "object",
"properties": {
"filter": {
"description": "NQL filter, for example \"status:published\" or \"status:free\".",
"type": "string",
"maxLength": 500
},
"limit": {
"description": "Results per page (1-100, default 15).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"order": {
"description": "Sort order, for example \"published_at desc\".",
"type": "string",
"maxLength": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ghost_list_labels(filter, limit, page)
List member labels, the segments you use to group members. Ghost Admin API: GET /labels/.
输入模式
{
"type": "object",
"properties": {
"filter": {
"description": "NQL filter, for example \"status:published\" or \"status:free\".",
"type": "string",
"maxLength": 500
},
"limit": {
"description": "Results per page (1-100, default 15).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ghost_list_users(filter, limit, page)
List staff users (authors and admins) with their role, slug and status. Ghost Admin API: GET /users/.
输入模式
{
"type": "object",
"properties": {
"filter": {
"description": "NQL filter, for example \"status:published\" or \"status:free\".",
"type": "string",
"maxLength": 500
},
"limit": {
"description": "Results per page (1-100, default 15).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴ghost_create_draft_post(title, html, custom_excerpt, tags)
Create a new post as a DRAFT from HTML. It never publishes and never sends email; publish it in Ghost Admin. Ghost Admin API: POST /posts/?source=html.
输入模式
{
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"html": {
"type": "string",
"maxLength": 500000,
"description": "The post body as HTML. Ghost converts it into its own format."
},
"custom_excerpt": {
"description": "Short summary shown in listings.",
"type": "string",
"maxLength": 500
},
"tags": {
"description": "Tag names. Ghost finds or creates each tag by name.",
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 191
}
}
},
"required": [
"title",
"html"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴ghost_update_post(post_id, updated_at, title, html, custom_excerpt, ...)
Change a post's title, HTML, excerpt or tags. Pass updated_at from ghost_get_post (Ghost rejects a stale update). It does not change the status and never sends email. An already published post shows the new text at once. Ghost Admin API: PUT /posts/{id}/?source=html.
输入模式
{
"type": "object",
"properties": {
"post_id": {
"type": "string",
"pattern": "^[0-9a-f]{24}$",
"description": "The Ghost id (24 characters)."
},
"updated_at": {
"type": "string",
"minLength": 10,
"maxLength": 40,
"description": "The post's updated_at from ghost_get_post."
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"html": {
"type": "string",
"maxLength": 500000,
"description": "The post body as HTML. Ghost converts it into its own format."
},
"custom_excerpt": {
"type": "string",
"maxLength": 500
},
"tags": {
"description": "Tag names. Ghost finds or creates each tag by name.",
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 191
}
}
},
"required": [
"post_id",
"updated_at"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}社区
证据