Token导航 LogoToken导航TokenDH.com
Ghost MCP logo
开发工具stdio官方级别未说明来源级核验

Ghost MCP

MCP Server

@mtane0412/ghost-mcp-server

A Model Context Protocol (MCP) server that integrates with the Ghost Admin API. This server enables programmatic access to Ghost CMS features including post management, page management, member management, and more.

工具数

10

提示词数

0

GitHub Stars

2

资源数

0
API集成TypeScript开发工具

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

mtane0412

提供方

mtane0412

最后核验

2026/5/18 02:15

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx @mtane0412/ghost-mcp-server

详细介绍

Ghost MCP服务器

与Ghost Admin API集成的模型上下文协议(MCP)服务器。此服务器支持对Ghost CMS功能的编程访问,包括帖子管理、页面管理、成员管理等。

特性

  • 帖子管理(创建、阅读、更新、删除、搜索)
  • 页面管理(创建、读取、更新、删除)
  • 标签管理
  • 作者管理
  • 成员管理(创建、读取、更新、删除、搜索)
  • 图像上传支持

先决条件

  • Node.js(建议使用v18或更高版本)
  • Ghost CMS实例
  • Ghost Admin API密钥

安装

使用npm安装包:

npm install @mtane0412/ghost-mcp-server

配置

  1. 在Ghost Admin仪表板的“设置”>“集成”下创建新的自定义集成。
  1. 设置以下环境变量:
# macOS/Linux
export GHOST_URL="https://your-ghost-blog.com"
export GHOST_ADMIN_API_KEY="your_admin_api_key"

# Windows (PowerShell)
$env:GHOST_URL="https://your-ghost-blog.com"
$env:GHOST_ADMIN_API_KEY="your_admin_api_key"

或者,您可以创建 .env 文件:

GHOST_URL=https://your-ghost-blog.com
GHOST_ADMIN_API_KEY=your_admin_api_key

用法

安装后,使用以下命令启动服务器:

npx @mtane0412/ghost-mcp-server

可用工具

get_posts

检索博客文章列表。

输入:

{
  "limit": "number", // Optional: Number of posts to retrieve (1-100, default: 10)
  "page": "number"   // Optional: Page number (default: 1)
}

get_post

按ID检索特定帖子。

输入:

{
  "id": "string" // Required: Post ID
}

搜索帖子

搜索帖子。

输入:

{
  "query": "string", // Required: Search query
  "limit": "number"  // Optional: Number of posts to retrieve (1-100, default: 10)
}

create_post

创建新帖子。

输入:

{
  "title": "string",     // Required: Post title
  "html": "string",      // Optional: HTML content
  "lexical": "string",   // Optional: Lexical content
  "status": "string",    // Optional: Post status (published/draft/scheduled)
  "visibility": "string" // Optional: Visibility level (public/members/paid/tiers)
}

update_post

更新现有帖子。

输入:

{
  "id": "string",       // Required: Post ID
  "title": "string",    // Optional: Post title
  "html": "string",     // Optional: HTML content
  "lexical": "string",  // Optional: Lexical content
  "status": "string"    // Optional: Post status
}

删除_发布

删除帖子。

输入:

{
  "id": "string" // Required: Post ID
}

获取页面

检索页面列表。

输入:

{
  "limit": "number",     // Optional: Number of pages to retrieve (1-100, default: 10)
  "page": "number",      // Optional: Page number (default: 1)
  "order": "string",     // Optional: Sort order
  "formats": ["string"], // Optional: Content formats (html/mobiledoc/lexical)
  "include": ["string"]  // Optional: Related data to include (authors/tags)
}

获取成员

检索成员列表。

输入:

{
  "limit": "number",     // Optional: Number of members to retrieve (1-100, default: 10)
  "page": "number",      // Optional: Page number (default: 1)
  "order": "string",     // Optional: Sort order
  "include": ["string"]  // Optional: Related data to include (labels/newsletters)
}

search_members

搜索成员。

输入:

{
  "query": "string",     // Required: Search query
  "limit": "number",     // Optional: Number of members to retrieve (1-100, default: 10)
  "include": ["string"]  // Optional: Related data to include (labels/newsletters)
}

upload_image

上传图像。

输入:

{
  "file": "string",   // Required: Base64 encoded image data
  "purpose": "string" // Optional: Image purpose (image/profile_image/icon)
}

调试

由于MCP服务器通过stdio进行通信,调试可能具有挑战性。我们建议使用 MCP检查员,可作为包脚本使用:

npm run inspect

检查器将提供一个URL,用于访问浏览器中的调试工具。

许可证

MIT许可证

目录标签

目录标签

API集成TypeScript开发工具developer-toolsghost-mcp-servercms-integrationapi-server内容管理系统本地部署API服务器博客管理成员管理图像上传

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

部署方式(deploymentType,部署类型)

remote-capable

来源包(packageName,安装包名)

@mtane0412/ghost-mcp-server

工具数量(toolCount,工具数)

10

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiononeremote-capable

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP