Ghost CMS MCP Server
Enables comprehensive management of Ghost CMS instances through the Admin API, supporting content operations (posts, tags), member management, newsletters, tiers, offers, and webhooks through natural language interactions.
README
Ghost MCP Server
This is a fork of MFYDev/ghost-mcp, now maintained and improved by @hithereiamaliff.
This Model Context Protocol (MCP) server provides a powerful and flexible way to manage your Ghost CMS instance using Large Language Model (LLM) interfaces. It offers comprehensive and secure access to your blog's administrative functions, allowing you to automate and streamline your content management workflows.
Features
- Robust API Integration: Utilizes direct, authenticated
axioscalls for all Admin API operations, ensuring a stable and reliable connection that is not dependent on external libraries. - Comprehensive Entity Access: Manages posts, users, members, tiers, offers, and newsletters.
- Enhanced Error Handling: Provides detailed status codes and response bodies.
- Modern Transport: Exclusively uses the Streamable HTTP transport, with all deprecated STDIO logic removed.
- Diagnostic Tools: Includes tools for troubleshooting API connectivity and configuration.
Installation & Usage
This MCP server is available through two deployment methods:
Method 1: NPM Package (Recommended for MCP Clients)
Install directly from npm:
npm install -g mcp-ghostcms
Or use with npx (no installation required):
npx mcp-ghostcms
Using with Claude Desktop
To use with MCP clients like Claude Desktop, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-ghostcms": {
"command": "npx",
"args": ["-y", "mcp-ghostcms"],
"env": {
"GHOST_API_URL": "https://yourghostbloginstance.com",
"GHOST_ADMIN_API_KEY": "your_admin_api_key",
"GHOST_API_VERSION": "v6.0"
}
}
}
}
Method 2: Smithery Cloud Platform
Deploy and run on Smithery's cloud platform:
Or for local development with Smithery:
git clone <this-repo>
cd ghost-mcp
npm install
npm run dev
This will start the server on port 8080 and open the Smithery Playground in your browser.
Configuration
This MCP server requires the following configuration:
- GHOST_API_URL: Your Ghost site URL (domain only, no path), e.g.,
https://yourghostbloginstance.com - GHOST_ADMIN_API_KEY: Your Ghost Admin API key in
id:secretformat (from Ghost Admin → Settings → Integrations). - GHOST_API_VERSION: Ghost API version (
v5.0for Ghost 5.x,v6.0for Ghost 6.x). - GHOST_CONTENT_API_KEY (optional): Your Ghost Content API key for read-only operations.
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 provides a wide array of tools to manage your Ghost CMS. These tools are exposed via the Model Context Protocol and allow for a full range of CRUD (Create, Read, Update, Delete) operations on your blog's resources. Below is an overview of the available toolset:
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.
- Edit Newsletter: Update newsletter details.
- Delete Newsletter: Remove a newsletter.
Offers
- Browse Offers: List offers.
- Read Offer: Retrieve an offer by ID.
- Add Offer: Create a new offer.
- Edit Offer: Update offer details.
- Delete Offer: Remove an offer.
Invites
- Browse Invites: List invites.
- Add Invite: Create a new invite.
- Delete Invite: Remove an invite.
Roles
- Browse Roles: List roles.
- Read Role: Retrieve a role by ID.
Tags
- Browse Tags: List tags.
- Read Tag: Retrieve a tag by ID or slug.
- Add Tag: Create a new tag.
- Edit Tag: Update tag details.
- Delete Tag: Remove a tag.
Tiers
- Browse Tiers: List tiers.
- Read Tier: Retrieve a tier by ID.
- Add Tier: Create a new tier.
- Edit Tier: Update tier details.
- Delete Tier: Remove a tier.
Users
- Browse Users: List users.
- Read User: Retrieve a user by ID or slug.
- Edit User: Update user details.
- Delete User: Remove a user.
Webhooks
- Browse Webhooks: List webhooks.
- Add Webhook: Create a new webhook.
- Delete Webhook: Remove a webhook.
Each tool is accessible via the MCP protocol and can be invoked from compatible clients. For detailed parameter schemas and usage, see the source code in
src/tools/.
Error Handling & Diagnostics
This fork includes enhanced error handling that provides detailed information about API failures:
- HTTP status codes are captured and reported
- Full response bodies are included in error messages
- Runtime configuration is logged at startup
- Diagnostic tools are available to troubleshoot connectivity issues:
admin_site_ping: Tests if the Ghost Admin API endpoint is reachableconfig_echo: Shows the current Ghost API configuration (with masked key)
These improvements make it much easier to diagnose common issues like:
- Incorrect API URL format
- Missing or malformed Admin API keys
- API version mismatches
- Network/proxy configuration problems
Development
Setup
- Clone the repository
- Install dependencies:
npm install - Create a
.envfile with your Ghost configuration:GHOST_API_URL=https://yourghostbloginstance.com GHOST_ADMIN_API_KEY=your_admin_api_key GHOST_API_VERSION=v6.0 - Build the project:
npm run build - Start the dev server:
npm run dev
Troubleshooting
If you encounter authentication or "Resource not found" errors:
- Verify your Ghost Admin API key is in the correct
id:secretformat. - Ensure your
GHOST_API_URLis the correct domain for your Ghost instance. - Use the
admin_site_pingtool to verify that the Admin API endpoint is reachable. - Check the server logs for the actual configuration being used.
Contributing
- Fork repository
- Create feature branch
- Commit changes
- Create pull request
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。