
mfydev/ghost-mcp 是从 https://github.com/mfydev/ghost-mcp. 导入的 MCP 服务器候选。
概览
mfydev/ghost-mcp 是从 https://github.com/mfydev/ghost-mcp. 导入的 MCP 服务器候选。
概述(AI 翻译)
一台模型上下文协议(MCP)服务器,通过如Claude等LLM接口与Ghost CMS交互。该服务器利用JWT认证和丰富的MCP工具,提供安全且全面的Ghost博客访问,用于管理帖子、用户、会员、分级、优惠和通讯。
特色
- 带有[[T0]的安全幽灵管理员API请求
- 全面的实体访问,包括帖子、用户、会员、层级、优惠和通讯
- 高级搜索功能,支持模糊匹配和精确匹配选项
- 为幽灵实体提供详细且人类可读的输出
- 使用自定义
GhostError异常实现鲁棒错误处理 - 通过MCP上下文集成日志支持,增强故障排除能力
用途
要在MCP客户端(例如Claude Desktop)中使用,请在你的claude_desktop_config.json中添加以下内容:
可用资源
以下幽灵CMS资源可通过该MCP服务器获得:
- 帖子:发布在你Ghost网站上的文章和内容。
- 会员:您网站的注册用户和订阅者。
- 通讯:通过Ghost管理和发送的电子邮件通讯。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Ghost MCP Server
A Model Context Protocol (MCP) server for interacting with Ghost CMS through LLM interfaces like Claude. This server provides secure and comprehensive access to your Ghost blog, leveraging JWT authentication and a rich set of MCP tools for managing posts, users, members, tiers, offers, and newsletters.
Features
- Secure Ghost Admin API requests with
@tryghost/admin-api - Comprehensive entity access including posts, users, members, tiers, offers, and newsletters
- Advanced search functionality with both fuzzy and exact matching options
- Detailed, human-readable output for Ghost entities
- Robust error handling using custom
GhostErrorexceptions - Integrated logging support via MCP context for enhanced troubleshooting
Usage
To use this with MCP clients, for instance, Claude Desktop, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"ghost-mcp": {
"command": "npx",
"args": ["-y", "@fanyangmeng/ghost-mcp"],
"env": {
"GHOST_API_URL": "https://yourblog.com",
"GHOST_ADMIN_API_KEY": "your_admin_api_key",
"GHOST_API_VERSION": "v5.0"
}
}
}
}
Available Resources
The following Ghost CMS resources are available through this MCP server:
- Posts: Articles and content published on your Ghost site.
- Members: Registered users and subscribers of your site.
- Newsletters: Email newsletters managed and sent via Ghost.
- Offers: Promotional offers and discounts for members.
- Invites: Invitations for new users or staff to join your Ghost site.
- Roles: User roles and permissions within the Ghost admin.
- Tags: Organizational tags for posts and content.
- Tiers: Subscription tiers and plans for members.
- Users: Admin users and staff accounts.
- Webhooks: Automated event notifications to external services.
Available Tools
This MCP server exposes a comprehensive set of tools for managing your Ghost CMS via the Model Context Protocol. Each resource provides a set of operations, typically including browsing, reading, creating, editing, and deleting entities. Below is a summary of the available tools:
Posts
- Browse Posts: List posts with optional filters, pagination, and ordering.
- Read Post: Retrieve a post by ID or slug.
- Add Post: Create a new post with title, content, and status.
- Edit Post: Update an existing post by ID.
- Delete Post: Remove a post by ID.
Members
- Browse Members: List members with filters and pagination.
- Read Member: Retrieve a member by ID or email.
- Add Member: Create a new member.
- Edit Member: Update member details.
- Delete Member: Remove a member.
Newsletters
- Browse Newsletters: List newsletters.
- Read Newsletter: Retrieve a newsletter by ID.
- Add Newsletter: Create a new newsletter.
安装
npx -y @fanyangmeng/ghost-mcp配置
{
"mcpServers": {
"ghost-mcp": {
"command": "npx",
"args": ["-y", "@fanyangmeng/ghost-mcp"],
"env": {
"GHOST_API_URL": "https://yourblog.com",
"GHOST_ADMIN_API_KEY": "your_admin_api_key",
"GHOST_API_VERSION": "v5.0"
}
}
}
}