TikTok Ads
概览
作者提供的说明(英文原文)
TikTok Ads MCP server: 35 read tools, 30 opt-in preview-first writes.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 115/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 营销与社交媒体
- 你需要填写:TIKTOK_ACCESS_TOKEN, TIKTOK_APP_ID, TIKTOK_APP_SECRET
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
TIKTOK_ACCESS_TOKEN,TIKTOK_APP_ID,TIKTOK_ADVERTISER_IDS,TIKTOK_APP_SECRET,TIKTOK_ADVERTISER_ID,TIKTOK_BC_ID,TIKTOK_BUSINESS_CENTER_ID,TIKTOK_ENABLE_WRITES,TIKTOK_ENVIRONMENT,LOG_LEVEL
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
- npm已安装 Node.js(用于 npx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"tiktok-ads": {
"command": "npx",
"args": [
"-y",
"@getmcpads/tiktok-ads-mcp-server"
],
"env": {
"TIKTOK_ACCESS_TOKEN": "your-value",
"TIKTOK_APP_ID": "your-value",
"TIKTOK_ADVERTISER_IDS": "your-value",
"TIKTOK_APP_SECRET": "your-value",
"TIKTOK_ADVERTISER_ID": "your-value",
"TIKTOK_BC_ID": "your-value",
"TIKTOK_BUSINESS_CENTER_ID": "your-value",
"TIKTOK_ENABLE_WRITES": "your-value",
"TIKTOK_ENVIRONMENT": "your-value",
"LOG_LEVEL": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add tiktok-ads --env TIKTOK_ACCESS_TOKEN=your-value --env TIKTOK_APP_ID=your-value --env TIKTOK_ADVERTISER_IDS=your-value --env TIKTOK_APP_SECRET=your-value --env TIKTOK_ADVERTISER_ID=your-value --env TIKTOK_BC_ID=your-value --env TIKTOK_BUSINESS_CENTER_ID=your-value --env TIKTOK_ENABLE_WRITES=your-value --env TIKTOK_ENVIRONMENT=your-value --env LOG_LEVEL=your-value -- npx -y @getmcpads/tiktok-ads-mcp-server运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"tiktok-ads": {
"command": "npx",
"args": [
"-y",
"@getmcpads/tiktok-ads-mcp-server"
],
"env": {
"TIKTOK_ACCESS_TOKEN": "your-value",
"TIKTOK_APP_ID": "your-value",
"TIKTOK_ADVERTISER_IDS": "your-value",
"TIKTOK_APP_SECRET": "your-value",
"TIKTOK_ADVERTISER_ID": "your-value",
"TIKTOK_BC_ID": "your-value",
"TIKTOK_BUSINESS_CENTER_ID": "your-value",
"TIKTOK_ENABLE_WRITES": "your-value",
"TIKTOK_ENVIRONMENT": "your-value",
"LOG_LEVEL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"tiktok-ads": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@getmcpads/tiktok-ads-mcp-server"
],
"env": {
"TIKTOK_ACCESS_TOKEN": "your-value",
"TIKTOK_APP_ID": "your-value",
"TIKTOK_ADVERTISER_IDS": "your-value",
"TIKTOK_APP_SECRET": "your-value",
"TIKTOK_ADVERTISER_ID": "your-value",
"TIKTOK_BC_ID": "your-value",
"TIKTOK_BUSINESS_CENTER_ID": "your-value",
"TIKTOK_ENABLE_WRITES": "your-value",
"TIKTOK_ENVIRONMENT": "your-value",
"LOG_LEVEL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
- TikTok Business API access token.
- App ID the token belongs to.
TIKTOK_ADVERTISER_IDSenvComma-separated advertiser IDs this server may access. Recommended; required from 3.0.0.- App secret, for endpoints needing app authentication.
TIKTOK_ADVERTISER_IDenvDefault advertiser ID. When TIKTOK_ADVERTISER_IDS is set, must be one of them.TIKTOK_BC_IDenvDefault Business Center ID, for Business Center scoped reads.TIKTOK_BUSINESS_CENTER_IDenvAlias of TIKTOK_BC_ID, read when TIKTOK_BC_ID is unset.TIKTOK_ENABLE_WRITESenvtrue exposes 30 write tools. Defaults to false. Calls preview unless confirm is true.TIKTOK_ENVIRONMENTenvproduction (default) or sandbox. Sandbox binds every call to one advertiser ID.LOG_LEVELenvdebug, info (default), warn or error. Logs go to stderr.
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
- ✓ 通过
作者与仓库一致
注册名称已通过域名 getmcpads.com 验证(注册中心会核实域名所有权)
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“营销与社交媒体”中的其他服务器比较i
- 星标数多于此分类中其他 3591 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 3591 个服务器的 72% 更新
- 基础检查结果等于或优于此分类中其他 3591 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
TikTok Ads 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:TIKTOK_ACCESS_TOKEN, TIKTOK_APP_ID, TIKTOK_APP_SECRET
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(2.1.1)于12天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况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 Ads MCP server
Make sense of your TikTok advertising.
Explore campaign performance, inspect native assets and prepare changes from your MCP client.
Watch the film · What's new · Install · Tool reference · Try hosted getmcpads
[Play the 45-second film](https://www.getmcpads.com/home/film/get-mcp-ads-brand-film-1080p.mp4)
The film shows hosted getmcpads with sample data. Its MCP Apps, from creative galleries and alerts to Google Sheets exports and bulk launches, belong to the hosted product. This repository provides the standalone native API tools.
35 read tools · 30 write tools, disabled by default.
Run locally with your own platform credentials and a client that supports stdio MCP, such as Claude Desktop, Claude Code or Cursor. Your requests go directly to the platform. For managed connections, including supported ChatGPT setups, use the hosted option.
What's new
[v2.1.1: Zod 4 security update](https://github.com/get-mcp-ads/tiktok-ads-mcp-server/releases/tag/v2.1.1) · October 26, 2026
- Update
zodto 4.6.7. Every Zod release before 4.6.6 is covered by the high-severity advisory GHSA-mrhx-c7xc-m3w5: validating an oversized constrained collection can exhaust memory, and no Zod 3 release carries the fix.npm audit --omit=devreports no vulnerability again. - Keep the Zod 3 validation behaviour. A parameter default is still validated and completed before use, so an omitted object must still supply its required fields.
- Keep each parameter's own description when the parameter is optional or has a default. Zod 4 stores a description on the wrapped schema only, so the shared fallback description could otherwise replace it.
- Tool names, parameters and descriptions published over MCP are unchanged.
server-card.jsonis regenerated with Zod 4's JSON Schema output, which spells some constraints differently.
Earlier releases
| Version | Date | Highlights |
|---|---|---|
| 2.1.0 | October 23, 2026 | Advertiser scoping and account rename |
| 2.0.1 | September 23, 2026 | Public repository restored |
| 2.0.0 | September 20, 2026 | Gateway sync and security fixes |
| 1.1.0 | September 13, 2026 | Platform capability sync and quality contracts |
| 1.0.2 | August 30, 2026 | Announce the package version over MCP. |
| 1.0.1 | August 30, 2026 | Add server.json and mcpName for the official MCP Registry, under com.getmcpads/tiktok-ads. |
| 1.0.0 | August 29, 2026 | First open-source release |
Full changelog · All releases
Source synchronization: SOURCE_SYNC.md.
Upgrade notes
Requires Node.js 22.23.4, 24.22.1, 26.12.1 or a newer release. These carry the October 2026 security fixes, and the server prints a warning on stderr when it runs on an older one. CI covers Node 22, 24 and 26.
No breaking change. A 2.0 configuration keeps working. What to know:
TIKTOK_ADVERTISER_IDSis optional. Without it, every advertiser the token reaches stays accessible, and the server prints one line on stderr recommending it. Set it to the advertisers this server may use.TIKTOK_ENABLE_WRITESstill reads1,yesandonastrue, and prints one deprecation line on stderr. UseTIKTOK_ENABLE_WRITES=true.- Version 2.0.1 ignored
TIKTOK_ENVIRONMENT=sandboxand sent every request to production. Version 2.1.0 sends them tosandbox-ads.tiktok.com, bound to one advertiser: the single ID inTIKTOK_ADVERTISER_IDS, orTIKTOK_ADVERTISER_ID. Without either, sandbox calls are refused.
Announced for 3.0.0: TIKTOK_ADVERTISER_IDS becomes required, and only the exact value true enables writes.
Read the current tool schemas before reusing saved arguments. Writes remain optional and require explicit confirmation. Hosted creative integrations and MCP Apps UI are outside this release.
Install this release
This is a GitHub source release. npm and MCP Registry versions are published separately. The commands below select this exact version; unpinned npx examples later in this document select the version currently available on npm.
git clone --branch v2.1.1 --depth 1 https://github.com/get-mcp-ads/tiktok-ads-mcp-server.git
cd tiktok-ads-mcp-server npm ci npm run build
Configure your MCP client to run node with the absolute path to dist/cli.js and the platform credentials documented below.
Prefer a managed connection? Use TikTok Ads with hosted getmcpads. Connect your account, select the data your assistant may access and use the hosted MCP connection. See the site for current features and plans.
What you get
| 35 read tools | Campaigns, ad groups, ads, creatives, audiences, pixels, events, Spark Ads, catalogs, delivery diagnostics |
| 30 write tools | Off by default. Creation and configuration of campaigns, ad groups, ads and Smart+ entities, status, budgets, renames and media uploads. Each one previews before it applies |
| 277 metrics | Including derived ones computed client-side |
| 16 dimensions | With a compatibility matrix that catches invalid combinations before they hit the API |
| 5 resources | Live catalogues the model can read: metrics, dimensions, compatibility rules, 12 workflow recipes |
| Keyword research | tiktok_search_keywords and tiktok_get_search_ads_maturity, for TikTok Search Ads |
| Forward-compatible reads | tiktok_get_read_endpoint, tiktok_get_entities_raw, tiktok_get_report_raw reach endpoints this server doesn't model yet |
The query planner
TikTok rejects many metric and dimension combinations, and its error messages rarely say why. This server encodes the compatibility matrix, so it splits an impossible request into several valid API calls and merges the results instead of failing.
tiktok_validate_query lets the model check a combination before spending a call on it.
One trap this server handles for you
TikTok answers HTTP 200 even when the call failed. The applicative code field is what decides. A client that trusts the HTTP status reports imaginary successes back to the model, which then reasons on data that was never returned. Every call here checks code first.
Getting a token
TikTok needs two values, not one: an access token and the App ID it belongs to.
- Create a developer app on the TikTok for Business developer portal.
- Note the App ID and App Secret from the app's page.
- Authorize the advertiser accounts you want to reach. TikTok grants access per advertiser, so an account you skip here stays invisible to the server no matter what the token allows.
- Complete the OAuth authorization flow to exchange the returned
auth_codefor an access token. TikTok's long-lived tokens do not expire on a fixed schedule, but they are revoked when the authorization is withdrawn. - Put the token in
TIKTOK_ACCESS_TOKENand the App ID inTIKTOK_APP_ID.
📖 TikTok API for Business documentation
Run `tiktok_health_check` as your first call. It verifies the credentials, lists the advertiser accounts you can actually reach, and reports what is missing, without printing your token.
Which permissions?
| Scope group | When you need it |
|---|---|
| Reporting and read scopes | Always. Campaigns, ad groups, ads, insights |
| Campaign management scopes | Only if you set TIKTOK_ENABLE_WRITES=true |
| Catalog and Business Center scopes | Optional, for tiktok_get_shop_catalog_diagnostics |
Setup
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": { "tiktok-ads": { "command": "npx", "args": ["-y", "@getmcpads/tiktok-ads-mcp-server"], "env": { "TIKTOK_ACCESS_TOKEN": "your-token-here", "TIKTOK_APP_ID": "your-app-id-here", "TIKTOK_ADVERTISER_IDS": "your-advertiser-id" } } } }
Restart Claude Desktop. Ask it: *"list my TikTok advertiser accounts"*.
Claude Code
claude mcp add tiktok-ads --env TIKTOK_ACCESS_TOKEN=your-token --env TIKTOK_APP_ID=your-app-id --env TIKTOK_ADVERTISER_IDS=your-advertiser-id -- npx -y @getmcpads/tiktok-ads-mcp-server
Cursor
.cursor/mcp.json in your project, same shape as the Claude Desktop config above.
From source
git clone https://github.com/get-mcp-ads/tiktok-ads-mcp-server.git
cd tiktok-ads-mcp-server npm install && npm run build cp .env.example .env # then fill in your credentials npm start
Configuration
| Variable | Default | Meaning |
|---|---|---|
TIKTOK_ACCESS_TOKEN | none | Required. Your access token |
TIKTOK_APP_ID | none | Required. The App ID the token belongs to |
TIKTOK_ADVERTISER_IDS | none | Recommended, required from 3.0.0. Comma-separated advertiser IDs this server may access. When set, other advertisers are refused before any request, and discovery lists only these. When unset, every advertiser the token reaches is accessible |
TIKTOK_APP_SECRET | none | Optional, for endpoints needing app authentication |
TIKTOK_ADVERTISER_ID | none | Optional default, saves passing it on every call. When TIKTOK_ADVERTISER_IDS is set, it must be one of them |
TIKTOK_BC_ID | none | Optional Business Center ID. TIKTOK_BUSINESS_CENTER_ID is read when it is unset |
TIKTOK_ENABLE_WRITES | false | true registers the 30 write tools. 1, yes and on still work with a deprecation notice until 3.0.0 |
TIKTOK_ENVIRONMENT | production | production or sandbox. Sandbox binds every call to one advertiser: the single ID in TIKTOK_ADVERTISER_IDS, or TIKTOK_ADVERTISER_ID |
LOG_LEVEL | info | debug, info, warn, error |
Check your setup at any time:
npm run doctor
Writes, and why they preview first
Write tools are disabled by default. Enable them with TIKTOK_ENABLE_WRITES=true.
When enabled, every write tool returns a preview and changes nothing:
// tiktok_update_adgroup_budget { advertiserId: "7...", adGroupId: "1...", budget: 50 }
{ "applied": false, "action": "tiktok_update_adgroup_budget", "change": { "advertiser": "7...", "adGroup": "1...", "newBudget": 50, "budgetMode": "BUDGET_MODE_DAY" }, "message": "Preview only, nothing was changed. Repeat the same call with confirm: true to apply this change to the live account." }
Only a se
只显示了开头部分;其余内容请在仓库中阅读