<img Src="https://cdn.worldvectorlogo.com/logos/tiktok Icon 2.svg" Height="32"> Tiktok Mcp
Model Context Protocol (MCP) with TikTok integration
Overview
What is TikTok MCP?
TikTok MCP (Model Context Protocol) is a new integration aimed at improving user interaction with TikTok. This protocol enables developers to create applications that can easily interact with TikTok's features, allowing for functionalities like content management, user engagement, and data analysis. By using TikTok MCP, developers can create tools that enhance the user experience on the platform, making it simpler to create, share, and discover content.
Features of TikTok MCP
- Seamless Integration: TikTok MCP allows for straightforward integration with existing applications, giving developers the tools needed to enhance their apps with TikTok features.
- User Engagement Tools: The protocol includes features that help boost user engagement, such as analytics tools that monitor user interactions and content performance.
- Content Management: Developers can manage TikTok content more efficiently, enabling better organization and retrieval of media.
- Data Analysis: TikTok MCP offers strong data analysis capabilities, allowing developers to gain insights into user behavior and content trends.
How to Use TikTok MCP
- Set Up Your Environment: Start by setting up your development environment with the necessary SDKs and libraries that support TikTok MCP.
- Integrate the Protocol: Follow the documentation to integrate TikTok MCP into your application. This usually involves configuring API keys and endpoints.
- Utilize Features: Begin using the various features provided by TikTok MCP, such as user engagement tools and content management functionalities.
- Test and Optimize: After integration, thoroughly test your application to ensure that all features function as intended. Optimize based on user feedback and data analytics.
Frequently Asked Questions
Q: What programming languages can I use with TikTok MCP?
A: TikTok MCP can be integrated using various programming languages, including JavaScript, Python, and Java, depending on your application requirements.
Q: Is TikTok MCP free to use?
A: TikTok MCP is available for developers, but some features may require a subscription or payment based on usage.
Q: Can I use TikTok MCP for commercial applications?
A: Yes, developers can use TikTok MCP for commercial applications, but it's important to adhere to TikTok's terms of service and guidelines.
Q: Where can I find documentation for TikTok MCP?
A: Documentation for TikTok MCP can usually be found on the official TikTok developer portal, which offers comprehensive guides and resources for developers.
Q: How can I report issues or get support for TikTok MCP?
A: Developers can report issues or seek support through the TikTok developer community forums or by directly contacting TikTok's support team.
Details
<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 Config
{
"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"
}
}
}
}