logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Tiktok-Data-Extractor-Utility

A specialized protocol service designed for querying and extracting rich descriptive data pertaining to video content hosted on the TikTok platform, leveraging hashtag-based search techniques. It incorporates robust defensive mechanisms against platform detection systems, comprehensive fault tolerance, and adjustable parameters for media acquisition and session administration.

Author

Tiktok-Data-Extractor-Utility logo

yap-audio

MIT License

Quick Info

GitHub GitHub Stars 56
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

tiktokapisapitiktok videosmetadata tiktokaudio tiktok

TikTok Data Extraction Utility (MCP)

This Model Context Protocol (MCP) module facilitates advanced searching and retrieval of TikTok multimedia assets and associated metadata. It offers a resilient framework for identifying trending videos via targeted hashtag queries, featuring integrated countermeasures for bot identification and configurable operational settings.

Core Capabilities

  • Hashtag-driven video lookups
  • Adjustable output volume per query (default limit: 30 items)
  • Implementation of anti-detection protocols
  • Support for external proxy routing
  • Automated lifecycle management for API connections
  • Mechanisms for handling rate limits and operational failures
  • System health verification interface

Configuration Parameters

The service relies on environment variables for customization. Populate a .env file with required credentials:

env ms_token=your_tiktok_ms_token # Highly recommended for anti-detection effectiveness TIKTOK_PROXY=your_proxy_url # Optional configuration for network tunneling

Deployment and Initialization Sequence

bash

Install required Python packages

poetry install

Install underlying browser automation dependencies

poetry run python -m playwright install

Initiate the primary service daemon

poetry run python -m tiktok_mcp_service.main

Integration with Claude Desktop Environment

Post-startup, integration with the Claude Desktop interface is simplified using Poetry's capabilities:

bash

Navigate to the project root directory

cd /path/to/tiktok-mcp-service

Register the service with Claude Desktop in editable mode, loading environment variables

poetry run mcp install tiktok_mcp_service/main.py --with-editable . -f .env

Alternative: Install using a descriptive alias

poetry run mcp install tiktok_mcp_service/main.py --name "TikTok Media Scraper" --with-editable . -f .env

Once registered, the utility operates within Claude Desktop, ensuring correct dependency isolation via Poetry.

Accessible Interfaces (Endpoints)

Operational Status Probe

  • GET /health - Verifies service responsiveness and API readiness

{ "status": "running", "api_initialized": true, "service": { "name": "TikTok Data Extraction Utility (MCP)", "version": "0.1.0", "description": "An MCP module for sourcing TikTok video data via search" } }

Video Retrieval Interface

  • POST /search - Executes a query based on provided keywords

{ "search_terms": ["machine_learning", "data_science"], "count": 30 // Limit on returned records (default is 30) }

The output payload details video Uniform Resource Locators (URLs), descriptive text, and engagement metrics (view counts, likes, shares, comments).

System Maintenance

  • POST /cleanup - Initiates a process to release reserved resources and close active sessions

Resilience and Fault Management

The module incorporates comprehensive exception handling for scenarios including: - Failures during initial API handshake - Activations of anti-bot countermeasures - Communication disruptions (network errors) - Exceeding platform request quotas (rate limiting) - Submitting malformed search parameters

Construction Foundation

Key technologies underpinning this module: - TikTokApi library - FastMCP framework - Poetry for dependency lifecycle management - Playwright for necessary browser automation components

Licensing Information

MIT License

See Also

`