PostMCP MCP Server
Enables AI assistants to manage social media publishing across platforms like LinkedIn, Twitter, Facebook, Instagram, Threads, and Bluesky.
README
PostMCP AI Model Context Protocol (MCP) Server
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
- Open Cursor Settings -> Features -> MCP.
- Click + Add New MCP Server.
- Fill in the details:
- Name:
postmcpai - Type:
command - Command:
npx -y @postmcpai/server
- Name:
- Under Environment Variables, add:
POSTMCPAI_API_KEY=pmcp_sec_your_secret_api_key_herePOSTMCPAI_API_URL=http://localhost:5023
- 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:
- Provide your public MCP URL with your API key attached:
https://your-hosted-domain.com/mcp?apikey=pmcp_sec_your_secret_api_key_here - Claude.ai will discover tool capabilities via
/mcpand authenticate seamlessly.
4. ChatGPT Custom GPTs (REST Actions)
- When configuring a Custom GPT Action, specify your server URL (e.g.
https://your-hosted-domain.com). - Import the OpenAPI schema directly from:
https://your-hosted-domain.com/openapi.json - Set Authentication to API Key (Header Name:
Authorizationorx-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
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.