Back to Guides

How to Connect TikTok to ChatGPT

Connect the TikTok API to ChatGPT via MCP. Analyze video performance, track followers, and monitor engagement with natural language using AnythingMCP.

Analyze Your TikTok Performance with ChatGPT

TikTok has no dedicated MCP connector. With AnythingMCP, you can convert TikTok's Content Posting and Research APIs into an MCP server and let ChatGPT analyze your content performance and audience.

Step-by-Step Guide

Step 1: Deploy AnythingMCP

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d

Step 2: Get TikTok API Access

Register at https://developers.tiktok.com. Create an app and apply for the required API products (Display API, Content Posting API). Get your OAuth access token.

Step 3: Create a REST Connector

Create a REST connector with base URL https://open.tiktokapis.com/v2. Set Bearer token authentication.

Step 4: Expose Key Endpoints

  • POST /video/list/ — List your videos
  • POST /video/query/ — Video details and metrics
  • GET /user/info/ — Profile info (followers, following)
  • POST /research/video/query/ — Research API for public video search

Step 5: Connect ChatGPT

{
  "mcpServers": {
    "tiktok": {
      "url": "http://localhost:4000/mcp"
    }
  }
}

Step 6: Analyze Your Content

  • "Which of my TikTok videos had the most views this month?"
  • "What's my average engagement rate?"
  • "How is my follower count trending?"
  • "Which videos had the best like-to-view ratio?"
  • "Show me performance of my last 20 posts"

Next Steps