Skip to main content

TikTok Creator MCP

mcp-name: io.github.wmarceau/tiktok-creator

TikTok automation tools for Claude via MCP (Model Context Protocol). Post videos, track analytics, and manage comments.

Features

  • Post Videos: Upload from local file or public URL
  • Privacy Control: Set visibility (self, friends, followers, public)
  • Analytics: Video views, likes, comments, shares
  • Account Stats: Follower count, total likes
  • Comments: Read and reply to comments
  • Interaction Controls: Enable/disable duets, stitch, comments

Installation

pip install tiktok-creator-mcp

Setup

Prerequisites

  1. TikTok Developer Account: https://developers.tiktok.com
  2. App with Content Posting API access

1. Create TikTok App

  1. Go to TikTok Developer Portal
  2. Create a new app
  3. Request Content Posting API access
  4. Add redirect URI for OAuth

2. OAuth Flow

TikTok uses OAuth 2.0. You'll need to:

  1. Direct user to authorization URL
  2. Receive authorization code
  3. Exchange for access token
# Authorization URL
auth_url = f"https://www.tiktok.com/v2/auth/authorize/?client_key={CLIENT_KEY}&response_type=code&scope=user.info.basic,video.upload,video.list&redirect_uri={REDIRECT_URI}"

# Exchange code for token
token_response = requests.post(
    "https://open.tiktokapis.com/v2/oauth/token/",
    data={
        "client_key": CLIENT_KEY,
        "client_secret": CLIENT_SECRET,
        "code": auth_code,
        "grant_type": "authorization_code",
        "redirect_uri": REDIRECT_URI,
    }
)

3. Set Environment Variables

export TIKTOK_CLIENT_KEY="your_client_key"
export TIKTOK_CLIENT_SECRET="your_client_secret"
export TIKTOK_ACCESS_TOKEN="your_access_token"
export TIKTOK_REFRESH_TOKEN="your_refresh_token"

Tools

Tool Description
post_video Post video from local file
post_video_from_url Post video from public URL
get_video_stats Get video performance metrics
get_account_stats Follower count, likes, videos
get_video_list List your TikTok videos
get_comments Get video comments
reply_to_comment Reply to a comment

Usage Examples

Post a Video

{
  "tool": "post_video",
  "arguments": {
    "video_path": "/path/to/video.mp4",
    "title": "Quick fitness tip! #fitness #workout",
    "privacy": "PUBLIC_TO_EVERYONE"
  }
}

Post from URL

{
  "tool": "post_video_from_url",
  "arguments": {
    "video_url": "https://example.com/video.mp4",
    "title": "Check out this workout! #gym",
    "privacy": "PUBLIC_TO_EVERYONE",
    "disable_duet": false,
    "disable_stitch": false
  }
}

Get Video Stats

{
  "tool": "get_video_stats",
  "arguments": {
    "video_id": "7123456789012345678"
  }
}

Privacy Levels

Level Description
SELF_ONLY Only you can see
MUTUAL_FOLLOW_FRIENDS Mutual followers only
FOLLOWER_OF_CREATOR Your followers only
PUBLIC_TO_EVERYONE Everyone can see

Video Requirements

  • Format: MP4, WebM
  • Duration: 3 seconds - 10 minutes
  • Size: Max 4GB
  • Aspect Ratio: 9:16 (vertical) recommended

Rate Limits

  • Video Posts: Check TikTok Developer docs for current limits
  • API Calls: Varies by endpoint

Environment Variables

Variable Required Description
TIKTOK_CLIENT_KEY Yes App client key
TIKTOK_CLIENT_SECRET Yes App client secret
TIKTOK_ACCESS_TOKEN Yes User access token
TIKTOK_REFRESH_TOKEN No For token renewal

Claude Desktop Configuration

{
  "mcpServers": {
    "tiktok-creator": {
      "command": "tiktok-creator-mcp",
      "env": {
        "TIKTOK_CLIENT_KEY": "your_key",
        "TIKTOK_CLIENT_SECRET": "your_secret",
        "TIKTOK_ACCESS_TOKEN": "your_token"
      }
    }
  }
}

License

MIT

Metadata

Release files for tiktok-creator-mcp 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tiktok-creator-mcp 1.0.1
File Size Uploaded
tiktok_creator_mcp-1.0.1.tar.gz 190.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tiktok-creator-mcp 1.0.1
File Interpreter ABI Platform
tiktok_creator_mcp-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 199.1 kB

Release files / tiktok_creator_mcp-1.0.1.tar.gz

Download URL tiktok_creator_mcp-1.0.1.tar.gz
Size 190.4 kB
Tags Source
SHA-256 checksum
How to use checksums
00f9fd42fb4f56356ea54304193d74d87d5fd4e915f9619bc573b4609103564c
BLAKE2b-256 checksum
How to use checksums
e6edf7c34722c813cf91ece9c44de8715fada2091907861fa72f3e1acd3a2b32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / tiktok_creator_mcp-1.0.1-py3-none-any.whl

Download URL tiktok_creator_mcp-1.0.1-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31644d58f5bea5fc07123b467be6b7640b360361d82edb10d5ec89e0b64de378
BLAKE2b-256 checksum
How to use checksums
4c7cbeb79fc8dd00df13939ece2c5d617b9f739f74a29f905b1b3e8e5b4a5dbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page