Skip to main content
Glama

TikTok MCP Service

by yap-audio

TikTok MCP 服务

用于 TikTok 视频发现和元数据提取的模型上下文协议服务。该服务提供了一个强大的界面,可通过主题标签搜索 TikTok 视频并检索热门内容,并内置了反检测措施和错误处理功能。

特征

  • 按主题标签搜索视频
  • 可配置每次搜索的视频数量(默认值:30)
  • 反机器人检测措施
  • 代理支持
  • 自动 API 会话管理
  • 速率限制和错误处理
  • 健康状态监测

配置

该服务使用环境变量进行配置。创建一个.env文件,其中包含以下内容:

ms_token=your_tiktok_ms_token # Optional but recommended to avoid bot detection TIKTOK_PROXY=your_proxy_url # Optional proxy configuration

安装和设置

# 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

Claude 桌面集成

服务运行后,即可将其与 Claude Desktop 集成。由于我们使用 Poetry 进行依赖管理,请确保通过 Poetry 运行 MCP CLI 命令:

# Navigate to the project directory cd /path/to/tiktok-mcp-service # Install the service in Claude Desktop with Poetry 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

安装后,该服务将在 Claude Desktop 中可用,并将使用 Poetry 运行以进行适当的依赖关系管理。

API 端点

健康检查

  • GET /health - 检查服务健康状况和 API 初始化状态
    { "status": "running", "api_initialized": true, "service": { "name": "TikTok MCP Service", "version": "0.1.0", "description": "A Model Context Protocol service for searching TikTok videos" } }

搜索视频

  • POST /search - 使用主题标签搜索视频
    { "search_terms": ["python", "coding"], "count": 30 // Optional, defaults to 30 }
    回复包括视频 URL、描述和参与度统计数据(观看次数、喜欢次数、分享次数、评论次数)。

资源管理

  • POST /cleanup - 清理资源和 API 会话

错误处理

该服务包括针对以下方面的全面错误处理:

  • API 初始化失败
  • 机器人检测问题
  • 网络错误
  • 速率限制
  • 无效的搜索词

发展

内置:

  • TikTokAPI
  • FastMCP
  • 依赖管理的诗歌
  • 浏览器自动化的 Playwright

执照

麻省理工学院

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

提供强大的界面,可通过主题标签搜索 TikTok 视频并检索热门内容,并具有反检测措施和全面的元数据提取。

  1. 特征
    1. 配置
      1. 安装和设置
        1. Claude 桌面集成
          1. API 端点
            1. 健康检查
            2. 搜索视频
            3. 资源管理
          2. 错误处理
            1. 发展
              1. 执照

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  Interact with Twitter search and timeline
                  Last updated -
                  4
                  192
                  Python
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  Enables AI language models to interact with YouTube content through a standardized interface, providing tools for retrieving video information, transcripts, channel analytics, and trend analysis.
                  Last updated -
                  6,573
                  42
                  JavaScript
                • -
                  security
                  F
                  license
                  -
                  quality
                  Allows you to search the web using DuckDuckGo and optionally fetch and summarize content from search results.
                  Last updated -
                  3
                  Python
                • -
                  security
                  A
                  license
                  -
                  quality
                  Enables users to fetch, analyze, and manage LinkedIn posts data through tools that retrieve profiles, search posts by keywords, filter by date, and identify top-performing content based on engagement metrics.
                  Last updated -
                  Python
                  MIT License

                View all related MCP servers

                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/yap-audio/tiktok-mcp'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server