Listed from the MCP registry; nobody on Odel publishes it.
Publish and schedule posts to LinkedIn, X, Facebook, Instagram, Threads, Bluesky and YouTube Shorts.
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted โ your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y @postmcpai/server
MCP client config
{
"mcpServers": {
"postmcp": {
"command": "npx",
"args": [
"-y",
"@postmcpai/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, Bluesky, and YouTube Shorts.
mediaUrls to publish a carousel on Instagram and Threads, a multi-photo post on Facebook and LinkedIn, or a four-image gallery on X and Bluesky - one call, every network's ceiling checked up front.POSTMCPAI_API_KEY), URL query parameters (?apikey=YOUR_KEY), or HTTP authorization headers (x-api-key, Bearer token).workspaceId, also settable per connection (?projectId=..., x-project-id) or per process (POSTMCPAI_PROJECT_ID)./openapi.json) and REST endpoints (/api/tools/:name) for ChatGPT Custom GPT integration.npm run package:plugin.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 Variable | Description | Default Value |
|---|---|---|
POSTMCPAI_API_KEY | Required. Your secret API key from the PostMCP AI dashboard. | None |
POSTMCPAI_API_URL | Backend API root. Only set for a self-hosted or local backend. | https://api.postmcpai.com |
POSTMCPAI_PROJECT_ID | Optional. 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 |
PORT | Setting this launches the server in Remote Streamable HTTP Mode. | None (Defaults to Stdio Mode) |
Every tool below also accepts an optional workspaceId (from list_workspaces) to act on a specific workspace.
| Tool Name | Description | Required | Optional |
|---|---|---|---|
get_user_info | Authenticated user: plan, credit balance, active workspace and role. | โ | workspaceId |
list_workspaces | Every workspace the user belongs to, with ids, roles, and connected platforms. | โ | โ |
get_connected_accounts | Connected social profiles with the profileId needed to target them. | โ | workspaceId |
get_account_health | Connections whose token expired or is close to it and need reconnecting. | โ | workspaceId |
get_profile_analytics | A connected profile's followers, following, post count and views from its network. Stored reading is free; refresh reads the network now for 1 credit. | platform, profileId | refresh |
list_posts | Post queue, newest first, with per-profile delivery status, pagination and counts. | โ | status, page, limit, all |
get_post | One post in full: which profiles received it, live URLs, and per-profile errors. | id | โ |
get_post_analytics | Views, likes, comments, shares, saves and clicks per profile, plus the raw platform metrics. Stored reading is free; refresh reads the networks now for 1 credit. | id | refresh |
| Tool Name | Description | Required | Optional |
|---|---|---|---|
preflight_post | Dry run: character limits, unconnected profiles, missing media, carousel ceilings, credit cost. Publishes nothing. | content | targetAccounts, platforms, mediaUrl, mediaUrls |
create_post | Draft, schedule, or immediately publish a post to named profiles. Each profile becomes its own post with its own id. Several mediaUrls publish as a carousel. | content | targetAccounts, variants, platforms, publishImmediately, scheduleDate, scheduleTime, timezone, mediaUrl, mediaUrls, youtube |
publish_post_now | Publish an existing post immediately; also retries a failed post, skipping delivered profiles. | id | โ |
update_post | Update content, target profiles, schedule, media, or status. mediaUrls replaces the whole attachment set. | id | content, targetAccounts, platforms, scheduleDate, scheduleTime, timezone, mediaUrl, mediaUrls, youtube, status |
reschedule_post | Move a post to a new slot, keeping copy and targets. Re-arms failed and draft posts. | id, scheduleDate, scheduleTime | timezone |
reset_stuck_post | Release a post stuck mid-publish so it can be retried. Delivered profiles keep their state. | id | force |
delete_post | Cancel and delete a scheduled or failed post. | id | โ |
generate_image | Generate a post image and return its hosted URL for mediaUrl. Costs 20 credits; paid plans only. | prompt | styleImageUrl |
create_media_upload_url | Authorize a direct image/video upload; returns a signed PUT URL and the future public URL. | fileName, contentType, fileSize | workspaceId |
complete_media_upload | Register a successfully uploaded file in the media library and return mediaUrl. | url, key, fileName, contentType, fileSize | workspaceId |
import_media_from_url | Copy a public image/video into storage and the media library; returns mediaUrl. | url | workspaceId |
For a local file, the MCP client needs an HTTP upload capability:
create_media_upload_url with fileName, contentType (MIME type), and fileSize (bytes). For example: { "fileName": "launch.png", "contentType": "image/png", "fileSize": 245760 }.uploadUrl with the returned headers. Do not send your PostMCP API key to storage. The URL expires after expiresIn seconds (normally 900); request another if it expires. The file is not uploaded merely by creating the URL.complete_media_upload with the returned publicUrl as url, the returned key, and the same file metadata. Use the same workspaceId on both tools. This registers the file; it does not transfer or verify the bytes.mediaUrl in create_post or update_post, or collect several URLs in mediaUrls for a carousel.For an existing public file, call import_media_from_url with { "url": "https://example.com/launch.png" }. The backend downloads it and returns the stored mediaUrl in one call. The URL must serve the file directly without authentication; private-network URLs are rejected by the backend.
Storage supports PNG, JPEG, GIF, WebP, AVIF, HEIC, MP4, MOV, WebM and M4V, with a 25 MiB image ceiling and a 512 MiB video ceiling. Individual social platforms have stricter publishing requirements; use preflight_post before publishing. File bytes and base64 never travel through the MCP JSON request. If library registration fails after storage succeeds, the result includes librarySaved: false and a warning while preserving the usable mediaUrl.
| Tool Name | Description | Required | Optional |
|---|---|---|---|
multicall | Run 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. | calls | stopOnError, 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.
mediaUrls is the ordered attachment set. One URL is an ordinary media post; two or more publish as a multi-media post on every network but YouTube, with the first URL as the cover:
| Platform | Items per post | Video in a set of several? | Lands as |
|---|---|---|---|
| 2โ10 | yes | Carousel | |
| Threads | 2โ20 | yes | Carousel |
| up to 10 | no | Multi-photo post | |
| up to 20 | no | Multi-image post | |
| X / Twitter | up to 4 | no | Gallery on one tweet |
| Bluesky | up to 4 | no | Gallery on one post |
| YouTube | 1 | โ | One video per upload |
{
"content": "Five things we learned shipping v2 ๐",
"targetAccounts": [
{ "platform": "instagram", "profileId": "17841400000000" },
{ "platform": "threads", "profileId": "9988776655" },
{ "platform": "twitter", "profileId": "tw_1293847",
"mediaUrls": ["https://cdn.example.com/v2/1.png", "https://cdn.example.com/v2/2.png", "https://cdn.example.com/v2/3.png", "https://cdn.example.com/v2/4.png"] }
],
"mediaUrls": [
"https://cdn.example.com/v2/1.png",
"https://cdn.example.com/v2/2.png",
"https://cdn.example.com/v2/3.png",
"https://cdn.example.com/v2/4.png",
"https://cdn.example.com/v2/5.png"
],
"scheduleDate": "2026-09-01",
"scheduleTime": "10:00",
"timezone": "Asia/Kolkata"
}
create_post refuses a set a target will not take before any credits are spent, naming the profile and the rule. preflight_post with the same mediaUrls reports the same thing plus a mediaSetLimits map, so check first when one carousel goes to several networks.mediaUrls on its targetAccounts entry (or in variants as { "twitter": { "mediaUrls": [...] } }), replacing the shared set - the way to give X and Bluesky a four-slide cut of a longer carousel.publish_post_now retries it.update_post with mediaUrls replaces the whole set (add, remove or reorder slides); an empty array removes all media. Every post returned by list_posts / get_post carries mediaUrls alongside mediaUrl.targetAccounts sends only to the profiles named; platforms fans out to every connected profile on each platform.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.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.preflight_post reports this before you commit.list_posts and get_connected_accounts carry what the last reading stored, free. get_post_analytics (one post, every network it went to) and get_profile_analytics (one connected profile: followers, posts, views) with refresh: true read the network now for 1 credit each; without it, the stored reading is free. engagements is likes + comments + shares on every network, so it compares across platforms. A null means the network does not report that metric (Bluesky has no views), an error naming reconnect means the account predates the insights permission and its owner must reconnect it, and unavailable: true means the network never answers for that kind of post (LinkedIn personal profiles).Add the configuration below to your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json%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"
}
}
}
}
postmcpaicommandnpx -y @postmcpai/serverPOSTMCPAI_API_KEY = pmcp_sec_your_secret_api_key_hereHost this server on any cloud service (Render, Railway, Fly.io, Vercel) or tunnel your local machine using ngrok.
export PORT=3000
# Each remote caller supplies its own API key or OAuth token.
npm run start:sse
https://your-hosted-domain.com/mcp?apikey=pmcp_sec_your_secret_api_key_here/mcp and authenticate seamlessly.&projectId=YOUR_WORKSPACE_ID (or send an x-project-id header); individual tool calls can still override either with workspaceId.https://your-hosted-domain.com).https://your-hosted-domain.com/openapi.jsonAuthorization or custom x-api-key). This is a GPT Actions integration, not a per-customer OAuth plugin. For the plugin, use OAUTH.md.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);
# 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
Distributed under the MIT License. Copyright ยฉ 2026 PostMCP AI.