<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"
}
}
}
}
伺服器配置
{
"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"
}
}
}
}