Tiktok Video Discovery
T

Tiktok Video Discovery

2.5 points
7.9K

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

🚀 TikTok MCP Service

A Model Context Protocol service for TikTok video discovery and metadata extraction. This service provides a powerful interface to search for TikTok videos by tags and extract popular content, with built-in anti-detection measures and error handling.

🚀 Quick Start

The TikTok MCP Service is a robust tool for searching TikTok videos. It offers a range of features such as searching by tags, configurable video counts per search, and built-in anti-robot detection.

✨ Features

  • Search for videos using tags.
  • Configurable number of videos per search (default: 30).
  • Anti-robot detection measures.
  • Proxy support.
  • Automatic API session management.
  • Rate limiting and error handling.
  • Health status monitoring.

📦 Installation

Configuration

The service is configured using environment variables. Create a .env file with the following content:

ms_token=your_tiktok_ms_token  # Optional but recommended to avoid anti-robot detection
TIKTOK_PROXY=your_proxy_url    # Optional proxy configuration

Installation Steps

# Install dependencies
poetry install

# Install browser automation dependencies
poetry run python -m playwright install

# Start the service
poetry run python -m tiktok_mcp_service.main

💻 Usage Examples

Integration with Claude Desktop

Once the service is running, you can integrate it into Claude Desktop. Since we use Poetry for dependency management, make sure to execute MCP CLI commands via Poetry:

# Navigate to the project directory
cd /path/to/tiktok-mcp-service

# Install the service to Claude Desktop in editable mode
poetry run mcp install tiktok_mcp_service/main.py --with-editable . -f .env

# Optional: Install with a custom name
poetry run mcp install tiktok_mcp_service/main.py --name "TikTok Video Search" --with-editable . -f .env

After installation, the service will be available in Claude Desktop and managed by Poetry for dependencies.

📚 Documentation

API Endpoints

Health Check

  • GET /health - Check the service health status and API initialization status.
{
    "status": "running",
    "api_initialized": true,
    "service": {
        "name": "TikTok MCP Service",
        "version": "0.1.0",
        "description": "A Model Context Protocol service for searching TikTok videos"
    }
}

Search Videos

  • POST /search - Search for videos using tags.
{
    "search_terms": ["python", "coding"],
    "count": 30  // Optional, default is 30
}

The response includes video URLs, descriptions, and interaction statistics (views, likes, shares, comments).

Resource Management

  • POST /cleanup - Clean up resources and API sessions.

Error Handling

The service includes comprehensive error handling for the following situations:

  • API initialization failure.
  • Anti-robot detection issues.
  • Network errors.
  • Rate limiting.
  • Invalid search terms.

🔧 Technical Details

The service is developed using the following technologies:

  • TikTokApi
  • FastMCP
  • Poetry for dependency management
  • Playwright for browser automation

📄 License

This project is licensed under the MIT License.

Alternatives

K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
8.2K
5 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
7.9K
5 points
A
Apple Health MCP
An MCP server for querying Apple Health data via SQL, implemented based on DuckDB for efficient analysis, supporting natural language queries and automatic report generation.
TypeScript
10.7K
4.5 points
M
MCP Server Airbnb
Certified
MCP service for Airbnb listing search and details query
TypeScript
13.6K
4 points
F
Firecrawl MCP Server
The Firecrawl MCP Server is a Model Context Protocol server integrating Firecrawl's web - scraping capabilities, providing rich web - scraping, searching, and content - extraction functions.
TypeScript
64.4K
5 points
R
Rednote MCP
RedNote MCP is a tool that provides services for accessing Xiaohongshu content. It supports functions such as authentication management, keyword - based note search, and command - line initialization, and can access note content via URL.
TypeScript
12.4K
4.5 points
P
Perplexity MCP
Certified
An MCP server based on the Perplexity AI API, providing web search functionality for the Claude desktop client.
Python
15.7K
4.1 points
E
Exa Web Search
Certified
The Exa MCP Server is a server that provides web search capabilities for AI assistants (such as Claude), enabling real-time and secure web information retrieval through the Exa AI Search API.
TypeScript
27.4K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
16.6K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
14.8K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
23.6K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
45.0K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
19.2K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
44.5K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
30.3K
4.8 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
62.9K
4.7 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase