PostMCP MCP Server

PostMCP MCP Server

Enables AI assistants to manage social media publishing across platforms like LinkedIn, Twitter, Facebook, Instagram, Threads, and Bluesky.

Category
Visit Server

README

PostMCP AI Model Context Protocol (MCP) Server

npm version License: MIT MCP Compatible

Official PostMCP AI Model Context Protocol (MCP) Server. Connect your social media publishing pipelines directly into AI assistants, desktop applications, IDE workflows, and web environments like Claude Desktop, Claude.ai, Cursor, and ChatGPT Custom GPTs.

Supported platforms include LinkedIn, X (Twitter), Facebook, Instagram, Threads, and Bluesky.


๐Ÿš€ Features & Capabilities

  • ๐Ÿค– 7 Built-in Tools: Retrieve user profiles, list connected accounts, view post queues, create/schedule posts, publish immediately, edit posts, and delete scheduled posts.
  • โšก Dual Transport Modes: Native Stdio mode (for local desktop apps & IDEs) and Streamable HTTP mode (for web services, Claude.ai, and remote connectors).
  • ๐Ÿ”‘ Flexible Authentication: Auto-detects API key from environment variables (POSTMCPAI_API_KEY), URL query parameters (?apikey=YOUR_KEY), or HTTP authorization headers (x-api-key, Bearer token).
  • ๐Ÿค– ChatGPT Actions Compatible: Includes built-in OpenAPI 3.0 specification generator (/openapi.json) and REST endpoints (/api/tools/:name) for ChatGPT Custom GPT integration.
  • ๐Ÿ”’ OAuth 2.0 & RFC 9728 Support: Advertises PKCE authorization server metadata for seamless dynamic client registration with Claude.ai.

๐Ÿ“ Repository Architecture

mcp-server/
โ”œโ”€โ”€ bin/
โ”‚   โ””โ”€โ”€ cli.js            # Executable CLI entry point (Stdio / HTTP mode runner)
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ config.js         # Centralized configuration & environment loader
โ”‚   โ”œโ”€โ”€ client.js         # Backend API client & API key extraction logic
โ”‚   โ”œโ”€โ”€ tools/
โ”‚   โ”‚   โ”œโ”€โ”€ definitions.js# MCP tool JSON schemas & parameter specifications
โ”‚   โ”‚   โ”œโ”€โ”€ handlers.js   # MCP tool execution handlers
โ”‚   โ”‚   โ””โ”€โ”€ index.js      # Tool definitions aggregator
โ”‚   โ”œโ”€โ”€ server.js         # MCP Server instance factory
โ”‚   โ”œโ”€โ”€ routes/
โ”‚   โ”‚   โ”œโ”€โ”€ oauth.js      # OAuth 2.0 & RFC 9728 discovery endpoints
โ”‚   โ”‚   โ”œโ”€โ”€ openapi.js    # OpenAPI 3.0 schema & ChatGPT REST endpoints
โ”‚   โ”‚   โ”œโ”€โ”€ mcpHttp.js    # MCP Streamable HTTP transport (/mcp)
โ”‚   โ”‚   โ””โ”€โ”€ health.js     # Health check & system metadata endpoints
โ”‚   โ”œโ”€โ”€ app.js            # Express application factory
โ”‚   โ””โ”€โ”€ index.js          # Main library entry point
โ”œโ”€โ”€ index.js              # Executable wrapper script
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ README.md

โš™๏ธ Environment Configuration

Environment Variable Description Default Value
POSTMCPAI_API_KEY Required. Your secret API key from the PostMCP AI dashboard. None
POSTMCPAI_API_URL The API root URL of your PostMCP AI backend service. http://localhost:5023
PORT Setting this launches the server in Remote Streamable HTTP Mode. None (Defaults to Stdio Mode)

๐Ÿ› ๏ธ MCP Tools Reference

Tool Name Description Required Parameters Optional Parameters
get_user_info Retrieve authenticated user profile, tier, credit balance, and AI tokens remaining. None None
get_connected_accounts List active, synced social channels (LinkedIn, Twitter, Facebook, Instagram, Threads, Bluesky). None None
list_posts Retrieve all scheduled, published, draft, and failed social media posts. None None
create_post Draft, schedule, or immediately publish a post to target platforms. content, platforms publishImmediately, scheduleDate, scheduleTime, mediaUrl
publish_post_now Broadcast an existing scheduled post immediately. id None
delete_post Cancel and delete an existing scheduled post. id None
update_post Update content, platforms, schedule date/time, or status of an existing post. id content, platforms, scheduleDate, scheduleTime, status

๐Ÿ’ป Client Integration Guides

1. Claude Desktop App (Stdio Mode)

Add the configuration below to your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "postmcpai": {
      "command": "npx",
      "args": ["-y", "@postmcpai/server"],
      "env": {
        "POSTMCPAI_API_KEY": "pmcp_sec_your_secret_api_key_here",
        "POSTMCPAI_API_URL": "http://localhost:5023"
      }
    }
  }
}

2. Cursor IDE

  1. Open Cursor Settings -> Features -> MCP.
  2. Click + Add New MCP Server.
  3. Fill in the details:
    • Name: postmcpai
    • Type: command
    • Command: npx -y @postmcpai/server
  4. Under Environment Variables, add:
    • POSTMCPAI_API_KEY = pmcp_sec_your_secret_api_key_here
    • POSTMCPAI_API_URL = http://localhost:5023
  5. Click Save.

3. Claude.ai & Remote Web Connectors (Streamable HTTP / SSE Mode)

Host this server on any cloud service (Render, Railway, Fly.io, Vercel) or tunnel your local machine using ngrok.

Launching in HTTP Mode:

export POSTMCPAI_API_KEY="pmcp_sec_your_secret_api_key_here"
export POSTMCPAI_API_URL="https://your-backend-domain.com"
export PORT=3000

npm run start:sse

Connecting to Claude.ai:

  1. Provide your public MCP URL with your API key attached: https://your-hosted-domain.com/mcp?apikey=pmcp_sec_your_secret_api_key_here
  2. Claude.ai will discover tool capabilities via /mcp and authenticate seamlessly.

4. ChatGPT Custom GPTs (REST Actions)

  1. When configuring a Custom GPT Action, specify your server URL (e.g. https://your-hosted-domain.com).
  2. Import the OpenAPI schema directly from: https://your-hosted-domain.com/openapi.json
  3. Set Authentication to API Key (Header Name: Authorization or x-api-key).

5. Programmatic Node.js Library Usage

You can also use @postmcpai/server as a library in your own Node.js backends:

import { createServer, createExpressApp, makeBackendRequest } from "@postmcpai/server";

// Create a standalone MCP Server instance
const mcpServer = createServer(() => process.env.POSTMCPAI_API_KEY);

// Or create an Express app with all remote routes attached
const app = createExpressApp();
app.listen(3000);

๐Ÿงช Local Testing & Development

# Clone the repository
git clone https://github.com/postmcpai/postmcp-mcp-server.git
cd postmcp-mcp-server

# Install dependencies
npm install

# Start in Stdio Mode
npm start

# Start in HTTP Mode with hot reload
npm run dev

๐Ÿ“„ License

Distributed under the MIT License. Copyright ยฉ 2026 PostMCP AI.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured