Skip to main content
Glama

Ghost MCP Server

by mtane0412

Ghost MCP Server

A Model Context Protocol (MCP) server that integrates with the Ghost Admin API. This server enables programmatic access to Ghost CMS features including post management, page management, member management, and more.

Features

  • Post Management (create, read, update, delete, search)
  • Page Management (create, read, update, delete)
  • Tag Management
  • Author Management
  • Member Management (create, read, update, delete, search)
  • Image Upload Support

Prerequisites

  • Node.js (v18 or higher recommended)
  • Ghost CMS instance
  • Ghost Admin API key

Installation

Install the package using npm:

npm install @mtane0412/ghost-mcp-server

Configuration

  1. Create a new custom integration in your Ghost Admin dashboard under Settings > Integrations.
  2. Set the following environment variables:
# macOS/Linux export GHOST_URL="https://your-ghost-blog.com" export GHOST_ADMIN_API_KEY="your_admin_api_key" # Windows (PowerShell) $env:GHOST_URL="https://your-ghost-blog.com" $env:GHOST_ADMIN_API_KEY="your_admin_api_key"

Alternatively, you can create a .env file:

GHOST_URL=https://your-ghost-blog.com GHOST_ADMIN_API_KEY=your_admin_api_key

Usage

After installation, start the server with:

npx @mtane0412/ghost-mcp-server

Available Tools

get_posts

Retrieves a list of blog posts.

Input:

{ "limit": "number", // Optional: Number of posts to retrieve (1-100, default: 10) "page": "number" // Optional: Page number (default: 1) }

get_post

Retrieves a specific post by ID.

Input:

{ "id": "string" // Required: Post ID }

search_posts

Searches for posts.

Input:

{ "query": "string", // Required: Search query "limit": "number" // Optional: Number of posts to retrieve (1-100, default: 10) }

create_post

Creates a new post.

Input:

{ "title": "string", // Required: Post title "html": "string", // Optional: HTML content "lexical": "string", // Optional: Lexical content "status": "string", // Optional: Post status (published/draft/scheduled) "visibility": "string" // Optional: Visibility level (public/members/paid/tiers) }

update_post

Updates an existing post.

Input:

{ "id": "string", // Required: Post ID "title": "string", // Optional: Post title "html": "string", // Optional: HTML content "lexical": "string", // Optional: Lexical content "status": "string" // Optional: Post status }

delete_post

Deletes a post.

Input:

{ "id": "string" // Required: Post ID }

get_pages

Retrieves a list of pages.

Input:

{ "limit": "number", // Optional: Number of pages to retrieve (1-100, default: 10) "page": "number", // Optional: Page number (default: 1) "order": "string", // Optional: Sort order "formats": ["string"], // Optional: Content formats (html/mobiledoc/lexical) "include": ["string"] // Optional: Related data to include (authors/tags) }

get_members

Retrieves a list of members.

Input:

{ "limit": "number", // Optional: Number of members to retrieve (1-100, default: 10) "page": "number", // Optional: Page number (default: 1) "order": "string", // Optional: Sort order "include": ["string"] // Optional: Related data to include (labels/newsletters) }

search_members

Searches for members.

Input:

{ "query": "string", // Required: Search query "limit": "number", // Optional: Number of members to retrieve (1-100, default: 10) "include": ["string"] // Optional: Related data to include (labels/newsletters) }

upload_image

Uploads an image.

Input:

{ "file": "string", // Required: Base64 encoded image data "purpose": "string" // Optional: Image purpose (image/profile_image/icon) }

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspect

The Inspector will provide a URL to access debugging tools in your browser.

License

MIT License

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

与 Ghost Admin API 集成,允许以编程方式管理 Ghost CMS 功能,包括帖子、页面、标签、作者、成员和图像上传,提供高效的内容管理功能。

  1. 特征
    1. 先决条件
      1. 安装
        1. 配置
          1. 用法
            1. 可用工具
              1. 获取帖子
              2. 获取帖子
              3. 搜索帖子
              4. 创建帖子
              5. 更新帖子
              6. 删除帖子
              7. 获取页面
              8. 获取成员
              9. 搜索成员
              10. 上传图片
              11. 调试
            2. 执照

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                Enables interaction with Ghost CMS via LLM interfaces, providing secure access through JWT authentication for managing posts, users, and newsletters with detailed output and error handling.
                Last updated -
                241
                93
                MIT License
                • Linux
              • -
                security
                A
                license
                -
                quality
                An implementation of the Model Context Protocol Server that allows AI clients like Cursor or Claude Desktop to manage Ghost CMS blogs by exposing capabilities like creating posts, adding tags, and uploading images.
                Last updated -
                2
                MIT License
              • A
                security
                A
                license
                A
                quality
                Enables AI assistants to interact with WordPress sites through REST APIs, allowing programmatic management of posts, users, comments, categories, and tags with secure authentication.
                Last updated -
                29
                44
                MIT License
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that enables management of Ghost blog content (posts, pages, and tags) through the Ghost Admin API with SSE transport support.
                Last updated -

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/mtane0412/ghost-mcp-server'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server