Tiktok Organic MCP
概要
作者による説明(英語の原文)
TikTok organic analytics — video performance, engagement metrics, and profile insights.
PopNx MCPの3つの柱
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
- 利用者の声iレビューはまだありませんレビューは今後のステップで、アカウント機能と一緒に始まります
- 私たちの基本チェックi1項目中1項目に合格公開情報からチェック。コードはまだスキャンしていません
- 利用状況iとても新しい↓ 42/週 · ★ –
できること
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
- 接続方法: パソコンで動く
- トランスポート: stdio
- カテゴリ: マーケティング・SNS
- 入力が必要なもの:TIKTOK_ACCESS_TOKEN, TIKTOK_CLIENT_KEY, TIKTOK_REFRESH_TOKEN
インストール
使っているAIアプリを選んで、設定をコピーしてください。
インストールの前に
- 基本チェック:1項目中1項目に合格
- あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
- 自分で入力するもの:
TIKTOK_ACCESS_TOKEN,TIKTOK_CLIENT_KEY,TIKTOK_REFRESH_TOKEN
「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。
必要なもの
- npmNode.jsのインストール(npxコマンドに必要)
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"tiktok-organic": {
"command": "npx",
"args": [
"-y",
"tiktok-organic-mcp"
],
"env": {
"TIKTOK_ACCESS_TOKEN": "your-value",
"TIKTOK_CLIENT_KEY": "your-value",
"TIKTOK_REFRESH_TOKEN": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add tiktok-organic --env TIKTOK_ACCESS_TOKEN=your-value --env TIKTOK_CLIENT_KEY=your-value --env TIKTOK_REFRESH_TOKEN=your-value -- npx -y tiktok-organic-mcp動かす前に、空欄の値を入力してください。
または、設定を自分でコピーする
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"tiktok-organic": {
"command": "npx",
"args": [
"-y",
"tiktok-organic-mcp"
],
"env": {
"TIKTOK_ACCESS_TOKEN": "your-value",
"TIKTOK_CLIENT_KEY": "your-value",
"TIKTOK_REFRESH_TOKEN": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
または、設定を自分でコピーする
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"tiktok-organic": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"tiktok-organic-mcp"
],
"env": {
"TIKTOK_ACCESS_TOKEN": "your-value",
"TIKTOK_CLIENT_KEY": "your-value",
"TIKTOK_REFRESH_TOKEN": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
自分で入力する値
- TikTok OAuth Access Token from Login Kit flow
- TikTok App Client Key (for token refresh)
- TikTok Refresh Token (for token renewal)
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月8日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント lanternrow で確認済みです
- … 未チェック
今もメンテナンスされている
このリポジトリはまだGitHubから読み取っていません
- … 未チェック
ライセンスがある
このリポジトリはまだGitHubから読み取っていません
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
マーケティング・SNSのほかのサーバーとの比較i
- このカテゴリのほかの3605件のうち0%よりスターが多い
- このカテゴリのほかの3605件のうち14%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの3605件のうち100%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
Tiktok Organic MCPは安全ですか?
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
入力が必要なもの:TIKTOK_ACCESS_TOKEN, TIKTOK_CLIENT_KEY, TIKTOK_REFRESH_TOKEN
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は–、最新バージョン(1.1.1)がレジストリに届いたのは4 か月前です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
代わりに使えるものは?
同じカテゴリには:MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer
代わりの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Google Analytics MCP
GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.
BibiGPT YouTube Video Summarizer
AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
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](https://lanternrow.com/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:
{
"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 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" } } } }
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}
2. 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}
3. Save the `access_token` and `refresh_token` from 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_accounts | List all configured TikTok accounts and the default |
Read tools
| 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) |
Utility tools
| 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.
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_token
- 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)
| Variable | Required | Description |
|---|---|---|
TIKTOK_ACCOUNTS | Yes | JSON array of account objects (see Multi-account support section) |
Single account (legacy)
| 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) |
Development
npm run dev # Watch mode — recompiles on save
npm run build # Production build npm start # Run the server
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.