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
- TikTok Developer Account: https://developers.tiktok.com
- App with Content Posting API access
1. Create TikTok App
- Go to TikTok Developer Portal
- Create a new app
- Request Content Posting API access
- Add redirect URI for OAuth
2. OAuth Flow
TikTok uses OAuth 2.0. You'll need to:
- Direct user to authorization URL
- Receive authorization code
- 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tiktok_creator_mcp-1.0.1.tar.gz | 190.4 kB | Without provenance | Details for tiktok_creator_mcp-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tiktok_creator_mcp-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for tiktok_creator_mcp-1.0.1-py3-none-any.whl |
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
|
Security for tiktok-creator-mcp 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.