Ghost MCP Server

Ghost MCP Server

site icon
2025.04.21 0
Python内容管理AI集成内容生成
Ghost MCP Server 是一个将 Ghost CMS 与 Claude AI 通过 FastMCP 框架集成的服务器。它允许用户通过 Claude AI 直接创建和管理 Ghost CMS 中的博客文章。
View on GitHub

Overview

基本能力

产品定位

Ghost MCP Server 是一个集成工具,旨在通过 AI 增强 Ghost CMS 的内容创建和管理能力。

核心功能

  • 集成 Ghost CMS 与 Claude AI
  • 通过 Claude AI 直接创建和管理 Ghost CMS 中的博客文章
  • 支持多种博客文章参数设置,包括标题、内容、作者、标签、状态等

适用场景

  • 内容创作者希望通过 AI 辅助快速生成博客文章
  • 需要批量管理 Ghost CMS 中的博客内容
  • 希望通过自动化工具提高内容发布效率

工具列表

  • ghost_post 工具:用于创建和管理 Ghost CMS 中的博客文章

常见问题解答

  • 需要确保正确配置 Ghost API 凭证
  • 需要正确设置 Claude Desktop 的 MCP 服务器配置

使用教程

使用依赖

  • Python 3.11+
  • uv

安装教程

  1. 克隆仓库
  2. 创建虚拟环境(可选但推荐): bash uv venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
  3. 使用 uv 安装依赖(依赖定义在 pyproject.toml 中): bash uv pip install .
  4. 设置环境变量,复制 .env.example.envbash cp .env.example .env
  5. .env 文件中配置 Ghost API 凭证: GHOST_API_KEY=your_ghost_api_key_here GHOST_API_URL=https://your-ghost-blog.com/ghost/api/admin/posts GHOST_API_VERSION=v5.116.1

Claude Desktop 配置

  1. 打开 Claude Desktop
  2. 转到 Settings > Developer > MCP Servers
  3. 添加新的 MCP Server 配置,类似:
{
  "mcpServers": {
    "ghost-mcp": {
      "command": "/path/to/your/uv",
      "args": [
        "--directory",
        "/path/to/your/ghost-mcp",
        "run",
        "mcp_server.py"
      ]
    }
  }
}

替换 /path/to/your/uv 为实际的 uv 可执行文件路径,/path/to/your/ghost-mcp 为项目目录的绝对路径。

调试方式

  • 确保所有依赖已正确安装
  • 检查环境变量配置是否正确
  • 验证 Claude Desktop 的 MCP 服务器配置是否正确

许可证

该项目遵循 None 开源许可条款。