How to Use the Ghost (Publishing & Newsletter Platform API) MCP in OpenAI Agents SDK
Connect the Ghost (Publishing & Newsletter Platform API) MCP Server to your OpenAI Agents SDK to safely automate newsletters and manage paid members.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Ghost (Publishing & Newsletter Platform API) MCP to OpenAI Agents SDK
Create your Vinkius account to connect Ghost (Publishing & Newsletter Platform API) to OpenAI Agents SDK and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Automate publishing with OpenAI Agents SDK
Your deployed agents can write and stage content directly in your Ghost publication. Using `admin_create_post` and `admin_update_post`, the agent formats text, applies tags, and saves drafts for editorial review. OpenAI's built-in guardrails ensure the agent never accidentally pushes a draft live without explicit approval. You control the exact boundary of what the agent can do. If you want a specialized agent just for proofreading, it can read existing content via `admin_list_posts`, suggest edits, and hand off the final publication step to a human editor. The entire execution path gets logged in your OpenAI dashboard for auditing.
Handle members and subscription tiers
Connect your audience growth logic directly to your agent system. When a new user signs up on another platform, your agent triggers `admin_create_member` to sync their profile into Ghost. It can assign specific tags or assign them to paid groups by reading active options through `content_list_tiers`. You don't have to manually reconcile databases. The MCP Server lets your agent check existing subscriber details with `admin_list_members` before creating duplicates. This keeps your member list clean while your agent handles the repetitive data entry.
Query site settings and authors
Agents need context to write in your brand voice. The `content_list_authors` and `content_get_settings` tools pull down your site's public configuration and writer profiles. Your agent reads this data to match the exact tone and formatting rules you already established. The agent filters large archives using NQL via `content_list_posts`. Instead of pulling the whole database, it grabs exactly what it needs to reference past articles. OpenAI handles the tool discovery automatically when you pass the server context.
Set up Ghost (Publishing & Newsletter Platform API) MCP in OpenAI Agents SDK
Prerequisites
- Python 3.10+ installed
-
openai-agentspackage (pip install openai-agents) - Active Vinkius subscription with a valid endpoint token
- 1
Install the SDK
Run
pip install openai-agentsto install the OpenAI Agents SDK. The MCP integration is built-in — no extra dependencies needed. - 2
Connect via SSE transport
Use
MCPServerSsewith your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. The SDK auto-discovers all Ghost (Publishing & Newsletter Platform API) tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives Ghost (Publishing & Newsletter Platform API) tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate Ghost (Publishing & Newsletter Platform API) tools and returns structured results. Copy the full example on the right to get started.
import asyncio
from agents import Agent, Runner
from agents.mcp import MCPServerSse
async def main():
async with MCPServerSse(
url="https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
) as server:
agent = Agent(
name="Ghost (Publishing & Newsletter Platform API) Agent",
instructions="You have access to Ghost (Publishing & Newsletter Platform API) tools.",
mcp_servers=[server],
)
result = await Runner.run(agent, "List recent transactions")
print(result.final_output)
asyncio.run(main()) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Ghost. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Ghost (Publishing & Newsletter Platform API) MCP in OpenAI Agents SDK
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Ghost (Publishing & Newsletter Platform API) MCP today
We host it, we monitor it, we maintain it. You just paste one token.