Tiktok MCP CLI logo

Tiktok MCP CLI

by @thenavidm

MCP server and CLI for analyzing TikTok accounts, publishing posts, managing drafts, and checking post status.

Install Tiktok MCP CLI

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "thenavidm-tiktok-mcp-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@thenavidm/tiktok-mcp-cli@latest"
      ],
      "env": {
        "TIKTOK_CLIENT_KEY": "YOUR_VALUE_HERE",
        "TIKTOK_CLIENT_SECRET": "YOUR_VALUE_HERE",
        "TIKTOK_REFRESH_TOKEN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y @thenavidm/tiktok-mcp-cli@latest

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

@thenavidm/tiktok-mcp-cli connects AI agents and command-line workflows to TikTok account data and publishing actions. It exposes 14 matching CLI commands and MCP tools for profiles, video performance, ranked posts, video or photo publishing, drafts, and post status. Use the MCP interface with Claude Code, Claude Desktop, Cursor, or Codex, or use the CLI for scripts, cron jobs, pipes, and JSON processing. TikTok app credentials and a refresh token are required, while publishing actions require explicit confirmation.

Use cases

  • Rank posts by views, likes, comments, or shares
  • Compare recent videos with median or aggregate performance
  • Publish TikTok videos and photo carousels
  • Send media to TikTok drafts for mobile review
  • Automate TikTok reporting with JSON and jq

Key features

  • 14 matching MCP tools and CLI commands
  • Profile, account, video, and post-status access
  • Ranking and summary statistics for video performance
  • Video and photo-carousel publishing
  • Draft delivery for videos and photo posts
  • Structured CLI output with JSON filtering

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

9/9 checks healthy over the last 32d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · @thenavidm/tiktok-mcp-cli@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads137Package downloads in the last 30 days.
Last commit24d agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.

How Tiktok MCP CLI works

What @thenavidm/tiktok-mcp-cli does

@thenavidm/tiktok-mcp-cli provides two interfaces to the same set of TikTok operations: an MCP server for AI applications and a command-line program named tiktok-cli. Both expose the same 14 capabilities under matching names, with dashes in CLI commands and underscores in MCP tool names.

The available operations cover connected accounts and profile details, video listings and performance analysis, publishing, drafts, post-status checks, and access revocation. Performance tools can return views, likes, comments, and shares for individual posts, and can rank or summarize a creator’s catalog. This makes it suitable for questions such as finding posts above a median view count, comparing posts by shares, or checking posting cadence.

Publishing supports videos and photo carousels. Videos and photo posts can also be sent to TikTok drafts for later completion in the TikTok app.

How it works

The package is built around one shared definition for each tool. The MCP process is launched by an MCP client, while the CLI runs directly in a terminal. Both surfaces use the same connected TikTok accounts and return the same underlying operations.

MCP clients can invoke tools such as list_videos, top_videos, stats_summary, post_video, post_photos, and get_post_status. The CLI uses equivalent commands such as list-videos, top-videos, stats-summary, and post-video.

CLI output is structured for automation. Reading commands return objects that can be filtered with --select, emitted as JSON with --json, or compacted to one line with --compact. Errors are written as JSON to stderr. The package also includes login for one-time sign-in and doctor for checking the local setup; these are CLI commands rather than MCP tools.

Setup and configuration

Node.js 22 or newer is required. The MCP server can be run on demand with npx:

Terminal
npx -y @thenavidm/tiktok-mcp-cli@latest

For a shell workflow, install the package globally so tiktok-cli is available on the PATH:

Terminal
npm i -g @thenavidm/tiktok-mcp-cli
tiktok-cli

An MCP client configuration needs the TikTok client key, client secret, and refresh token. For example, Claude Code can register the server with:

Terminal
claude mcp add tiktok \
  -e TIKTOK_CLIENT_KEY=your_client_key \
  -e TIKTOK_CLIENT_SECRET=your_client_secret \
  -e TIKTOK_REFRESH_TOKEN=your_refresh_token \
  -- npx -y @thenavidm/tiktok-mcp-cli@latest

TikTok access is provided through an app created by the account owner. The package does not require a TikTok account merely to install, but an account and app credentials are needed to use the connected operations.

Tools and capabilities

The 14 MCP tools are:

  • list_accounts and get_profile for connected accounts and profile information
  • list_videos and get_videos for retrieving posts and their metrics
  • top_videos for ranking posts by a selected metric
  • stats_summary for aggregate performance and posting statistics
  • get_creator_info for creator publishing information
  • post_video and post_photos for publishing content
  • get_post_status for checking a post after publication
  • send_video_to_drafts and send_photos_to_drafts for placing content in TikTok drafts
  • revoke_access for returning the connected token

The CLI also includes login and doctor. Publishing and access-revocation actions require confirmation; in the CLI, the equivalent flag is --confirm.

Limitations and notes

The integration operates on accounts that the user connects. TikTok does not provide personal access tokens for this workflow, so use goes through a TikTok app and its credentials.

The MCP interface is intended for an MCP-capable AI application, while the CLI is intended for terminals, scripts, cron, pipes, and CI-style workflows. The CLI cannot replace an MCP client in a shell, and the MCP server is the relevant surface for chat environments without shell access.

Publishing is guarded by client-side approval in MCP workflows and by explicit confirmation for CLI commands. Draft delivery lets the user finish the post in the TikTok app instead of publishing immediately.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Tiktok MCP CLI

@thenavidm/tiktok-mcp-cli is an MCP server that connects AI agents to TikTok accounts through TikTok app credentials and a refresh token. Its main tools retrieve profiles, videos, performance statistics, rankings, drafts, and post status, while also publishing videos and photo carousels or revoking access.

Install it for MCP clients with Node.js 22 or newer using `npx -y @thenavidm/tiktok-mcp-cli@latest`. For terminal use, install it globally with `npm i -g @thenavidm/tiktok-mcp-cli` so the `tiktok-cli` command is available.

Configure `TIKTOK_CLIENT_KEY`, `TIKTOK_CLIENT_SECRET`, and `TIKTOK_REFRESH_TOKEN` in the MCP client environment. You must create a TikTok app and connect an account before using the account and publishing tools.

Yes, @thenavidm/tiktok-mcp-cli works with Cursor as an MCP server. Register the package with Cursor using the server command and TikTok credential environment variables, then invoke its tools from the client.

Yes, it can send videos or photo carousels to TikTok drafts with `send_video_to_drafts` or `send_photos_to_drafts`. It also supports direct publishing through `post_video` and `post_photos`, which require confirmation.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTiktok MCP CLI AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/thenavidm-tiktok-mcp-cli?style=directory)](https://allmcps.com/mcp/thenavidm-tiktok-mcp-cli)
HTML Embed
<a href="https://allmcps.com/mcp/thenavidm-tiktok-mcp-cli"><img src="https://allmcps.com/api/badge/thenavidm-tiktok-mcp-cli?style=directory" alt="Tiktok MCP CLI on AllMCPs" /></a>