Goldnat Plugins
← Back to Ghost

Ghost AI Connect — Installation & Setup Guide

Install and connect the Node.js bridge (Servio Protocol) to your Ghost site. 3 free read tools + Pro upgrade for content and members management.

📅 Updated: 2026-07-07 🎬 Video: ghost-install-connect

Overview

Goldnat AI Connect for Ghost is a Node.js + Express bridge that connects the Ghost API to AI agents. Ghost is an API-first (headless) CMS, so our bridge provides the OAuth 2.0 + PKCE layer and a full tool mapping on top.

What you get:

  • 3 free toolsgetPosts, getPost, searchContent
  • Pro upgradegetPages, getTags, getAuthors, createPost, updatePost, publishPost, deletePost
  • Separate Pro extension: ghost-members-ai-connect (Members + Newsletter + Stripe)

Prerequisites

  • Ghost 5.x
  • Node.js 18+ and PM2 (or systemd)
  • Admin API Key from Ghost
  • Access to Ghost’s MySQL/SQLite (read-only — no direct writes)
  • HTTPS required in production
  • Reverse proxy (Apache/Nginx) to serve the manifest

Installation

Step 1: Prepare Ghost

  1. Ghost Admin → Settings → Integrations → Add custom integration — name: AI Connect.
  2. Copy the Admin API Key (SECRET:ID format).
  3. Save it temporarily in a secure place.

Step 2: Install the bridge

Download the bridge package from your personal area at goldnat.ai (sign in → your plugins → download the latest version), then extract and set it up:

cd /var/www/
# Extract the package you downloaded from goldnat.ai into ./ghost-ai-connect
cd ghost-ai-connect
npm install
cp .env.example .env

Edit .env:

GHOST_URL=https://blog.example.com
GHOST_ADMIN_API_KEY=YOUR_KEY_HERE
DB_HOST=localhost
DB_NAME=ghost_aiconnect
DB_USER=ghost
DB_PASS=YOUR_PASSWORD
PORT=3087

Step 3: Start + Reverse Proxy

pm2 start src/index.js --name ghost-ai-connect
pm2 save
pm2 startup

Add to Apache/Nginx vhost:

# Apache
ProxyPass /api/ai-connect http://localhost:3087/api/ai-connect
ProxyPassReverse /api/ai-connect http://localhost:3087/api/ai-connect

Connecting to an AI Agent

  1. Go to https://your-blog.example.com/account/tokens — the bridge’s token management page.
  2. Generate Prompt → copy and paste into your agent.
  3. Approve OAuth PKCE.

First Test

  • “Show 5 recent posts” → ghost.getPosts with limit=5
  • “What’s in the ‘AI Roadmap’ post?” → ghost.searchContent + ghost.getPost
  • “Search for posts about machine learning” → ghost.searchContent with q=machine learning

With Pro:

  • “Create a draft post titled ‘Vision Statement’” → ghost.createPost
  • “Publish this draft” → ghost.publishPost

Reconnecting

Tokens valid for 30 days. If expired:

  1. /account/tokensRevoke the old token.
  2. Generate Prompt again.

Token Management

As with the other plugins — /account/tokens page with full filters. Note: Ghost uses its Admin API, so every action runs as the content admin.

Uninstalling the Bridge

1. Revoke all tokens

  • /account/tokens → Revoke All — kills every active agent session.

2. Stop and remove the PM2 service

pm2 stop ghost-ai-connect
pm2 delete ghost-ai-connect
pm2 save

3. Remove the reverse-proxy rules

  • Delete the ProxyPass /api/ai-connect ... lines from your Apache/Nginx vhost.
  • Reload the web server: apache2ctl graceful or nginx -s reload.

4. Remove the code

rm -rf /var/www/ghost-ai-connect

5. Remove the Ghost integration

  • Ghost Admin → Settings → Integrations → click the AI Connect integration → Delete Integration.
  • This invalidates the Admin API Key.

6. Drop the DB (fresh reinstall only)

DROP DATABASE ghost_aiconnect;

Warning: Deletes all token history and audit logs. Take a full backup first.

Common Troubleshooting

ErrorCauseFix
Ghost API unreachableWrong GHOST_URL in .envVerify the URL is reachable from the bridge server
Invalid Admin API KeyKey not copied in fullMust include both SECRET:ID parts together
Manifest 502Bridge not runningpm2 status ghost-ai-connect + pm2 restart
CORS blockedReverse proxy missing headersAdd Access-Control-Allow-Origin in Apache/Nginx

Support

Need help? Contact us and we’ll get back to you.

Video Tutorial (Coming Soon)

4-5 minute walkthrough: (A) Goldnat AI Connect on the Servio Protocol, (B) creating the Custom Integration in Ghost admin + copying the Admin API Key, (C) running the bridge via PM2, (D) connecting to an AI agent and 3 typical queries.

Screenshots

Ghost admin - Integrations
Create Custom Integration + Admin API Key
PM2 process running
Run the bridge as a PM2 service
Token management page
Generate prompt for AI agent connection

🎬 Video Tutorial — Coming Soon

A 3-5 minute video covering: intro → install → connect → demo.

Tag: ghost-install-connect

Status: Awaiting production

Pro

Ghost AI Connect Pro — Members & Content Tools

New here? Start with the basic setup guide above.

What Pro adds

The free Ghost bridge gives AI agents read-only access (browse posts, tags, authors, search). Pro adds the write and member-management tools, so an agent can actually create and edit content and manage your mailing list.

Pro ships as a separate package (ghost-members-ai-connect) that installs alongside the free bridge. The free bridge holds the tool infrastructure; the Pro package holds the Pro tools and registers them into the same manifest — they never appear unless your edition is Pro.

Pro tools

ToolScopeWhat it does
createPostwriteCreate a new draft post (title, HTML, tags, status)
updatePostwriteUpdate an existing post’s title, content, or tags
publishPostwriteChange a draft’s status to published
deletePostdeletePermanently delete a post
addMemberwriteAdd a newsletter subscriber
updateMemberwriteUpdate a subscriber’s name or email

Enabling Pro

  1. Install the free Ghost bridge first (see the basic guide above).
  2. Install the ghost-members-ai-connect package alongside it.
  3. Set the edition to Pro: AICONNECT_EDITION=pro in the bridge’s .env, then restart the service.
  4. Regenerate your connection prompt — the six Pro tools now appear in the manifest.

When the edition is not Pro, the Pro package is never loaded and the Pro tools do not appear.

Scope note

createPost/updatePost/publishPost/addMember/updateMember require the write scope; deletePost requires delete. A token only ever gets a scope its owner is allowed to grant — the scope is the ceiling, the user’s Ghost permissions are the floor.

This guide is informational and non-binding. Steps and behavior can vary between platforms and plugin versions. For the binding terms, see the Terms & Conditions.

Tools

Available tool calls.

12 tools exposed via the Servio protocol. Pro tools are marked.

ghost

  • ghost.addMember Adds a new member to the Ghost site. Pro
  • ghost.createPost Creates a new draft post with a title and content. Pro
  • ghost.deletePost Deletes a post from the site. Pro
  • ghost.publishPost Publishes a post (moves from draft to published). Pro
  • ghost.updateMember Updates an existing member's details. Pro
  • ghost.updatePost Updates an existing post. Pro
  • ghost.getAuthors Returns the list of authors on the Ghost site.
  • ghost.getPages Returns the list of pages on the site.
  • ghost.getPost Returns a single post by ID or slug.
  • ghost.getPosts Returns the list of published posts.
  • ghost.getTags Returns the list of tags on the site.
  • ghost.searchContent Searches site content by keywords.