{"id":26937657,"url":"https://github.com/MFYDev/ghost-mcp","last_synced_at":"2025-04-02T13:15:48.643Z","repository":{"id":276926144,"uuid":"930747221","full_name":"MFYDev/ghost-mcp","owner":"MFYDev","description":"A Model Context Protocol (MCP) server for interacting with Ghost CMS through LLM interfaces like Claude. Allow you to control your Ghost blog by simply asking Claude etc.","archived":false,"fork":false,"pushed_at":"2025-03-12T14:46:13.000Z","size":13225,"stargazers_count":27,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T01:49:09.301Z","etag":null,"topics":["claude","claude-ai","ghost-blog","ghost-cms","mcp","mcp-server","modelcontextprotocol"],"latest_commit_sha":null,"homepage":"https://fanyangmeng.blog/introducing-ghost-mcp-a-model-context-protocol-server-for-ghost-cms/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MFYDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-11T06:23:30.000Z","updated_at":"2025-03-26T17:58:14.000Z","dependencies_parsed_at":"2025-02-11T07:40:58.515Z","dependency_job_id":null,"html_url":"https://github.com/MFYDev/ghost-mcp","commit_stats":null,"previous_names":["mfydev/ghost-mcp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MFYDev%2Fghost-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MFYDev%2Fghost-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MFYDev%2Fghost-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MFYDev%2Fghost-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MFYDev","download_url":"https://codeload.github.com/MFYDev/ghost-mcp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246819781,"owners_count":20839095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude","claude-ai","ghost-blog","ghost-cms","mcp","mcp-server","modelcontextprotocol"],"created_at":"2025-04-02T13:15:26.459Z","updated_at":"2025-04-02T13:15:48.636Z","avatar_url":"https://github.com/MFYDev.png","language":"Python","readme":"# Ghost MCP Server\n\n[![smithery badge](https://smithery.ai/badge/@MFYDev/ghost-mcp)](https://smithery.ai/server/@MFYDev/ghost-mcp)\n\n\u003ca href=\"https://glama.ai/mcp/servers/vor63xn7ky\"\u003e\u003cimg width=\"380\" height=\"200\" src=\"https://glama.ai/mcp/servers/vor63xn7ky/badge\" alt=\"Ghost Server MCP server\" /\u003e\u003c/a\u003e\n\nA 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.\n\n![demo](./assets/ghost-mcp-demo.gif)\n\n## Features\n\n- Secure JWT Authentication for Ghost Admin API requests\n- Comprehensive entity access including posts, users, members, tiers, offers, and newsletters\n- Advanced search functionality with both fuzzy and exact matching options\n- Detailed, human-readable output for Ghost entities\n- Robust error handling using custom `GhostError` exceptions\n- Integrated logging support via MCP context for enhanced troubleshooting\n\n## Installation\n\n### Installing via Smithery\n\nTo install Ghost MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@MFYDev/ghost-mcp):\n\n```bash\nnpx -y @smithery/cli install @MFYDev/ghost-mcp --client claude\n```\n\n### Manual Installation\n```bash\n# Clone repository\ngit clone git@github.com/mfydev/ghost-mcp.git\ncd ghost-mcp\n\n# Create virtual environment and install\nuv venv\nsource .venv/bin/activate  # On Windows: .venv\\Scripts\\activate\nuv pip install -e .\n```\n\n## Requirements\n\n- Python ≥ 3.12\n- Running Ghost instance with Admin API access (v5.x+ recommended)\n- Node.js (for testing with MCP Inspector)\n\n## Usage\n\n### Environment Variables\n\n```bash\nGHOST_API_URL=https://yourblog.com  # Your Ghost Admin API URL\nGHOST_STAFF_API_KEY=your_staff_api_key                 # Your Ghost Staff API key\n```\n\n### Usage with MCP Clients\nTo use this with MCP clients, for instance, Claude Desktop, add the following to your `claude_desktop_config.json`:\n```json\n{\n  \"mcpServers\": {\n    \"ghost\": {\n      \"command\": \"/Users/username/.local/bin/uv\",\n      \"args\": [\n        \"--directory\",\n        \"/path/to/ghost-mcp\",\n        \"run\",\n        \"src/main.py\"\n      ],\n      \"env\": {\n        \"GHOST_API_URL\": \"your_ghost_api_url\",\n        \"GHOST_STAFF_API_KEY\": \"your_staff_api_key\"\n      }\n    }\n  }\n}\n```\n\n### Testing with MCP Inspector\n\n```bash\nGHOST_API_URL=your_ghost_api_url GHOST_STAFF_API_KEY=your_staff_api_key npx @modelcontextprotocol/inspector uv --directory /path/to/ghost-mcp run src/main.py\n```\n\n## Available Tools\n\nGhost MCP now provides a single unified tool that provides access to all Ghost CMS functionality:\n\n### Main Tool\n- `ghost`: Central tool for accessing all Ghost CMS functionality\n\n### Using the Ghost Tool\n\nThe ghost tool accepts two main parameters:\n1. `action`: The specific Ghost operation to perform\n2. `params`: A dictionary of parameters for the specified action\n\nExample usage:\n```python\n# List posts\nghost(action=\"list_posts\", params={\"format\": \"text\", \"page\": 1, \"limit\": 15})\n\n# Search posts by title\nghost(action=\"search_posts_by_title\", params={\"query\": \"Welcome\", \"exact\": False})\n\n# Create a post\nghost(action=\"create_post\", params={\n    \"post_data\": {\n        \"title\": \"New Post via MCP\",\n        \"status\": \"draft\",\n        \"lexical\": \"{\\\"root\\\":{\\\"children\\\":[{\\\"children\\\":[{\\\"detail\\\":0,\\\"format\\\":0,\\\"mode\\\":\\\"normal\\\",\\\"style\\\":\\\"\\\",\\\"text\\\":\\\"Hello World\\\",\\\"type\\\":\\\"text\\\",\\\"version\\\":1}],\\\"direction\\\":\\\"ltr\\\",\\\"format\\\":\\\"\\\",\\\"indent\\\":0,\\\"type\\\":\\\"paragraph\\\",\\\"version\\\":1}],\\\"direction\\\":\\\"ltr\\\",\\\"format\\\":\\\"\\\",\\\"indent\\\":0,\\\"type\\\":\\\"root\\\",\\\"version\\\":1}}\"\n    }\n})\n```\n\n### Available Actions\n\nThe ghost tool supports all the same actions as before, but now through a unified interface:\n\n#### Posts Actions\n- `list_posts`: List blog posts with pagination\n- `search_posts_by_title`: Search for posts by title\n- `read_post`: Retrieve full content of a specific post\n- `create_post`: Create a new post\n- `update_post`: Update a specific post\n- `delete_post`: Delete a specific post\n- `batchly_update_posts`: Update multiple posts in a single request\n\n#### Tags Actions\n- `browse_tags`: List all tags\n- `read_tag`: Retrieve specific tag information\n- `create_tag`: Create a new tag\n- `update_tag`: Update an existing tag\n- `delete_tag`: Delete a specific tag\n\n#### Users Actions\n- `list_roles`: List all available roles\n- `create_invite`: Create a new user invitation\n- `list_users`: List all users\n- `read_user`: Get details of a specific user\n- `delete_user`: Delete a specific user\n\n#### Members Actions\n- `list_members`: List members\n- `read_member`: Retrieve specific member information\n- `create_member`: Create a new member\n- `update_member`: Update an existing member\n\n#### Tiers Actions\n- `list_tiers`: List all membership tiers\n- `read_tier`: Retrieve specific tier information\n- `create_tier`: Create a new tier\n- `update_tier`: Update an existing tier\n\n#### Offers Actions\n- `list_offers`: List promotional offers\n- `read_offer`: Get specific offer information\n- `create_offer`: Create a new offer\n- `update_offer`: Update an existing offer\n\n#### Newsletters Actions\n- `list_newsletters`: List all newsletters\n- `read_newsletter`: Retrieve specific newsletter information\n- `create_newsletter`: Create a new newsletter\n- `update_newsletter`: Update an existing newsletter\n\n#### Webhooks Actions\n- `create_webhook`: Create a new webhook\n- `update_webhook`: Update an existing webhook\n- `delete_webhook`: Delete a specific webhook\n\n## Available Resources\n\nAll resources follow the URI pattern: `[type]://[id]`\n\n- `user://{user_id}`: User profiles and roles\n- `member://{member_id}`: Member details and subscriptions\n- `tier://{tier_id}`: Tier configurations\n- `offer://{offer_id}`: Offer details\n- `newsletter://{newsletter_id}`: Newsletter settings\n- `post://{post_id}`: Post content and metadata\n- `blog://info`: General blog information\n\n## Error Handling\n\nGhost 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.\n\n## Contributing\n\n1. Fork repository\n2. Create feature branch\n3. Commit changes\n4. Create pull request\n\n## License\n\nMIT\n","funding_links":[],"categories":["Developer Tools","API Integration MCP Servers","TypeScript","📚 Projects (1974 total)","Community Servers","APIs and HTTP Requests","🌐 Web Development","🗂️ Extensions by Category","Table of Contents"],"sub_categories":["API Tools","MCP Servers","💼 Professional Apps","Other Tools and Integrations"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMFYDev%2Fghost-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMFYDev%2Fghost-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMFYDev%2Fghost-mcp/lists"}