Skip to main content
Glama
@postbasehq/mcp

@postbasehq/mcp

Official
by postbasehq

@postbasehq/mcp

CI npm version npm downloads license Node

The Model Context Protocol server for Postbase, the open-source social media scheduler. Add it to Claude, Cursor or any MCP client and let your AI agent draft and schedule posts and threads to X, LinkedIn, Bluesky and Mastodon. (TikTok and YouTube need a video, so schedule those in the app.)

Post everywhere. Even from your AI.

Hosted server (no API key)

Postbase also runs this server for you at https://mcp.postbase.so/mcp, with OAuth sign-in instead of an API key. Add that URL as a custom connector in Claude or ChatGPT, or as a remote MCP server in Cursor, VS Code, Windsurf, Claude Code or Gemini CLI. The MCP config generator prints the exact setup for each one.

Use this npm package when you want an API key instead, or a self-hosted Postbase.

Related MCP server: @posteverywhere/mcp

Quick start

  1. Create an API key in your Postbase dashboard under Developers.

  2. Add the server to your MCP client config (see examples below).

  3. Ask your agent: "Schedule this thread for 9am to X and Bluesky."

Example configs

Any MCP client — the minimal config:

{
  "mcpServers": {
    "postbase": {
      "command": "npx",
      "args": ["@postbasehq/mcp"],
      "env": { "POSTBASE_API_KEY": "pb_live_your_key_here" }
    }
  }
}

Claude Desktop — add the same block to your config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Then restart Claude Desktop.

Cursor — add it to ~/.cursor/mcp.json (or Settings → MCP):

{
  "mcpServers": {
    "postbase": {
      "command": "npx",
      "args": ["@postbasehq/mcp"],
      "env": { "POSTBASE_API_KEY": "pb_live_your_key_here" }
    }
  }
}

Local development — point at a Postbase instance running on your machine:

{
  "mcpServers": {
    "postbase": {
      "command": "npx",
      "args": ["@postbasehq/mcp"],
      "env": {
        "POSTBASE_API_KEY": "pb_live_your_key_here",
        "POSTBASE_API_URL": "http://localhost:3000/api/v1"
      }
    }
  }
}

Tools

Tool

What it does

list_channels

List the channels connected to your workspace.

create_post

Create a draft, or schedule a post or thread: channel_ids, scheduled_at (ISO 8601 with an offset) or schedule_in_minutes, channel_bodies for per-channel text, media_ids or media_urls, youtube details, and an idempotency_key so retries can't post twice. TikTok posts can only be drafts.

get_post

How a post went on each channel: status, live URL, error, retry time and latest metrics.

update_post

Edit or reschedule a draft or scheduled post; only the fields you pass change.

retry_post

Send a post again to the channels where it failed.

get_analytics

Impressions, likes, comments, shares and saves per post and channel, with totals.

list_media

List images and videos in your Postbase media library, to attach by id.

add_media

Add an image or video to the media library from a public https link.

list_scheduled

List scheduled posts, or drafts, published or failed ones with status.

cancel_post

Cancel a scheduled post by id (it goes back to a draft).

schedule_thread

Create a thread (tweets in order). Kept for older setups; create_post with thread does the same.

Environment

Variable

Required

Default

POSTBASE_API_KEY

yes

—

POSTBASE_API_URL

no

https://www.postbase.so/api/v1

For local development against a Postbase instance on your machine, set POSTBASE_API_URL=http://localhost:3000/api/v1.

License

AGPL-3.0-or-later. Part of the open-source Postbase project.

Available Tools

4 tools
cancel_postAInspect

Cancel a scheduled post by id (returns it to draft).

Inputs: post_id (required).

create_postAInspect

Create a post. Provide channel_ids from list_channels and an ISO 8601 scheduled_at to schedule it (omit to save as a draft).

Inputs: body (required), channel_ids, scheduled_at.

list_channelsAInspect

List the social channels connected to the Postbase workspace.

Inputs: no named parameters.

list_scheduledAInspect

List posts that are scheduled to publish.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool targets a distinct action: listing channels, creating posts, listing scheduled posts, and canceling scheduled posts. There is no overlap or ambiguity between them.

    Naming Consistency5/5

    All tool names follow the consistent verb_noun pattern in snake_case: list_channels, create_post, list_scheduled, cancel_post. The naming is uniform and predictable.

    Tool Count5/5

    With only 4 tools, the server is tightly scoped for its purpose of managing social media post scheduling. Each tool is necessary and none are redundant.

    Completeness3/5

    The core workflow of creating, scheduling, and canceling posts is covered, but there are notable gaps: no way to list drafts, update an existing post, or permanently delete a post. Agents cannot fully manage the post lifecycle.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to publish, schedule, and manage social media posts across X (Twitter), Instagram, and Threads through the Sociona API. Supports immediate posting, scheduling, analytics, and account management with natural language commands.
      6
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Official MCP server for PostEverywhere (posteverywhere.ai/social-media-scheduler). Let Claude, ChatGPT, Cursor or any MCP client schedule and publish posts to 13 platforms: Instagram, TikTok, YouTube, LinkedIn, Facebook, X, Threads, Pinterest, Bluesky, Telegram, Discord, WordPress and Google Business Profile. 40 tools: best-time scheduling, threads, cross-posting, campaigns, analytics.
      33
      241 npm
      7
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to create, schedule, and publish social media posts across Instagram, X/Twitter, LinkedIn, Threads, Facebook, and other platforms via the PosteAhora API.
      15
      11 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to draft, schedule, and publish social media posts across multiple platforms through an authorized Socialync account, with human-in-the-loop approval, quota checks, media uploads, analytics, and content generation.
      MIT