PublishQ

v1.0.2
com.publishq/publishq Checked 4 days ago Published 24 days ago

Schedule and publish social media posts, organize media, and keep each brand in its own workspace.

A Model Context Protocol server that lets AI agents schedule and publish across your social platforms through PublishQ. This is the official MCP server for PublishQ. Point Claude Desktop, Cursor, or any MCP-compatible agent at it and they can list your connected accounts, create and schedule posts, manage workspaces, and upload media, all through the PublishQ API. Add https://publishq.com/mcp as a remote MCP server in your client. On first use it opens PublishQ in your browser, you sign in and choose what the app may do, and the client stores the login and refreshes it on its own.

Summary extracted from the README.

This is the official MCP server for PublishQ. Point Claude Desktop, Cursor, or any MCP-compatible agent at it and they can list your connected accounts, create and schedule posts, manage workspaces, and upload media, all through the PublishQ API.

There are two ways to use it:

  • Hosted: connect to https://publishq.com/mcp. You sign in to PublishQ in your browser and approve the app. Nothing to install and no key to copy.
  • Local: run this package over stdio with npx.

Hosted server

Add https://publishq.com/mcp as a remote MCP server in your client. On first use it opens PublishQ in your browser, you sign in and choose what the app may do, and the client stores the login and refreshes it on its own.

  • Claude (claude.ai, Desktop, mobile): Settings, Connectors, Add custom connector, then paste the URL.
  • ChatGPT: turn on developer mode under Settings, then create an app with the URL and OAuth as the authentication.
  • Claude Code: claude mcp add --transport http publishq https://publishq.com/mcp
  • Cursor, VS Code, Kiro and other clients: add a server of type http with the URL.

Clients that cannot sign in through a browser can send an API key instead, as an Authorization: Bearer pq_live_... header.

You can see and disconnect every connected app under API Keys in the PublishQ dashboard.

Local server

Sign in once with the CLI, and the local server uses that login:

npx @publishq/cli@latest login

Or create an API key under API Keys in the PublishQ dashboard (it starts with pq_live_) and pass it as PUBLISHQ_API_KEY.

Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "publishq": {
      "command": "npx",
      "args": ["-y", "@publishq/mcp@latest"]
    }
  }
}

Restart Claude Desktop and you'll see the PublishQ tools available. Now you can say things like "Schedule a post to my Twitter and LinkedIn for tomorrow at 9am" and the agent will use the tools below.

Other clients (Cursor, Windsurf, etc.)

Any MCP client that launches a stdio server works the same way: run the command npx -y @publishq/mcp@latest, after publishq login or with PUBLISHQ_API_KEY set in the environment.

Configuration

Variable Required Description
PUBLISHQ_API_KEY No Your PublishQ API key (pq_live_...). Not needed after publishq login.
PUBLISHQ_API_URL No Override the API base URL (defaults to https://publishq.com/api/v1).

Tools

Tool What it does
publishq_list_posts List posts (paginated)
publishq_get_post Get one post by ID
publishq_create_post Create a draft, scheduled, or immediate post
publishq_update_post Update a draft or scheduled post
publishq_delete_post Delete a post
publishq_remove_post_account Remove one account from a post
publishq_list_accounts List connected social accounts (filter by platform)
publishq_get_tiktok_creator_info Read TikTok creator info before posting
publishq_list_workspaces List workspaces
publishq_get_workspace Get one workspace by ID
publishq_create_workspace Create a workspace
publishq_list_media List uploaded/generated media
publishq_get_media Get one media file by ID
publishq_upload_media Upload a file and get a media ID: a local path (local server) or a link or chat attachment (hosted server)
publishq_create_media_upload Get a signed URL to upload a file from your own disk, up to 4 GB
publishq_delete_media Delete a media file no draft or scheduled post uses
publishq_list_media_folders List media folders with their file counts
publishq_move_media Move media files to a folder or to the top level
publishq_rename_media_folder Rename a media folder
publishq_preview_media_folder_deletion Count what deleting a folder would remove
publishq_delete_media_folder Delete a folder and its files, after the preview

The tools are thin wrappers over @publishq/sdk, so their behavior and scopes match the PublishQ API. publishq_create_post accepts an accounts array whose entries contain accountId plus optional postOverrides and platformSpecificSettings. publishq_update_post accepts content, scheduling, complete media replacement or removal, and thumbnail timestamp changes. publishq_list_media can filter by media IDs, types, sources and folder, and publishq_upload_media takes a folderPath. Folder paths look like Channel A/Shorts. Before publishq_delete_media_folder, the agent calls publishq_preview_media_folder_deletion, shows the counts to the user and passes the fileCount back as expectedFileCount. For TikTok, the agent should call publishq_get_tiktok_creator_info first and then provide the required privacy and interaction settings in that account object. A tool call that hits an API error returns the API error so the agent can react.

Scopes

Tools require the same scopes as the underlying endpoints: posts:read/posts:write, accounts:read, workspaces:read/workspaces:write, and media:read/media:write. Grant a key or an app only the scopes your agent needs.

License

Apache-2.0