tiktok-organic-mcp
Provides tools for accessing TikTok organic analytics, including video performance metrics, engagement data (views, likes, comments, shares), and profile insights (follower counts, bio, verification status) via the TikTok Developer API. Supports multi-account management and token refresh.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tiktok-organic-mcp what are my TikTok video analytics for today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
tiktok-organic-mcp
MCP server for TikTok organic analytics — video performance, engagement metrics, and profile insights via the TikTok Developer API.
Built for Claude Code and any MCP-compatible AI tool. Gives your AI assistant direct access to your TikTok account data — videos, views, likes, comments, shares, and follower stats.
Part of The SEO Engine toolkit by Rex Jones — AI-powered SEO and social media tooling for agencies and businesses.
Why this exists
No open-source TikTok organic MCP existed. Ads MCPs exist. Organic analytics? Nobody built one.
Paid alternatives cost money. The commercial options require monthly subscriptions. This is free and open source.
Your AI should see your TikTok data. Ask "how are my TikTok videos performing?" and get a real answer.
Related MCP server: TikTok Complete MCP Server
Quick start
Option 1: npx (no install)
Single account:
{
"mcpServers": {
"tiktok-organic": {
"command": "npx",
"args": ["-y", "tiktok-organic-mcp"],
"env": {
"TIKTOK_ACCESS_TOKEN": "your_access_token"
}
}
}
}Multiple accounts:
{
"mcpServers": {
"tiktok-organic": {
"command": "npx",
"args": ["-y", "tiktok-organic-mcp"],
"env": {
"TIKTOK_ACCOUNTS": "[{\"name\":\"mybrand\",\"access_token\":\"act.xxx\",\"client_key\":\"abc123\",\"refresh_token\":\"rft.xxx\"},{\"name\":\"otherbrand\",\"access_token\":\"act.yyy\",\"client_key\":\"def456\",\"refresh_token\":\"rft.yyy\"}]"
}
}
}
}Option 2: Clone and build
git clone https://github.com/lanternrow/tiktok-organic-mcp.git
cd tiktok-organic-mcp
npm install
npm run buildThen add to your Claude Code MCP settings:
{
"mcpServers": {
"tiktok-organic": {
"command": "node",
"args": ["/path/to/tiktok-organic-mcp/dist/index.js"],
"env": {
"TIKTOK_ACCESS_TOKEN": "your_access_token"
}
}
}
}Getting your TikTok Access Token
Step 1: Create a TikTok Developer App
Go to the TikTok Developer Portal and log in
Click Manage apps → Connect an app
Fill in your app details and submit for review
Step 2: Add Login Kit and request scopes
In your app dashboard, add the Login Kit product
Request these scopes:
user.info.basic— profile name, avataruser.info.profile— bio, verification statususer.info.stats— follower/following counts, total likesvideo.list— access to video listing and metrics
Step 3: Complete the OAuth flow
Direct users to TikTok's authorization URL:
https://www.tiktok.com/v2/auth/authorize/ ?client_key={your_client_key} &scope=user.info.basic,user.info.profile,user.info.stats,video.list &response_type=code &redirect_uri={your_redirect_uri}Exchange the authorization code for tokens:
POST https://open.tiktokapis.com/v2/oauth/token/ Content-Type: application/x-www-form-urlencoded client_key={client_key} &client_secret={client_secret} &code={auth_code} &grant_type=authorization_code &redirect_uri={redirect_uri}Save the
access_tokenandrefresh_tokenfrom the response
Tip: Access tokens expire after 24 hours. Use the
refresh_tokentool or setTIKTOK_REFRESH_TOKENto enable automatic renewal.
Multi-account support
Monitor multiple TikTok accounts from a single MCP server. Set the TIKTOK_ACCOUNTS environment variable as a JSON array:
[
{
"name": "mybrand",
"access_token": "act.xxx",
"client_key": "abc123",
"refresh_token": "rft.xxx"
},
{
"name": "otherbrand",
"access_token": "act.yyy",
"client_key": "def456",
"refresh_token": "rft.yyy"
}
]Each account object requires:
name— a unique label you pick (used in tool calls)access_token— the OAuth access token
Optional:
client_key— needed for token refreshrefresh_token— needed for token refresh
Using accounts in tools: Every tool accepts an optional account parameter. If omitted, the first account in the array is used as default.
get_user_info(account: "mybrand")
get_videos(account: "otherbrand", max_count: 10)Backward compatible: If you only have one account, the legacy single-env-var format (TIKTOK_ACCESS_TOKEN) still works. It creates a default account named "default".
Tools
Account tools
Tool | Description |
| List all configured TikTok accounts and the default |
Read tools
Tool | Description |
| Profile metadata: username, bio, follower/following counts, total likes, video count, verification status |
| Paginated list of public videos with engagement metrics (views, likes, comments, shares) |
| Detailed metrics for specific video IDs (batch up to 20) |
Utility tools
Tool | Description |
| Exchange refresh token for a new access token (requires |
All read and utility tools accept an optional account parameter to target a specific account.
Architecture
src/
index.ts # MCP server entry point, tool registration
accounts.ts # Multi-account resolution and configuration
client.ts # TikTok API HTTP client (native fetch, no dependencies)
types.ts # TypeScript interfaces for API responses
tools/
user.ts # get_user_info
videos.ts # get_videos, get_video_details
utils.ts # refresh_tokenZero external HTTP dependencies — uses Node 18+ native
fetchMulti-account support — monitor multiple TikTok accounts from one server
Backward compatible — single-token env var still works
Cursor-based pagination — video listing supports pagination via cursor
Zod validation — all tool inputs validated with descriptive error messages
Batch video queries — get details for up to 20 videos in one request
Environment variables
Multi-account (recommended)
Variable | Required | Description |
| Yes | JSON array of account objects (see Multi-account support section) |
Single account (legacy)
Variable | Required | Description |
| Yes | OAuth access token from Login Kit flow |
| For refresh | App Client Key (needed for token refresh) |
| For refresh | Refresh token (needed for token refresh) |
Development
npm run dev # Watch mode — recompiles on save
npm run build # Production build
npm start # Run the serverContributing
Issues and PRs welcome. If TikTok changes their API, please open an issue.
License
MIT — see LICENSE.
Built as part of The SEO Engine by Rex Jones.
Available Tools
5 toolsget_user_infoA
Get a TikTok user's profile info: username, bio, follower/following counts, total likes, video count, and verification status.
Inputs: account.
get_video_detailsA
Get detailed performance metrics for specific TikTok videos by ID. Returns views, likes, comments, shares, duration, and more. Max 20 video IDs per request.
Inputs: video_ids (required), account.
get_videosA
Get a paginated list of the user's public TikTok videos with engagement metrics (views, likes, comments, shares). Returns up to 20 videos per page.
Inputs: cursor, account, max_count.
list_accountsA
List all configured TikTok accounts available for querying.
Inputs: no named parameters.
refresh_tokenA
Refresh the TikTok access token for an account using its stored refresh token. Returns new access and refresh tokens. Requires client_key and refresh_token in the account config.
Inputs: account.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a distinct purpose: account listing, user profile, video list, video details, and token refresh. No overlap, agents can easily distinguish them.
All tools follow a verb_noun pattern (list_accounts, get_user_info, get_videos, get_video_details, refresh_token). Perfectly consistent.
Five tools cover the core operations for TikTok organic data retrieval without being excessive or insufficient. Well-scoped for the server's purpose.
Covers user profile, video lists, video details, and token management. Minor gap: no comment or search functionality, but the set is coherent for basic data access.
Related MCP Connectors
TikTok research for AI agents. Ask ChatGPT, Claude, Cursor, Codex or any MCP client what people search, watch, say and buy on TikTok, and get real numbers back. 34 tools: weekly TikTok search volume and 7-day trends, content gaps, videos, creators, comments and caption transcripts, hashtags and sounds, TikTok Shop sales estimates for products, shops, creators, videos and LIVE streams, TikTok’s Top Ads library with CTR and retention, places, and a fair comment-giveaway picker. 17 markets. Built for marketers, agencies, TikTok Shop sellers and creators. Sign in with OAuth or an API key; 50 free credits, no card.
TikTok search demand, videos, creators, comments and captions for AI agents. OAuth or API key.
Live TikTok data for AI agents: trends, posts, creators, comments, sounds, hooks, video analysis.
Live public Instagram and TikTok data for AI assistants: profiles, posts, stories, followers.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to manage TikTok advertising campaigns through the TikTok Ads API. Supports campaign creation, performance analytics, audience management, creative operations, and custom reporting through natural language interactions.54MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to download TikTok videos without watermarks, analyze creator metrics and audience insights, track trending content and hashtags, and search videos, users, and sounds through RapidAPI integration.-
- AlicenseAqualityCmaintenanceEnables AI assistants to access YouTube organic analytics, including channel stats, video performance, watch time, and audience engagement, via the YouTube Data API v3 and Analytics API v2.630 npmMIT
- AlicenseAqualityCmaintenanceProvides TikTok trend data to AI assistants, including hashtag volume, growth rates, and top trending topics for early trend detection.31MIT