The social media MCP server
One URL gives any Model Context Protocol client (Claude, ChatGPT, Cursor, your own agent) a typed toolkit for publishing to seven social networks. Scheduling, media uploads, retries, token health and analytics included.
https://mcp.postmcpai.com/mcp?apikey=YOUR_API_KEY- License
- MIT
{
"mcpServers": {
"postmcpai": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.postmcpai.com/mcp?apikey=YOUR_API_KEY"
]
}
}
}Two transports, one binary
Local desktop and IDE clients
The client spawns the server as a subprocess and speaks over stdin/stdout. Nothing is exposed to the network, and the key stays in your local config. Use it when you want the server on your own machine.
Remote and web connectors
Setting a port switches the same binary into HTTP mode with an OAuth 2.0 / RFC 9728 discovery surface, which is what Claude.ai, ChatGPT and other remote connectors expect. PostMCP runs this mode for you at https://mcp.postmcpai.com/mcp; set a port only if you want to host your own.
Twenty tools, split by what they can break
Read-only · safe to run unattended
get_user_infoPlan tier, credit balance, active workspace and role.
list_workspacesEvery workspace on the key, with ids, roles and connected platforms.
get_connected_accountsConnected profiles and the profileId needed to target them.
get_account_healthConnections whose token expired or is close to it.
list_postsThe queue, newest first, with per-profile status and counts.
get_postOne post in full: deliveries, live URLs, per-profile errors.
get_post_analyticsViews, likes, comments, shares per profile. Stored reading free; refresh 1 credit.
get_profile_analyticsA profile’s followers, posts and views. Stored reading free; refresh 1 credit.
Mutating · gated behind approval
preflight_postDry run: limits, unconnected profiles, missing media, carousel ceilings, credit cost.
create_postDraft, schedule or publish to named profiles. One post per profile; several mediaUrls publish as a carousel.
publish_post_nowPublish early, or retry a failure, skipping delivered profiles.
update_postChange copy, targets, schedule, media (or the whole carousel) or status.
reschedule_postMove to a new slot, keeping copy and targets.
reset_stuck_postRelease a post caught mid-publish so it can retry.
delete_postCancel and delete a scheduled or failed post.
create_media_upload_urlStart an image or video upload to PostMCP storage. Returns a short-lived upload URL.
complete_media_uploadAdd the uploaded file to the workspace media library and return its mediaUrl.
import_media_from_urlCopy a public image or video URL into the media library. Stores it, publishes nothing.
generate_imageGenerate an image and return a hosted URL for mediaUrl. 20 credits, paid plans.
multicallRun up to 20 of the above in one request, validated before execution.
Three separate credentials, and the AI holds none of them
- 1Your social OAuth tokens
Encrypted in the backend vault. Never sent to the MCP server, let alone the model. Reconnecting a network mints a new one; nothing is ever handed out.
- 2Your PostMCP API key
Lives in the MCP server process — an env var, a query parameter or a header. It authenticates calls to the backend. The model never receives it as tool output.
- 3The conversation
The model sees tool names, the arguments it chose, and the results. That is the whole surface: enough to publish a post, not enough to exfiltrate an account.
Guides
Choosing, securing and building on a social media MCP server.
- MCP explained for marketersHow assistants discover publishing tools and where your credentials stay.
- Best social media MCP serversNine checks that separate a weekend demo from a server you can leave running.
- MCP vs REST APISame post, different decision-maker. When to use each, and the hybrid.
- Is it safe to let AI post?What the assistant can see, where the three credentials live, and the real risks.
- Build your own MCP serverOAuth refresh, per-network limits and idempotent retries, from shipping one.
- X (Twitter) MCP serverWhy 280 characters break AI-written copy, and how to cross-post cleanly.
MCP server FAQ
- What is an MCP server?
- Model Context Protocol is an open standard for exposing tools to AI assistants. An MCP server advertises a set of typed tools; a client such as Claude Desktop, Claude.ai, Cursor or a custom agent discovers them and can call them during a conversation. PostMCP’s server exposes social publishing, media and analytics as 20 such tools.
- How do I install the PostMCP MCP server?
- You do not have to install anything. PostMCP hosts the server at https://mcp.postmcpai.com/mcp. Copy the server URL, with your API key already in it, from AI Integration in the dashboard and paste it into Claude, ChatGPT or Cursor. To run it yourself instead, npx -y @postmcpai/server fetches and runs it with POSTMCPAI_API_KEY set.
- What is the difference between stdio and HTTP mode?
- Stdio is the local mode: the client spawns the server as a subprocess and talks over standard input and output. Setting a PORT switches the same binary into streamable HTTP mode, which is what remote connectors like Claude.ai and ChatGPT need. The hosted server at https://mcp.postmcpai.com/mcp runs this mode for you, and local clients such as Claude Desktop and Cursor reach it through mcp-remote.
- Does my API key get sent to the AI model?
- No. The key lives in the server process — in an environment variable, a URL query parameter or a header — and is used to call the PostMCP backend. The model sees tool names, arguments and results, never the credential. Your social OAuth tokens never leave the backend vault at all.
- Can the server work with multiple workspaces?
- Yes. An API key is bound to the workspace it was issued from, so a bare key is enough for single-workspace use. To act elsewhere, pass workspaceId on a call, set projectId on the connection, or set POSTMCPAI_PROJECT_ID for the process.
- Is it open source?
- Yes — MIT licensed and published on npm as @postmcpai/server. You can read exactly what each tool sends, fork it, or self-host the HTTP mode on your own infrastructure.