# postmcp-mcp-server [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/postmcp/postmcp-mcp-server  
**GitHub Stars:** 0  
**npm Downloads (last month):** 183  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/postmcp-mcp-server

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

## Tools
Capabilities this server exposes over MCP:

- **get_user_info** — Retrieve details of the logged-in user including subscription plan, credit balance, AI token count, the active workspace, and the caller's role in it.
- **list_workspaces** — List every workspace (project) the user belongs to, with the id to pass as workspaceId, the caller's role, and which one is the default. Call this first whenever the user mentions a client, brand, or workspace by name.
- **get_connected_accounts** — List every connected social profile in the workspace with the profileId needed to target it. Call this before creating a post so the post reaches the intended profile rather than every account on a platform.
- **get_account_health** — Report connections whose access token has expired or is about to, and which therefore need the user to reconnect. Check this before scheduling anything far out - a post scheduled onto a dead connection fails silently at publish time.
- **list_brandings** — List the workspace's brand kits: tone of voice, audience, keywords, and reference style images. Use one to keep drafted copy on-brand, and pass its id to generate_image for on-brand visuals.
- **list_posts** — Retrieve scheduled, published, draft, and failed posts, newest first, with per-profile delivery status. Every profile that received a post carries `url`, the link to the live copy - give the user that link when they ask where a post went. Returns pagination plus counts per status.
- **get_post** — Fetch a single post by id, including per-profile delivery status, the live URL of each published copy, and the error for any profile that failed.
- **preflight_post** — Dry-run a post before creating it: checks copy against each platform's character limit, flags profiles that are not connected or need reconnecting, warns when a platform requires media, reports each target's video limit when a video is attached, and reports the credit cost against the workspace balance. Costs nothing and publishes nothing. Run this before create_post whenever the copy is long, carries a link, or targets several platforms.
- **create_post** — Schedule or immediately publish a post to specific connected social profiles. Prefer targetAccounts so the post lands only on the profiles you name. Every targeted profile becomes its own post with its own id, so each can be edited, retried or cancelled on its own - the response lists them all. With publishImmediately, each delivered profile comes back with a `url` to the live copy; pass those on to the user.
- **publish_post_now** — Broadcast an existing scheduled post immediately to its platforms. Also the way to retry a failed post: profiles that already received it are skipped, so only the stragglers go out. The returned post carries a `url` per delivered profile - report those links rather than only saying it published.
- **delete_post** — Cancel and delete a scheduled or failed post from the database.
- **update_post** — Update the fields (content, target profiles, schedule date/time) of an existing post. To move a post to a different slot without touching anything else, use reschedule_post.
- **reschedule_post** — Move a post to a different date and time, keeping its copy and target profiles. A failed or draft post is re-armed by this and will go out at the new slot; profiles that already received it are not sent to again. Published posts and posts currently publishing cannot be moved.
- **reset_stuck_post** — Release a post left stuck mid-publish so it can be retried. Profiles that already went out keep their delivered state, so retrying afterwards will not double-post. Only use this on a post whose status is 'processing'; if it started publishing recently the call is refused unless force is true.
- **generate_image** — Generate an image for a post from a text prompt and return its hosted URL, ready to pass to create_post as mediaUrl. Pass a brandingId from list_brandings to match the workspace's visual style. Spends AI tokens.
- **multicall** — Run several PostMCP tools in one request, in the order given. Use it whenever a task needs more than one call - scheduling a week of posts, checking accounts then publishing, or cancelling a handful of posts - instead of one round trip per call. Calls run sequentially and every tool name is validated before anything executes, so a typo cannot leave half a batch written. Cannot nest: a call inside a batch may not itself be multicall.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "postmcp-mcp-server": {
    "command": "npx",
    "args": ["-y","@postmcpai/server"],
    "env": {
      "POSTMCPAI_API_KEY": "",
      "POSTMCPAI_API_URL": "",
      "POSTMCPAI_PROJECT_ID": "",
      "PORT": ""
    }
  }
}
```

**Requires environment variables:** `POSTMCPAI_API_KEY`, `POSTMCPAI_API_URL`, `POSTMCPAI_PROJECT_ID`, `PORT` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What postmcp-mcp-server MCP server does

The postmcp-mcp-server MCP server exposes PostMCP AI's social media publishing API to MCP-compatible clients. It can work with LinkedIn, X, Facebook, Instagram, Threads, Bluesky, and YouTube Shorts. Agents can inspect workspaces and connected profiles, check account token health, validate a post before publishing, create drafts, publish immediately, schedule content, reschedule or retry posts, and delete scheduled or failed posts.

The server also provides profile and post analytics, including stored metrics and optional refreshed network data. Media workflows cover generated images, direct uploads, and importing public image or video URLs. Multiple media URLs can be used for platform-specific carousels, galleries, or multi-photo posts.

## How it works

The postmcp-mcp-server MCP server uses the PostMCP AI backend and supports two transport modes. Without a `PORT` setting, it runs in stdio mode for local desktop applications and IDEs. Setting `PORT` starts remote Streamable HTTP mode, which is intended for web services, Claude.ai, and remote connectors.

Authentication can come from the `POSTMCPAI_API_KEY` environment variable, an `apikey` URL query parameter, or HTTP API-key and bearer-token headers. The API key identifies a workspace by default. Tools accept an optional `workspaceId` when an account needs to act on another workspace, and a connection-level or process-level project identifier can also be configured.

Each profile targeted by a publishing operation receives its own post record and status. The `preflight_post` tool checks content limits, media requirements, target connections, carousel limits, and estimated credit cost without publishing anything. Existing posts can then be published, updated, rescheduled, retried, reset when stuck, or removed.

## Setup and configuration

Provide a PostMCP AI API key through `POSTMCPAI_API_KEY`. The backend URL defaults to `https://api.postmcpai.com`; `POSTMCPAI_API_URL` is available for a self-hosted or local backend. `POSTMCPAI_PROJECT_ID` can override the workspace associated with the key, although a tool-level `workspaceId` takes precedence. Set `PORT` to use remote Streamable HTTP mode; otherwise the default is stdio.

The repository also includes OpenAPI generation at `/openapi.json` and REST tool routes under `/api/tools/:name` for ChatGPT Custom GPT integrations. OAuth with PKCE and RFC 9728 is available for deployments using the documented production OAuth settings, while API-key clients remain supported.

For local media, request a signed upload URL, send the raw file bytes to that URL, then register the upload with `complete_media_upload`. The signed URL normally expires after 900 seconds. Public files can instead be copied into the media library with `import_media_from_url`.

## Tools and capabilities

The tool set includes:

- Workspace, user, connected-account, and token-health inspection.
- Post queue listing, full post details, per-profile delivery status, and analytics.
- Preflight validation plus create, update, publish, schedule, reschedule, retry, reset, and delete operations.
- Image generation, signed media uploads, upload completion, and public-URL imports.
- Per-profile and per-post analytics, with optional live refreshes that consume credits.
- Workspace-aware operations and multi-image publishing through `mediaUrls`.

## Limitations and notes

A valid PostMCP AI API key is required for the standard configuration. Image generation is limited to paid plans and costs 20 credits. Refreshing profile or post analytics costs one credit, while reading stored analytics is free. Local file uploads require the MCP client to support an HTTP upload step; creating an upload URL alone does not transfer or verify the file. Media URLs must meet the destination platform's requirements, and the preflight tool should be used to identify platform-specific limits before publishing.

_Full upstream README: https://allmcps.com/mcp/postmcp-mcp-server/readme_

