TikTok MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TIKTOK_HEADLESS | No | Whether to run the browser in headless mode. Set to 'true' to hide the browser or 'false' to see it. | true |
| TIKTOK_COOKIES_PATH | Yes | Path to your TikTok cookies file (.pkl or .json). Required for authenticated features like publishing and interacting. | |
| TIKTOK_DOWNLOAD_DIR | No | Directory where downloaded videos will be stored. | ./downloads |
| TIKTOK_MIN_INTERVAL | No | Rate limit between calls in seconds. | 2.0 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| tiktok_searchB | Search TikTok videos by keyword. Returns metadata: author, description, views, URL, hashtags. |
| tiktok_trendingC | Get trending/For You videos from TikTok feed. |
| tiktok_feedC | Scroll the For You Page like a real user and collect video metadata. |
| tiktok_user_videosC | Get videos from a specific TikTok user's profile. |
| tiktok_video_infoC | Get detailed metadata for a specific TikTok video (stats, audio, hashtags, description). |
| tiktok_hashtagC | Explore a TikTok hashtag — popular videos and stats. |
| tiktok_downloadC | Download a TikTok video (without watermark when possible). |
| tiktok_publishA | Publish a video to TikTok. Requires authenticated session. Uses browser automation via Creator Center. |
| tiktok_interactC | Interact with a TikTok video: like, comment, or follow the creator. |
| tiktok_soundsC | Get trending sounds/music on TikTok. |
| tiktok_sessionB | Manage TikTok session: check login status, refresh cookies, export session info. |
| tiktok_analyze_trendC | Analyze trends for a niche: search multiple keywords, aggregate stats on popular sounds, hashtags, posting patterns. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 12 tools
Most tools have distinct purposes, but there is some overlap between tiktok_feed and tiktok_trending (both fetch trending/For You Page content) and between tiktok_search and tiktok_hashtag (both search-related). Descriptions help differentiate them, but an agent might occasionally misselect between these pairs.
All tools follow a consistent tiktok_verb_noun naming pattern, using snake_case throughout. This predictability makes it easy for an agent to understand and navigate the toolset.
With 12 tools, this server is well-scoped for TikTok operations, covering analysis, downloading, interaction, publishing, and session management. Each tool serves a clear purpose without feeling excessive or insufficient.
The toolset provides comprehensive coverage for TikTok interactions, including CRUD-like operations (e.g., publish, interact, download) and data retrieval. A minor gap is the lack of tools for managing user profiles or direct messaging, but core workflows are well-supported.