# @thenavidm/tiktok-mcp-cli [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/thenavidm/tiktok-mcp-cli  
**GitHub Stars:** 2  
**npm Downloads (last month):** 137  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/thenavidm-tiktok-mcp-cli

## Description
TikTok MCP server and CLI for Claude Code and AI agents. 14 tools for your profile, video stats, top posts, publishing videos and photo carousels, drafts and post status.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "tiktok-mcp-cli": {
    "command": "npx",
    "args": ["-y","@thenavidm/tiktok-mcp-cli@latest"],
    "env": {
      "TIKTOK_CLIENT_KEY": "",
      "TIKTOK_CLIENT_SECRET": "",
      "TIKTOK_REFRESH_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `TIKTOK_CLIENT_KEY`, `TIKTOK_CLIENT_SECRET`, `TIKTOK_REFRESH_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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`:

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

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

```bash
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:

```bash
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.

_Full upstream README: https://allmcps.com/mcp/thenavidm-tiktok-mcp-cli/readme_

