Ghost MCP Server update migrate to TypeScript with enhanced security reliability and simplified deployment
Ghost MCP Server is an advanced Model Context Protocol (MCP) server specifically designed for interacting with Ghost Content Management System (CMS) through Language Models (LLMs), such as Anthropic's Claude. This server provides secure and comprehensive access to your Ghost blog, enabling rich entity management and robust interaction capabilities.
The Ghost MCP Server boasts several key features that enhance its compatibility with various AI applications and streamline data interactions within the Ghost CMS:
By leveraging the @tryghost/admin-api
package, this server ensures secure Admin API requests, providing a reliable bridge between your Ghost blog and LLM interfaces.
The server supports a wide range of Ghost entities, including posts, users, members, tiers, offers, and newsletters. This comprehensive access facilitates detailed management and interaction with the Ghost CMS via standardized MCP tools.
Ghost MCP Server implements both fuzzy and exact matching options for advanced search functionality, ensuring precise and efficient data retrieval.
You can expect human-readable output from Ghost entities, making it easier to work with and understand the data.
The server employs custom GhostError
exceptions for robust error handling, providing clear and descriptive messages that aid in troubleshooting.
The architecture of the Ghost MCP Server is built around the Model Context Protocol (MCP), which acts as a universal adapter for AI applications. This protocol ensures seamless integration with various LLM interfaces like Claude Desktop, Continue, Cursor, and more.
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
graph TB
subgraph Ghost CMS Resources
G1[Posts]
G2[Members]
G3[Newsletters]
G4[Offers]
G5[Invites]
G6[Roles]
G7[Tiers]
G8[Users]
G9/WebAPI Hooks
G10[Tags]
end
subgraph MCP Tools (Operations)
T1[Browse]
T2[Read]
T3[Create]
T4[Edit]
T5[Delete]
end
G1 --> T1;G1 --> T2;G1 --> T3;G1 --> T4;G1 --> T5
G2 --> T1;G2 --> T2;G2 --> T3;G2 --> T4;G2 --> T5
G3 --> T1;G3 --> T2;G3 --> T3;G3 --> T4;G3 --> T5
G4 --> T1;G4 --> T2;G4 --> T3;G4 --> T4;G4 --> T5
G5 --> T1;G5 --> T2;G5 --> T3;G5 --> T4;G5 --> T5
G6 --> T1;G6 --> T2;G6 --> T3;G6 --> T4;G6 --> T5
G7 --> T1;G7 --> T2;G7 --> T3;G7 --> T4;G7 --> T5
G8 --> T1;G8 --> T2;G8 --> T3;G8 --> T4;G8 --> T5
G9 --> T1;G9 --> T2;G9 --> T3;G9 --> T4;G9 --> T5
G10 --> T1;G10 --> T2;G10 --> T3;G10 --> T4;G10 --> T5
To use Ghost MCP Server with your AI application, follow these steps:
npx install @fanyangmeng/ghost-mcp
You need to set the following environment variables in your .env
file or directly within your script:
GHOST_API_URL=https://yourblog.com
GHOST_ADMIN_API_KEY=your_admin_api_key
GHOST_API_VERSION=v5.0
Once configured, start the MCP server with the necessary arguments:
npm run start -- -y @fanyangmeng/ghost-mcp
Ghost MCP Server can be leveraged in various AI workflows to enhance interaction and management capabilities within Ghost CMS. Here are two real-world scenarios:
AI applications like Claude Desktop can use Ghost MCP Server to automatically manage blog posts, such as creating new drafts, publishing updates, and removing outdated content.
Example Implementation:
AI tools can automate member management tasks, ensuring that Ghost members are appropriately engaged with newsletters, offers, and tier-based access.
Example Implementation:
Ghost MCP Server is compatible with the following MCP clients:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
To integrate Ghost MCP Server with these clients, ensure that the claude_desktop_config.json
or equivalent configuration file includes the server settings.
{
"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"
}
}
}
}
Ghost MCP Server is designed to be highly performant and compatible across different environments. It supports various configurations and can scale based on the specific needs of your Ghost CMS.
Workflow | Supported |
---|---|
Post Management | ✅ |
Member Engagements | ✅ |
Content Insights | ❌ (Requires additional NLP tools) |
For advanced configuration and security, note the following:
Use environment variables for secure settings. For example, store sensitive information like API keys in .env
files.
GHOST_API_URL=https://yourblog.com
GHOST_ADMIN_API_KEY=your_admin_api_key
How do I integrate Ghost MCP Server with Continue?
claude_desktop_config.json
for integration, ensuring that environment variables are correctly set for both servers.Can I use this server with Cursor?
How do I change API keys if needed?
GHOST_ADMIN_API_KEY
environment variable in your .env
file or directly within the script to switch API keys securely.What happens if there are multiple MCP Servers configured?
Can I customize error messages from GhostError exceptions?
GhostError
handling by modifying the exception class in your codebase to suit specific needs.This comprehensive documentation establishes Ghost MCP Server as a valuable tool for extending and automating interactions with your Ghost CMS through advanced LLMs.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods