Ghost MCP by usefulapi
Read posts, members and tiers; create draft posts and edit post text in Ghost.
Sollte ich dies verwenden
Qualität und Sicherheit
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"ghost": {
"url": "https://ghost.usefulapi.io/mcp"
}
}
}Remote-Endpunkte
https://ghost.usefulapi.io/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (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/.
Eingabe-Schema
{
"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/.
Eingabe-Schema
{
"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}/.
Eingabe-Schema
{
"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/.
Eingabe-Schema
{
"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/.
Eingabe-Schema
{
"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/.
Eingabe-Schema
{
"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}/.
Eingabe-Schema
{
"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/.
Eingabe-Schema
{
"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/.
Eingabe-Schema
{
"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/.
Eingabe-Schema
{
"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/.
Eingabe-Schema
{
"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/.
Eingabe-Schema
{
"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.
Eingabe-Schema
{
"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.
Eingabe-Schema
{
"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"
}Community
Nachweis