CommentRouter MCP server

Last updated 24 November 2026

What it is

CommentRouter has an MCP server, so an AI assistant or a script can do what you do on the Posts page: add images and videos, write a post, and save it as a draft, schedule it or publish it to your connected Facebook Pages, Instagram accounts, YouTube channels and TikTok accounts.

The server address is https://commentrouter.com/mcp. It works with any MCP client that supports remote servers over Streamable HTTP. It needs an active CommentRouter plan.

Connect an AI assistant

Use this for assistants that can sign in to a server, such as Claude. No key is copied anywhere.

  • In the assistant, add a custom connector (a remote MCP server) with the address https://commentrouter.com/mcp.
  • It sends you to CommentRouter. Sign in if you aren’t already.
  • Choose what it may do. Reading your accounts, posts and media is always included. Create drafts and add media is on by default. Schedule, publish and cancel posts is off until you tick it.
  • Click Allow. The tools appear in the assistant.

The connection acts as you, in the workspace you were signed in to. To remove it, open Settings and click Disconnect under Connected apps. It loses access straight away.

In the Claude desktop app for Mac or Windows, or on claude.ai:

  • Open Settings, then Connectors.
  • Click Add custom connector.
  • Enter a name, such as CommentRouter, and the address https://commentrouter.com/mcp.
  • Click Add, then Connect. Your browser opens CommentRouter, where you choose what it may do and click Allow.

The connector is saved to your Claude account, so it also works in Claude on your phone. On a Claude Team or Enterprise plan, an owner may need to add the connector for the organisation first.

In Claude Code, this command adds the server and opens the sign-in in your browser:

claude mcp add --transport http commentrouter https://commentrouter.com/mcp

Use an API key

Use a key for scripts and tools that can’t sign in. A workspace owner creates one in Settings under API keys, and chooses whether it can only create drafts or can also schedule and publish. The key is shown once, so copy it then.

Send it as a Bearer token. Each request is one JSON-RPC message, and the answer is JSON:

curl https://commentrouter.com/mcp \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
       "params":{"name":"list_accounts","arguments":{}}}'

A key acts as the member who made it. Revoke it in Settings and anything using it stops working.

Tools

  • list_accountsList connected accountsRead
  • list_mediaList media library filesRead
  • import_mediaAdd a file from a web addressDrafts
  • start_media_uploadStart uploading a local fileDrafts
  • finish_media_uploadFinish uploading a local fileDrafts
  • create_postCreate a postDrafts
  • list_postsList postsRead
  • get_postGet a postRead
  • update_postUpdate a draft or scheduled postDrafts
  • cancel_postCancel a scheduled postDrafts

Each tool describes its own inputs to the assistant. “Read” tools work with any connection; “Drafts” tools need the drafts permission. Scheduling, publishing and cancelling through create_post, update_post and cancel_post also need the publish permission.

Adding images and videos

A post can only use files in your media library. There are two ways to add one:

  • From a web address: import_media copies a file from a public https address, up to 200 MB. The address has to be the file itself and open without signing in, so a link to a Google Drive or Dropbox page won’t work.
  • From your computer: start_media_upload returns a link to send the file to, and finish_media_upload adds it to the library.
# 1. start_media_upload returns upload_url and url
# 2. send the file to upload_url, with the same type and size you declared
curl -X PUT -H "Content-Type: image/png" --data-binary @slide-1.png "UPLOAD_URL"
# 3. call finish_media_upload with url, then use that url in create_post

JPEG, PNG and GIF images up to 8 MB, and MP4 and MOV videos up to 1 GB. Each tool returns the file’s url, which is what a post takes.

Creating a post

Call list_accounts for the account ids, then create_post. The mode decides what happens: draft saves it without sending, schedule sends it at scheduled_for, and publish_now sends it immediately.

{
  "caption": "6 Mac shortcuts I use every day ⌨️ Which one was new to you?",
  "account_ids": ["acc_123"],
  "media_urls": [
    "https://media.commentrouter.com/…/slide-1.png",
    "https://media.commentrouter.com/…/slide-2.png"
  ],
  "mode": "schedule",
  "scheduled_for": "2026-11-20T12:00:00+01:00",
  "timezone": "Africa/Lagos",
  "idempotency_key": "trello-card-abc123"
}
  • Times are ISO 8601 with an offset, such as 2026-11-20T12:00:00+01:00.
  • Retries: pass your own idempotency_key, such as the id of the task the post comes from. A second call with the same key returns the first post instead of making another.
  • Still sending: a post with status publishing hasn’t finished. Call get_post later for the result; don’t create it again.
  • Errors come back as plain sentences saying what to change, for example a file that isn’t in the library or a caption that is too long for one of the accounts.

Posts made this way show a “Via API” tag on the Posts page, and count towards your plan’s posts like any other.

TikTok

TikTok posts go to the creator’s TikTok inbox by default. Nothing is public until they open TikTok, add a sound and post it. TikTok doesn’t keep the caption on an inbox post, so it has to be pasted in the app; the Posts page has a button to copy it.

To publish directly, pass "tiktok": { "send_to_inbox": false, "privacy": "PUBLIC_TO_EVERYONE" }. TikTok requires the audience to be chosen for every directly published post.

What a connection can and can’t do

  • It works in one workspace, as the member who connected it or made the key, with that member’s role. A viewer’s connection can only read.
  • It stops when that member leaves the workspace, when it is disconnected or revoked, or when the workspace’s plan is no longer active.
  • It can’t read or moderate comments, change rules or automations, manage billing or the team, or connect social accounts.
  • It can’t delete posts. Cancelling a scheduled post turns it back into a draft.

Help

If a client won’t connect or a tool does something unexpected, email support@commentrouter.com with the name of the client and what it reported.