by MFYDev
Ghost-MCP is a Model Context Protocol (MCP) server that enables interaction with Ghost CMS through Large Language Model (LLM) interfaces like Claude. It allows users to manage their Ghost blog by simply using natural language commands via an LLM.
Ghost-MCP is a Model Context Protocol (MCP) server that enables interaction with Ghost CMS through Large Language Model (LLM) interfaces like Claude. It allows users to manage their Ghost blog by simply using natural language commands via an LLM.
Ghost-MCP is available as an NPM package (@fanyangmeng/ghost-mcp
). To use it with MCP clients like Claude Desktop, you need to configure your claude_desktop_config.json
file. This involves specifying the command
to run npx @fanyangmeng/ghost-mcp
and setting environment variables for your Ghost API URL, Admin API Key, and API Version.
@tryghost/admin-api
for secure interactions.GhostError
exceptions for clear troubleshooting.Q: What is the main benefit of using Ghost-MCP?
A: The main benefit is the ability to control and manage your Ghost blog using natural language through LLM interfaces, simplifying content and site administration.
Q: What are the breaking changes from the Python version to the TypeScript version?
A: The TypeScript version (v0.1.0) no longer requires Python dependencies, has a changed configuration method (now using Node.js environment variables), simplified Docker deployment, and a different installation process (now using NPM).
Q: What Ghost CMS resources can be managed with Ghost-MCP?
A: You can manage Posts, Members, Newsletters, Offers, Invites, Roles, Tags, Tiers, Users, and Webhooks.
Q: How does Ghost-MCP handle errors?
A: It uses a custom GhostError
exception to provide clear and descriptive error messages for troubleshooting API communication and processing issues.
I've completely rewritten the Ghost MCP Server from Python to TypeScript in this v0.1.0 release. This major change brings several benefits:
Please see the below updated documentation for details on migrating from the Python version. If you encounter any issues, feel free to open an issue on GitHub.
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.
@tryghost/admin-api
GhostError
exceptionsTo 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"
}
}
}
}
The following Ghost CMS resources are available through this MCP server:
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:
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/
.
Ghost MCP Server employs a custom GhostError
exception to handle API communication errors and processing issues. This ensures clear and descriptive error messages to assist with troubleshooting.
MIT
Reviews feature coming soon
Stay tuned for community discussions and feedback