PostMCP MCP Server
OfficialAllows AI assistants to create, schedule, and publish social media posts to Bluesky.
Allows AI assistants to create, schedule, and publish social media posts to Facebook.
Allows AI assistants to create, schedule, and publish social media posts to Instagram.
Allows AI assistants to create, schedule, and publish social media posts to Threads.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PostMCP MCP ServerSchedule a post on LinkedIn and Twitter for tomorrow at 10am"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 |
| Required. Your secret API key from the PostMCP AI dashboard. |
|
| The API root URL of your PostMCP AI backend service. |
|
| Setting this launches the server in Remote Streamable HTTP Mode. |
|
๐ ๏ธ MCP Tools Reference
Tool Name | Description | Required Parameters | Optional Parameters |
| Retrieve authenticated user profile, tier, credit balance, and AI tokens remaining. | None | None |
| List active, synced social channels (LinkedIn, Twitter, Facebook, Instagram, Threads, Bluesky). | None | None |
| Retrieve all scheduled, published, draft, and failed social media posts. | None | None |
| Draft, schedule, or immediately publish a post to target platforms. |
|
|
| Broadcast an existing scheduled post immediately. |
| None |
| Cancel and delete an existing scheduled post. |
| None |
| Update content, platforms, schedule date/time, or status of an existing post. |
|
|
๐ป 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.jsonWindows:
%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:
postmcpaiType:
commandCommand:
npx -y @postmcpai/server
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:sseConnecting 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_hereClaude.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.jsonSet 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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/postmcp/postmcp-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server