Skip to content
MIT · npm · 20 tools

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.

Hosted endpoint · nothing to install
https://mcp.postmcpai.com/mcp?apikey=YOUR_API_KEY
License
MIT
claude_desktop_config.json
{
  "mcpServers": {
    "postmcpai": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.postmcpai.com/mcp?apikey=YOUR_API_KEY"
      ]
    }
  }
}
→ 20 tools registered · 7 networks reachable

Two transports, one binary

stdio · default

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.

npx -y @postmcpai/server
Streamable HTTP · set PORT

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.

PORT=3000 npx -y @postmcpai/server
The toolkit

Twenty tools, split by what they can break

Full parameter reference

Read-only · safe to run unattended

  • get_user_info

    Plan tier, credit balance, active workspace and role.

  • list_workspaces

    Every workspace on the key, with ids, roles and connected platforms.

  • get_connected_accounts

    Connected profiles and the profileId needed to target them.

  • get_account_health

    Connections whose token expired or is close to it.

  • list_posts

    The queue, newest first, with per-profile status and counts.

  • get_post

    One post in full: deliveries, live URLs, per-profile errors.

  • get_post_analytics

    Views, likes, comments, shares per profile. Stored reading free; refresh 1 credit.

  • get_profile_analytics

    A profile’s followers, posts and views. Stored reading free; refresh 1 credit.

Mutating · gated behind approval

  • preflight_post

    Dry run: limits, unconnected profiles, missing media, carousel ceilings, credit cost.

  • create_post

    Draft, schedule or publish to named profiles. One post per profile; several mediaUrls publish as a carousel.

  • publish_post_now

    Publish early, or retry a failure, skipping delivered profiles.

  • update_post

    Change copy, targets, schedule, media (or the whole carousel) or status.

  • reschedule_post

    Move to a new slot, keeping copy and targets.

  • reset_stuck_post

    Release a post caught mid-publish so it can retry.

  • delete_post

    Cancel and delete a scheduled or failed post.

  • create_media_upload_url

    Start an image or video upload to PostMCP storage. Returns a short-lived upload URL.

  • complete_media_upload

    Add the uploaded file to the workspace media library and return its mediaUrl.

  • import_media_from_url

    Copy a public image or video URL into the media library. Stores it, publishes nothing.

  • generate_image

    Generate an image and return a hosted URL for mediaUrl. 20 credits, paid plans.

  • multicall

    Run up to 20 of the above in one request, validated before execution.

What the model can and cannot see

Three separate credentials, and the AI holds none of them

  1. 1
    Your 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.

  2. 2
    Your 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.

  3. 3
    The 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.

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.