
Tiktok Organic Mcp
io.github.lanternrow由 GitHub 账号 lanternrow 发布v1.1.1更新于 Oct 24, 2026
TikTok organic analytics — video performance, engagement metrics, and profile insights.
概览
一个本地 MCP 服务器,让 AI 助手读取 TikTok 自然流量分析数据:账号资料、视频列表和单条视频的互动指标。
- 可以做什么
- 列出已配置的 TikTok 账号及默认账号,支持按标签区分多账号。读取账号资料:用户名、简介、粉丝与关注数、总点赞数、视频数和认证状态。分页列出公开视频及播放、点赞、评论、分享等互动指标。按视频 ID 批量获取详细指标,单次最多 20 条。使用保存的客户端密钥和刷新令牌续期已过期的访问令牌。
- 适用场景
- 当你希望助手回答关于自己 TikTok 账号自然流量表现的问题时使用,例如近期视频表现如何、粉丝数和互动情况如何变化,而无需手动导出数据。适合已接入 TikTok 开发者 API 的创作者、代理机构和社交媒体团队。
- 运行要求
- 以 npm 包形式通过 stdio 在本地运行,需要 Node.js 18 或更高版本。需要一个 TikTok 开发者应用,添加 Login Kit 产品并获得用户信息和视频列表相关权限,以及通过 TIKTOK_ACCESS_TOKEN 提供的 OAuth 访问令牌。令牌续期需要 TIKTOK_CLIENT_KEY 和 TIKTOK_REFRESH_TOKEN;多账号通过 TIKTOK_ACCOUNTS 配置。需要能访问 TikTok API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Tiktok Organic Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
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.
Quick start
Option 1: npx (no install)
Single account:
Multiple accounts:
Option 2: Clone and build
Then add to your Claude Code MCP settings:
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:
- Exchange the authorization code for tokens:
- 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:
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.
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
Read tools
Utility tools
All read and utility tools accept an optional account parameter to target a specific account.
Architecture
- Zero external HTTP dependencies — uses Node 18+ native
fetch - Multi-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)
Single account (legacy)
Development
Contributing
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.
来源:README.md,提交 694fba5
工具
0版本历史
1- v1.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分