aaronckj

tiktok-studio-mcp

Community aaronckj
Updated

MCP server for TikTok: publish videos to your own account and read back view, like, comment and share counts via the official Content Posting and Display APIs.

tiktok-studio-mcp

MCP server for TikTok. Publishes videos to your own TikTok account and readsback how they performed, through TikTok's official Content Posting and DisplayAPIs.

Built as the TikTok counterpart toyt-studio-mcp.

What it can and cannot do

TikTok's creator APIs are narrower than YouTube's. Rather than advertise toolsthat cannot work, this server exposes only what the platform actually supports:

capability supported
Upload video (drafts or direct post) yes
View / like / comment / share counts yes
List your videos yes
List or moderate comments no — TikTok offers this only through the Research API, which is gated to academic institutions
Playlists, captions, thumbnails no — no API surface

Posting modes

TikTok gates direct publishing behind an app audit, so there are two modes,selected with TIKTOK_MCP_MODE:

  • upload (default) — the video lands in your TikTok inbox/drafts and youfinish posting it in the app. Works without an audit.
  • publish — posts directly. Requires the video.publish scope, whichneeds TikTok's full app audit (2–4 weeks, demo video, privacy policy, domainverification).

Until the app is audited, TikTok forces everything an unaudited client poststo private, whatever privacy_level you ask for. post_video says so in itsresult rather than letting you assume something published.

Install

claude mcp add tiktok -s user -- uvx tiktok-studio-mcp

Authenticate

Register an app at developers.tiktok.com withLogin Kit, Content Posting API and Display API, requesting the scopesuser.info.basic, video.upload, video.list, video.publish. Set theDesktop redirect URI to http://localhost:8902/.

export TIKTOK_MCP_CLIENT_KEY=...
export TIKTOK_MCP_CLIENT_SECRET=...
tiktok-studio-mcp auth

Prefer the environment over --client-key / --client-secret: command-linearguments are visible to any user on the box via ps and land in shell history.The flags still work as a fallback.

The flow is headless-friendly: it binds a fixed port and prints the consentURL rather than launching a browser. On a machine with a browser:

ssh -N -L 8902:localhost:8902 user@your-host

then open the printed URL.

Tools

tool purpose
health_check credentials refresh, account reachable, granted scopes, active mode
creator_info nickname, allowed privacy levels, duration cap, interaction toggles
post_video upload a file; returns publish_id. Supports dry_run
post_status poll a publish_id
list_videos your videos, with statistics
video_stats counts for specific video ids

post_video calls creator_info first and validates privacy_level againstwhat the account actually allows, because TikTok rejects mismatches with anunhelpful error.

Secrets

TIKTOK_MCP_SECRETS selects the backend: file (default,~/.config/tiktok-studio-mcp/credentials.json, mode 600), env, or vaultproxy.

TikTok rotates refresh tokens — every refresh returns a new one andinvalidates the old. This server writes the new token back on every refresh; ifit did not, authentication would work for 24 hours and then fail with no obviouscause.

Limits

Enforced by TikTok, surfaced by this server:

  • 6 requests per minute per access token on the init endpoints
  • 5 pending shares per 24 hours
  • chunked upload: files under 5 MB go whole; otherwise chunks are 5–64 MB, thefinal chunk may reach 128 MB, 1–1000 chunks, 4 GB maximum

Development

pip install -e '.[dev]'
ruff check src tests
pytest

Tests use an injected transport and need no TikTok credentials.

License

MIT

MCP Server · Populars

MCP Server · New

    drakulavich

    Kesha Voice Kit

    Give your tools a voice — speech to text and back, 25 languages, up to ~19× faster than Whisper. On your machine.

    Community drakulavich
    lobu-ai

    Lobu — Open-source backend for AI teammates

    Open-source control plane and runtime for organisational agents: shared company context, isolated execution, approvals and MCP.

    Community lobu-ai
    minipuft

    Claude Prompts MCP Server

    Wolfflow: Model Context Protocol (MCP) server for reusable prompt templates, multi-step workflow chains, and quality gates. Compose agentic workflows with an operator syntax; export as native skills to Claude Code, Cursor, OpenCode, and Gemini CLI.

    Community minipuft
    docmancer

    Docmancer

    Find out what your coding agents already know. Docmancer indexes the memory, rules, and instructions Claude Code, Codex, Cursor, and Gemini wrote on your machine, then carries the durable parts to every agent. Local-first, MIT.

    Community docmancer
    lineai-intelligence

    codelogic-mcp-server

    An MCP Server to utilize Codelogic's rich software dependency data in your AI programming assistant.