tiktok-mcp
Provides tools for searching TikTok videos, users, hashtags, trending content, user profiles, and video details.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tiktok-mcpget trending videos in the US"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TikTok MCP Server
Model Context Protocol (MCP) server for TikTok. Provides tools for searching videos, users, hashtags, getting trending content, user profiles, video details, and more.
Features
Video Search - Search TikTok videos by keyword
Trending Hashtags - Get currently trending hashtags by region
Trending Videos - Get popular/trending videos
User Info - Get user profile details (followers, following, likes, bio, etc.)
User Videos - Get videos from a specific user's profile
Video Details - Get detailed video information (stats, description, etc.)
Hashtag Search - Get videos for a specific hashtag
User Search - Search for TikTok users
Related MCP server: Twitter Api45 MCP Server
API Access
This server supports two modes:
Official TikTok API (recommended) - Requires approved developer access with:
TIKTOK_CLIENT_KEYTIKTOK_CLIENT_SECRETTIKTOK_ACCESS_TOKEN
Public Scraping (fallback) - Works without API credentials but may be rate-limited or break if TikTok changes their frontend.
Installation
cd /opt/data/mcp-servers/tiktok-mcp
pip install -e .Or with uv:
uv pip install -e /opt/data/mcp-servers/tiktok-mcpConfiguration
Official API (Recommended)
Get credentials from TikTok Developers:
export TIKTOK_CLIENT_KEY="your_client_key"
export TIKTOK_CLIENT_SECRET="your_client_secret"
export TIKTOK_ACCESS_TOKEN="your_access_token"Public Scraping (No credentials needed)
Just don't set the environment variables - the server will automatically use public scraping.
Usage with Hermes Agent
Add to your ~/.hermes/config.yaml:
mcp_servers:
tiktok:
command: "uvx"
args: ["tiktok-mcp"]
env:
TIKTOK_CLIENT_KEY: "your_client_key"
TIKTOK_CLIENT_SECRET: "your_client_secret"
TIKTOK_ACCESS_TOKEN: "your_access_token"
timeout: 120
connect_timeout: 60For public scraping mode (no credentials):
mcp_servers:
tiktok:
command: "uvx"
args: ["tiktok-mcp"]
timeout: 120
connect_timeout: 60Then restart Hermes Agent. The tools will be available as mcp_tiktok_*.
Available Tools
Tool | Description |
| Search videos by keyword |
| Get trending hashtags by region |
| Get trending videos |
| Get user profile details |
| Get user's videos |
| Get video details by ID |
| Get videos for a hashtag |
| Search for users |
Example Queries
"Search for videos about AI automation"
"Get trending hashtags in Brazil"
"Find trending videos in the US"
"Get profile info for @username"
"Get videos from @username's profile"
"Search for #marketing hashtag videos"
"Find users about 'dark fantasy art'"
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytestImportant Notes
Rate Limits: Public scraping is subject to TikTok's rate limits. Use official API for production.
Legal: Respect TikTok's Terms of Service and robots.txt
Stability: Public scraping may break if TikTok changes their frontend structure
Official API: Requires TikTok developer approval - apply at developers.tiktok.com
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/PPiai/tiktok-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server