Skip to main content
All connectors
qbash Connectors / Ghost

Ghost MCP serverand Python AI tasks

qbash hosts a Ghost MCP server you can use in Claude, ChatGPT, Codex, Cursor, Grok Bot and Muse. Developers use qbash Tasks to write cloud-hosted Python functions that pair Ghost with models such as Claude and GPT.

Add the qbash MCP

Use Ghost from Claude Code, Codex, Cursor and other MCP clients. Connect Ghost in qbash, and your agent can work with its data and build Tasks that call it.

claude mcp add --transport http qbash https://mcp.qbash.com/mcp

Then run /mcp in Claude Code and sign in with qbash.

  • Read the site's title, URL and Ghost version
  • List posts with an NQL filter on status, tag, author or publish date
  • Read one post by ID or slug with its HTML, tags, authors and email status
  • Create a draft, scheduled or published post from HTML or Lexical
  • Edit a post's content, tags or excerpt, or schedule or publish it
  • Publish a post and email it to a newsletter's subscribers, or to a segment of them
Read the docs

Write a Ghost task in Python

A qbash Task is a Python function hosted in the cloud. Python is the runtime and defines the process, and built-in inline prompts run on leading models such as Claude, GPT, Gemini and Grok.

Run a Task on a schedule, from an HTTP request or when a connected app sends an event. Your agents and chat tools call it over MCP.

Each run is logged with its inputs and results, and you can turn data logging off for any Task. Every Task has version control, and each run is locked to the version it ran.

Turn a GitHub release into a Ghost draft post

A GitHub release webhook posts the release to the Task. An inline prompt rewrites the release notes as a short post for readers, and create_post saves it as a draft tagged Changelog for an editor to review.

main.py
release = qbash.inputs.get("release")
if release:
post_html = qbash.ai.run_prompt(
slug="ghost-release-post",
variables={"release": json.dumps(release)},
)
draft = qbash.integrations.ghost.create_post(
title=f"What's new in {release['tag_name']}",
html=post_html,
status="draft",
tags=["Changelog"],
custom_excerpt=f"Release notes for {release['tag_name']}",
)
qbash.output(draft)
else:
qbash.output("No release in this request.")
Sample create_post response
{
"status": "success",
"posts": [
{
"id": "6738a1f2c4e5d60001a1b2c3",
"uuid": "3f2b7c1e-8a4d-4c9e-9b1f-2d6e5a7c8b90",
"title": "What's new in v2.4.0",
"slug": "whats-new-in-v2-4-0",
"status": "draft",
"url": "https://blog.example.com/p/3f2b7c1e-8a4d-4c9e-9b1f-2d6e5a7c8b90/",
"tags": [
{
"name": "Changelog",
"slug": "changelog"
}
],
"updated_at": "2026-11-12T09:14:03.000Z"
}
]
}

Custom MCP server

Build a custom MCP server with Ghost

Create a hosted MCP server that combines Ghost tools with your other connectors, Tasks and memory folders. You choose each tool it exposes, so a server can share Ghost reads with write tools left off.

Share the server with your team, and each person adds it to the client they already use.

How to set it up

  1. Connect Ghost on the qbash Connectors page.
  2. Create an MCP server and add the Ghost tools you want to share.
  3. Paste the server URL into your client. It connects with OAuth or an access token.

Ghost MCP questions

Does Ghost have an official MCP server?

Ghost's command line tool, ghst, is in beta and can run as an MCP server over stdio or HTTP on your own machine, with tools for posts, tags, members and settings. As of November 2026 Ghost does not run a hosted one. qbash puts Ghost on one URL with your other connectors, and the same methods run in Python Tasks.

What does the Ghost connector need to connect?

Your Ghost site URL and an Admin API key from a custom integration under Settings, Integrations. The key works for Ghost(Pro) and self-hosted sites, and the connector signs a short-lived token with it for each request.

Can the Ghost MCP server send a newsletter?

publish_post publishes a post and emails it to a newsletter's subscribers, and create_post can publish straight away. Leave both off a server that should only draft posts and read members.

Build a Ghost task

Write it in Python with AI steps, or describe it to your coding agent through the qbash MCP.