Repository avatar
AI Tools
v0.2.2
active

mcp

io.github.posteahora/mcp

Schedule and publish posts to 16 social networks from your AI assistant.

Documentation

@posteahora/mcp

MCP server for PosteAhora — let AI agents add ideas, create, schedule, and publish social posts across Instagram, X/Twitter, LinkedIn, Threads, Facebook, Google Business (and more) straight from a chat.

It's a thin wrapper over the PosteAhora public REST API: every call is authenticated with your API key and goes through the same quota, ownership, and publishing pipeline as the web app.

Hosted server (no install, no API key)

Any MCP client that supports OAuth can connect straight to:

https://mcp.posteahora.com/mcp

Claude (web and desktop), ChatGPT, Cursor and Codex sign you in with your PosteAhora account and let you pick a workspace; no key to copy. Setup guides: posteahora.com/docs/mcp/claude. The rest of this README covers the npm package, for clients that need a local stdio server.

PosteAhora MCP server

Get an API key

  1. Open PosteAhora → Settings → API & integrations.
  2. Create a key and copy it (it's shown once). It looks like pah_live_….

Workspaces

A key (and a hosted connector) is bound to one workspace — the one that was active when you created it. So list_accounts, list_posts, list_ideas and get_analytics return that workspace's data, not everything you own. To work in another workspace, create a separate key/connector there. Writes are role-gated: a viewer key can read but not create_post, schedule_post, update_post, delete_post or publish_post_now (those return 403).

Install (Claude Code / Cursor / Windsurf)

Add to your MCP client config:

{
  "mcpServers": {
    "posteahora": {
      "command": "npx",
      "args": ["-y", "@posteahora/mcp"],
      "env": {
        "POSTEAHORA_API_KEY": "pah_live_xxxxxxxx",
        "POSTEAHORA_API_URL": "https://api.posteahora.com/functions/v1/api"
      }
    }
  }
}
  • Claude Code: claude mcp add posteahora -e POSTEAHORA_API_KEY=pah_live_… -e POSTEAHORA_API_URL=https://api.posteahora.com/functions/v1/api -- npx -y @posteahora/mcp
  • Cursor / Windsurf: add the JSON above to the MCP settings file.

Tools

ToolWhat it does
list_accountsList connected social accounts. Call first — you need each accountId to post.
list_boardsList the boards of a connected Pinterest account. Every Pin needs a boardId from here.
list_ideas / create_ideaRead / add backlog ideas (no publishing).
create_postCreate a draft, or publish now (status: "published").
schedule_postPublish at a future time (scheduledAt, ISO 8601).
list_posts / get_post_statusInspect posts and per-platform results.
upload_mediaUpload a local image/video from the machine running this server, returns a public URL for mediaUrls. Use in local mode.
create_upload_urlReturn a short-lived presigned URL so the client uploads a file directly to storage. Use in remote/hosted mode, where the server can't read your local files.

Typical flow

  1. list_accounts → grab the id for each platform you want to post to.
  2. (optional) get a publicUrl for your media:
    • Local mode: upload_media with an absolute filePath → publicUrl.
    • Remote/hosted mode: create_upload_url with filename/sizeBytes → uploadUrl + publicUrl; then HTTP PUT the raw bytes to uploadUrl with the matching Content-Type header (e.g. curl -T ./slide.jpg "<uploadUrl>" -H 'Content-Type: image/jpeg'). This works for any size, including video, and is required for TikTok photos (they must be served from our verified cdn.posteahora.com domain).
  3. Pinterest only: list_boards with the Pinterest accountId → pick a board and pass its id as platformOptions: { pinterest: { boardId } }.
  4. create_post with accountMappings: [{ platform, accountId }], mediaUrls, and status: "published" (or schedule_post with scheduledAt).

Remote / hosted mode (experimental)

npm run start:http starts a stateless Streamable HTTP server on /mcp (PORT, default 8787). The caller's Authorization: Bearer pah_… header is used as the API key (falls back to POSTEAHORA_API_KEY). Put OAuth in front for a production multi-tenant connector.

Development

npm install
npm run build
POSTEAHORA_API_KEY=pah_live_… POSTEAHORA_API_URL=https://api.posteahora.com/functions/v1/api npm start
NPM
@posteahora/mcp
Install Command
npm install @posteahora/mcp

Remote