TikTok MCP Server
by Breakreach
README.md
# TikTok MCP Server
Publish to TikTok, schedule a video or a photo post, and read what each one did, from Claude, ChatGPT, Cursor or any client that speaks the Model Context Protocol.
```
You: post this video to TikTok at 7pm, public, comments on
Claude: [upload_tiktok_media] [schedule_tiktok_post] Scheduled for 19:00.
```
The post goes out through TikTok's Content Posting API on a connected account, as a direct post. Nothing has to be finished in the TikTok app afterwards.
## Install
The server runs over stdio and needs one environment variable: a Breakreach API key, which is what holds your connected TikTok account. Create one free at [breakreach.com](https://www.breakreach.com), connect TikTok, then take the key from **Settings → API & MCP**.
**Claude Code**
```bash
claude mcp add tiktok --env BREAKREACH_API_KEY=br_your_key -- npx -y @breakreach/tiktok-mcp
```
**Claude Desktop** — `claude_desktop_config.json`
```json
{
"mcpServers": {
"tiktok": {
"command": "npx",
"args": ["-y", "@breakreach/tiktok-mcp"],
"env": { "BREAKREACH_API_KEY": "br_your_key" }
}
}
}
```
**Cursor** — `~/.cursor/mcp.json`, same block as above.
**ChatGPT, and anything that wants a remote server**: ChatGPT connectors cannot run a local command, so point it at the hosted Breakreach server instead, `https://api.breakreach.com/mcp`, which covers TikTok and 19 other networks behind OAuth. Setup per client: [breakreach.com/agents](https://www.breakreach.com/agents).
## Tools
| Tool | What it does |
| --- | --- |
| `list_tiktok_accounts` | The connected TikTok accounts and their ids. Call it first. |
| `post_to_tiktok` | Publish now: a video, or a photo post of up to 35 images. |
| `schedule_tiktok_post` | Put it on the calendar at a time, at the next free slot, or as a draft. |
| `get_next_tiktok_slot` | The next free slot in the posting schedule. |
| `upload_tiktok_media` | A local file to an https URL TikTok can fetch. |
| `list_tiktok_posts` | Drafts, scheduled, published and failed, with their ids. |
| `get_tiktok_post_metrics` | Views, likes, comments, shares. |
| `get_tiktok_account_stats` | Recent reach per account. |
Every tool is named after the network, so an assistant reaches for the right one without being told which server to use. Set `BREAKREACH_WORKSPACE` if the account has several workspaces and you want one of them by default.
## What TikTok allows, and what this does about it
These are the platform's rules, not ours, and they are the part that usually breaks a home-made integration:
- **Privacy level defaults to `SELF_ONLY`.** TikTok requires a posting app to be audited before it can publish publicly; pass `privacyLevel: "PUBLIC_TO_EVERYONE"` to post to the feed, or leave it alone to upload a private draft you review first.
- **Comment, duet and stitch** can each be switched off per post.
- **Photo posts** hold up to 35 images, and TikTok treats them as a slideshow rather than a video.
- **Direct post, not an upload to the drafts box.** The video appears published, with the caption you gave.
- **No comments tools yet.** TikTok's comment API sits behind a separate application that is still open, so reading and replying is not here. The hosted server covers comments on Instagram, Facebook, Threads, X, YouTube and Google Business Profile.
- **No direct messages.** TikTok does not open a messaging API to third parties in the EU, Switzerland or the UK.
## Why a single-network server
An assistant handed two dozen tools spread over twenty networks spends its first turn working out which one it wants. Handed `post_to_tiktok`, it posts. If you do want every network in one place (TikTok, Instagram, LinkedIn, X, YouTube, Facebook, Threads, Pinterest, Bluesky, Reddit, Telegram, Discord, Slack, Mastodon, WordPress, Ghost, Dev.to, Hashnode, Tumblr, Google Business Profile), that is the hosted server at `https://api.breakreach.com/mcp`.
Sister servers, same shape: [instagram-mcp](https://github.com/Breakreach/instagram-mcp), [linkedin-mcp](https://github.com/Breakreach/linkedin-mcp).
## Questions people actually ask
**Is it free?** This server is MIT licensed and free. It talks to Breakreach, where reading is free and publishing needs a plan, from $29 a month.
**Why did my post come out private?** TikTok's default here is `SELF_ONLY`. Pass `privacyLevel: "PUBLIC_TO_EVERYONE"`.
**Can it download videos or read someone else's account?** No. It publishes and reads your own posts.
**Can it run without Breakreach?** No. The audited posting app, the chunked video upload, the token refresh and the publish-status polling live there. A TikTok integration is mostly that work, not the HTTP call.
## Build it yourself
```bash
npm install
npm run build
node scripts/smoke.mjs # MCP handshake, then the tool list
```
MIT licensed. Issues and pull requests welcome.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues