Connects Claude directly to TikTok's organic analytics through their Developer API. You get read access to profile stats (followers, likes, verification status), video listings with pagination, and detailed engagement metrics for up to 20 videos at once (views, comments, shares). Built on native fetch with no external HTTP dependencies. Handles multi-account setups through a JSON array in env vars, and includes a token refresh tool since TikTok access tokens expire after 24 hours. Requires going through TikTok's OAuth flow with Login Kit to get your credentials. Useful if you're building content performance dashboards or asking Claude to analyze your TikTok metrics without switching to the app.
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 Lantern Row — AI-powered SEO and social media tooling for agencies and businesses.
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\"}]"
}
}
}
}
git clone https://github.com/lanternrow/tiktok-organic-mcp.git
cd tiktok-organic-mcp
npm install
npm run build
Then 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"
}
}
}
}
user.info.basic — profile name, avataruser.info.profile — bio, verification statususer.info.stats — follower/following counts, total likesvideo.list — access to video listing and metricshttps://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}
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}
access_token and refresh_token from the responseTip: Access tokens expire after 24 hours. Use the
refresh_tokentool or setTIKTOK_REFRESH_TOKENto enable automatic renewal.
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 tokenOptional:
client_key — needed for token refreshrefresh_token — needed for token refreshUsing 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".
| Tool | Description |
|---|---|
list_accounts | List all configured TikTok accounts and the default |
| Tool | Description |
|---|---|
get_user_info | Profile metadata: username, bio, follower/following counts, total likes, video count, verification status |
get_videos | Paginated list of public videos with engagement metrics (views, likes, comments, shares) |
get_video_details | Detailed metrics for specific video IDs (batch up to 20) |
| Tool | Description |
|---|---|
refresh_token | Exchange refresh token for a new access token (requires client_key and refresh_token in account config) |
All read and utility tools accept an optional account parameter to target a specific account.
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_token
fetch| Variable | Required | Description |
|---|---|---|
TIKTOK_ACCOUNTS | Yes | JSON array of account objects (see Multi-account support section) |
| Variable | Required | Description |
|---|---|---|
TIKTOK_ACCESS_TOKEN | Yes | OAuth access token from Login Kit flow |
TIKTOK_CLIENT_KEY | For refresh | App Client Key (needed for token refresh) |
TIKTOK_REFRESH_TOKEN | For refresh | Refresh token (needed for token refresh) |
npm run dev # Watch mode — recompiles on save
npm run build # Production build
npm start # Run the server
Issues and PRs welcome. If TikTok changes their API, please open an issue.
MIT — see LICENSE.
Built as part of The SEO Engine by Lantern Row.
TIKTOK_ACCESS_TOKEN*secretTikTok OAuth Access Token from Login Kit flow
TIKTOK_CLIENT_KEYsecretTikTok App Client Key (for token refresh)
TIKTOK_REFRESH_TOKENsecretTikTok Refresh Token (for token renewal)
io.github.infoinlet-marketplace/mcp-observability
betterdb-inc/monitor
com.mcparmory/datadog
thotischner/observability-mcp
io.github.tantiope/datadog-mcp
io.github.us-all/datadog