<img Src="https://cdn.worldvectorlogo.com/logos/tiktok Icon 2.svg" Height="32"> Tiktok Mcp
概览
什么是 TikTok MCP?
TikTok MCP(模型上下文协议)是一种创新的集成设计,旨在增强用户与 TikTok 的互动。该协议允许开发者创建能够无缝与 TikTok 功能互动的应用程序,使内容管理、用户参与和数据分析等功能得以实现。通过利用 TikTok MCP,开发者可以构建增强平台用户体验的工具,使创建、分享和发现内容变得更加容易。
TikTok MCP 的特点
- 无缝集成:TikTok MCP 允许与现有应用程序轻松集成,为开发者提供增强其应用程序 TikTok 功能所需的工具。
- 用户参与工具:该协议包括帮助提高用户参与度的功能,例如跟踪用户互动和内容表现的分析工具。
- 内容管理:开发者可以更有效地管理 TikTok 内容,从而更好地组织和检索媒体。
- 数据分析:TikTok MCP 提供强大的数据分析能力,使开发者能够深入了解用户行为和内容趋势。
如何使用 TikTok MCP
- 设置您的环境:首先设置您的开发环境,安装支持 TikTok MCP 的必要 SDK 和库。
- 集成协议:按照文档将 TikTok MCP 集成到您的应用程序中。这通常涉及配置 API 密钥和端点。
- 利用功能:开始使用 TikTok MCP 提供的各种功能,例如用户参与工具和内容管理功能。
- 测试和优化:集成后,彻底测试您的应用程序,以确保所有功能按预期工作。根据用户反馈和数据分析进行优化。
常见问题解答
问:我可以使用哪些编程语言与 TikTok MCP 一起使用?
答:TikTok MCP 可以使用多种编程语言进行集成,包括 JavaScript、Python 和 Java,具体取决于您的应用需求。
问:TikTok MCP 是免费使用的吗?
答:TikTok MCP 对开发者开放,但某些功能可能需要根据使用情况订阅或付费。
问:我可以将 TikTok MCP 用于商业应用吗?
答:可以,开发者可以将 TikTok MCP 用于商业应用,但必须遵守 TikTok 的服务条款和指南。
问:我在哪里可以找到 TikTok MCP 的文档?
答:TikTok MCP 的文档通常可以在官方 TikTok 开发者门户网站上找到,该网站提供全面的指南和资源供开发者使用。
问:我如何报告问题或获得 TikTok MCP 的支持?
答:开发者可以通过 TikTok 开发者社区论坛报告问题或寻求支持,或直接联系 TikTok 的支持团队。
详情
<img src="https://cdn.worldvectorlogo.com/logos/tiktok-icon-2.svg" height="32"> TikTok MCP
The TikTok MCP integrates TikTok access into Claude AI and other apps via TikNeuron. This TikTok MCP allows you to
- analyze TikTok videos to determine virality factors
- get content from TikTok videos
- chat with TikTok videos
Available Tools
tiktok_get_subtitle
Description:
Get the subtitle (content) for a TikTok video url. This is used for getting the subtitle, content or context for a TikTok video. If no language code is provided, the tool will return the subtitle of automatic speech recognition.
Input Parameters:
tiktok_url(required): TikTok video URL, e.g., https://www.tiktok.com/@username/video/1234567890 or https://vm.tiktok.com/1234567890language_code(optional): Language code for the subtitle, e.g., en for English, es for Spanish, fr for French, etc.
tiktok_get_post_details
Description:
Get the details of a TikTok post. Returns the details of the video like:
- Description
- Video ID
- Creator username
- Hashtags
- Number of likes, shares, comments, views and bookmarks
- Date of creation
- Duration of the video
- Available subtitles with language and source information
Input Parameters:
tiktok_url(required): TikTok video URL, e.g., https://www.tiktok.com/@username/video/1234567890 or https://vm.tiktok.com/1234567890, or just the video ID like 7409731702890827041
tiktok_search
Description:
Search for TikTok videos based on a query. Returns a list of videos matching the search criteria with their details including description, video ID, creator, hashtags, engagement metrics, date of creation, duration and available subtitles, plus pagination metadata for continuing the search.
Input Parameters:
query(required): Search query for TikTok videos, e.g., 'funny cats', 'dance', 'cooking tutorial'cursor(optional): Pagination cursor for getting more resultssearch_uid(optional): Search session identifier for pagination
Requirements
For this TikTok MCP, you need
- NodeJS v18 or higher (https://nodejs.org/)
- Git (https://git-scm.com/)
- TikNeuron Account and MCP API Key (https://tikneuron.com/tools/tiktok-mcp)
Setup
- Clone the repository
git clone https://github.com/Seym0n/tiktok-mcp.git
- Install dependencies
npm install
- Build project
npm run build
This creates the file build\index.js
Using in Claude AI
Add the following entry to mcpServers:
"tiktok-mcp": {
"command": "node",
"args": [
"path\\build\\index.js"
],
"env": {
"TIKNEURON_MCP_API_KEY": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
}
and replace path with the path to TikTok MCP and XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX with TIkNeuron API Key
so that mcpServers will look like this:
{
"mcpServers": {
"tiktok-mcp": {
"command": "node",
"args": [
"path\\build\\index.js"
],
"env": {
"TIKNEURON_MCP_API_KEY": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
}
}
}
Server配置
{
"mcpServers": {
"tiktok-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--seym0n--tiktok-mcp--tiktok-mcp",
"node build/index.js"
],
"env": {
"TIKNEURON_MCP_API_KEY": "tikneuron-mcp-api-key"
}
}
}
}