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 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| tiktok_search | Search TikTok videos by keyword. Returns metadata: author, description, views, URL, hashtags. |
| tiktok_trending | Get trending/For You videos from TikTok feed. |
| tiktok_feed | Scroll the For You Page like a real user and collect video metadata. |
| tiktok_user_videos | Get videos from a specific TikTok user's profile. |
| tiktok_video_info | Get detailed metadata for a specific TikTok video (stats, audio, hashtags, description). |
| tiktok_hashtag | Explore a TikTok hashtag — popular videos and stats. |
| tiktok_download | Download a TikTok video (without watermark when possible). |
| tiktok_publish | Publish a video to TikTok. Requires authenticated session. Uses browser automation via Creator Center. |
| tiktok_interact | Interact with a TikTok video: like, comment, or follow the creator. |
| tiktok_sounds | Get trending sounds/music on TikTok. |
| tiktok_session | Manage TikTok session: check login status, refresh cookies, export session info. |
| tiktok_analyze_trend | 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 | |