Skip to main content
Glama

Ghost MCP Server

ghostApi.ts795 B
import GhostAdminAPI from '@tryghost/admin-api'; import { GHOST_API_URL, GHOST_ADMIN_API_KEY, GHOST_API_VERSION } from './config'; // Initialize and export the Ghost Admin API client instance. // Configuration is loaded from src/config.ts. export const ghostApiClient = new GhostAdminAPI({ url: GHOST_API_URL, key: GHOST_ADMIN_API_KEY, version: GHOST_API_VERSION }); // You can add helper functions here to wrap API calls and handle errors // For example: /* export async function getPostById(postId: string): Promise<any> { try { const post = await ghostApiClient.posts.read({ id: postId }); return post; } catch (error) { console.error(`Error fetching post ${postId}:`, error); throw new Error(`Failed to fetch post ${postId}`); } } */

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/MFYDev/ghost-mcp'

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