Back to Browse

Post MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Publish and schedule posts to LinkedIn, X, Facebook, Instagram, Threads, Bluesky and YouTube Shorts.

About

Publish and schedule posts to LinkedIn, X, Facebook, Instagram, Threads, Bluesky and YouTube Shorts.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (2 strong, 1 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

5 files analyzed ยท 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

What You'll Need

Set these up before or after installing:

Secret API key from the PostMCP AI dashboard (Settings โ†’ API keys)Required

Environment variable: POSTMCPAI_API_KEY

Optional workspace id to act on; defaults to the workspace the key was issued fromOptional

Environment variable: POSTMCPAI_PROJECT_ID

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-postmcp-postmcp-mcp-server": {
      "env": {
        "POSTMCPAI_API_KEY": "your-postmcpai-api-key-here",
        "POSTMCPAI_PROJECT_ID": "your-postmcpai-project-id-here"
      },
      "args": [
        "-y",
        "@postmcpai/server"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub 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, Bluesky, and YouTube Shorts.


๐Ÿš€ Features & Capabilities

  • ๐Ÿค– 15 Built-in Tools: Workspaces, connected accounts and their token health, brand kits, the post queue, pre-flight checks, create/schedule/reschedule/publish/retry/delete, and image generation.
  • โšก 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).
  • ๐Ÿ—‚๏ธ Multi-Workspace Aware: The API key carries its own workspace, so a bare key is enough. To act on another one, every tool takes an optional workspaceId, also settable per connection (?projectId=..., x-project-id) or per process (POSTMCPAI_PROJECT_ID).
  • ๐Ÿค– 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 & workspace extraction
โ”‚   โ”œโ”€โ”€ platforms.js      # Platform limits, credit pricing & post cost helper
โ”‚   โ”œโ”€โ”€ 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 VariableDescriptionDefault Value
POSTMCPAI_API_KEYRequired. Your secret API key from the PostMCP AI dashboard.None
POSTMCPAI_API_URLBackend API root. Only set for a self-hosted or local backend.https://api.postmcpai.com
POSTMCPAI_PROJECT_IDOptional. Overrides the workspace the API key is bound to. Overridden in turn by a call's workspaceId.The workspace the API key was issued from
PORTSetting this launches the server in Remote Streamable HTTP Mode.None (Defaults to Stdio Mode)

๐Ÿ› ๏ธ MCP Tools Reference

Every tool below also accepts an optional workspaceId (from list_workspaces) to act on a specific workspace.

Reading

Tool NameDescriptionRequiredOptional
get_user_infoAuthenticated user: plan, credit balance, AI tokens, active workspace and role.โ€”workspaceId
list_workspacesEvery workspace the user belongs to, with ids, roles, and connected platforms.โ€”โ€”
get_connected_accountsConnected social profiles with the profileId needed to target them.โ€”workspaceId
get_account_healthConnections whose token expired or is close to it and need reconnecting.โ€”workspaceId
list_brandingsBrand kits: tone, audience, keywords, style images.โ€”workspaceId
list_postsPost queue, newest first, with per-profile delivery status, pagination and counts.โ€”status, page, limit, all
get_postOne post in full: which profiles received it, live URLs, and per-profile errors.idโ€”

Writing

Tool NameDescriptionRequiredOptional
preflight_postDry run: character limits, unconnected profiles, missing media, credit cost. Publishes nothing.contenttargetAccounts, platforms, mediaUrl
create_postDraft, schedule, or immediately publish a post to named profiles. Each profile becomes its own post with its own id.contenttargetAccounts, variants, platforms, publishImmediately, scheduleDate, scheduleTime, timezone, mediaUrl
publish_post_nowPublish an existing post immediately; also retries a failed post, skipping delivered profiles.idโ€”
update_postUpdate content, target profiles, schedule, media, or status.idcontent, targetAccounts, platforms, scheduleDate, scheduleTime, timezone, mediaUrl, status
reschedule_postMove a post to a new slot, keeping copy and targets. Re-arms failed and draft posts.id, scheduleDate, scheduleTimetimezone
reset_stuck_postRelease a post stuck mid-publish so it can be retried. Delivered profiles keep their state.idforce
delete_postCancel and delete a scheduled or failed post.idโ€”
generate_imageGenerate a post image and return its hosted URL for mediaUrl. Spends AI tokens.promptbrandingId, styleImageUrl

Batching

Tool NameDescriptionRequiredOptional
multicallRun up to 20 of the tools above in one request, in order. Tool names are validated before anything executes, so a typo cannot leave half a batch written. Cannot nest.callsstopOnError, workspaceId
{
  "calls": [
    { "id": "img", "tool": "generate_image", "arguments": { "prompt": "launch banner" } },
    {
      "tool": "create_post",
      "arguments": {
        "content": "We shipped it ๐Ÿš€",
        "targetAccounts": [
          { "platform": "linkedin", "profileId": "lin_7741903" },
          { "platform": "twitter", "profileId": "tw_1293847", "content": "We shipped it ๐Ÿš€" }
        ],
        "scheduleDate": "2026-09-01",
        "scheduleTime": "10:00",
        "timezone": "Asia/Kolkata"
      }
    }
  ],
  "stopOnError": true
}

The reply carries one entry per call โ€” { id, tool, ok, result } or { id, tool, ok: false, error } โ€” plus counts and, when a failure stopped the batch, the calls that were skipped.

Notes for clients

  • Target profiles, not platforms. targetAccounts sends only to the profiles named; platforms fans out to every connected profile on each platform.
  • One post per profile. create_post stores a separate post per targeted profile, so each can be edited, retried or cancelled on its own. Give per-profile copy through targetAccounts[].content or the variants map.
  • Always pass timezone when a wall-clock time matters. The backend defaults to UTC, so a 9:00 IST post scheduled without a zone goes out at 14:30 IST.
  • Credits are charged per profile delivered to (X/Twitter costs 5, others 1), plus a one-off 50-credit surcharge when the copy contains a link. preflight_post reports this before you commit.

๐Ÿ’ป 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"
      }
    }
  }
}

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
  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 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.
  3. That URL is all you need: the key is bound to the workspace it was issued from, so tools act on that workspace without being told. To point the same key at a different workspace, append &projectId=YOUR_WORKSPACE_ID (or send an x-project-id header); individual tool calls can still override either with workspaceId.

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/postmcp/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.

Reviews

No reviews yet

Be the first to review this server!