tiktok-ads-mcp-server
Provides tools for reading and analyzing TikTok advertising data, including campaigns, ad groups, ads, creatives, audiences, pixels, events, Spark Ads, catalogs, delivery diagnostics, reporting insights, and keyword research for TikTok Search Ads. Optionally supports preview-first writes for campaign and ad group statuses, budgets, and campaign creation.
Click on "Install 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-ads-mcp-serverWhat were my top campaigns by spend last week?"
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-ads-mcp-server
An open-source Model Context Protocol server for the TikTok Business API. It lets Claude, ChatGPT, Cursor or any MCP client read and analyse your TikTok advertising data, and change it if you choose to.
You run it. Your token stays on your machine. Nothing is proxied through a third party.
npx -y @getmcpads/tiktok-ads-mcp-serverPrefer not to run it yourself? getmcpads.com is the hosted version of this server, with TikTok Ads alongside Meta Ads, Google Ads, Pinterest Ads, GA4 and Search Console behind a single endpoint, hosted OAuth, and cross-platform reporting. Same tools, same safety model, no setup.
What you get
27 read tools | Campaigns, ad groups, ads, creatives, audiences, pixels, events, Spark Ads, catalogs, delivery diagnostics |
5 write tools | Off by default. Campaign and ad group status, budgets, campaign creation. 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 |
|
Forward-compatible reads |
|
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.
Related MCP server: TikTok Ads MCP
How this compares to TikTok's own MCP server
TikTok ships an official MCP server, announced at TikTok World '26 and hosted at
business-api.tiktok.com/open_mcp/. It is a serious product, and it is bigger than this one.
Here is an honest comparison.
TikTok's official server | This server | ||
Hosting | TikTok-hosted, remote | You host it. stdio, local process | Hosted for you |
Data path | Through TikTok's endpoint | Direct to the Business API. No intermediary | Through our gateway |
Tools | ~400 flat, or ~40 in layered mode | 32 (27 read + 5 write) | 32, plus 5 other platforms |
Coverage | Far broader | Reporting, structure, creatives, audiences | Same as this server |
Writes | Applied directly | Preview first, applied only on | Preview first |
Metric compatibility | None documented | Query planner splits incompatible requests | Same planner |
HTTP 200 on failure | Handled internally | Checked on every call | Checked |
Auditable | No | Yes. Apache-2.0, read every line | This server, audited |
Modifiable | No | Fork it | No |
Be clear about the trade-off. If you want the widest possible surface of the TikTok API, the official server covers far more endpoints than this one does, and you should use it.
What this server offers instead is a curated set. TikTok themselves ship a layered mode that exposes about 40 tools rather than 400, because loading hundreds of tool definitions fills the model's context and makes it pick the wrong tool more often. 27 well-described read tools with a compatibility-aware planner is a deliberate design choice, not a gap.
Choose the official server for breadth, or if you don't need to see the code. Choose this one if you need your data to stay on your infrastructure, want to audit or extend what the model can do, or want writes that cannot fire on the first call. Choose getmcpads.com if you want this server's capabilities without running it, or you need more than one ad platform in the same conversation.
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 |
Catalog and Business Center scopes | Optional, for |
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"
}
}
}
}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 -- npx -y @getmcpads/tiktok-ads-mcp-serverCursor
.cursor/mcp.json in your project, same shape as the Claude Desktop config above.
From source
git clone https://github.com/getmcpads-com/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 startConfiguration
Variable | Default | Meaning |
| none | Required. Your access token |
| none | Required. The App ID the token belongs to |
| none | Optional, for endpoints needing app authentication |
| none | Optional default, saves passing it on every call |
| none | Optional Business Center ID |
| unset | Set to |
|
|
|
Check your setup at any time:
npm run doctorWrites, and why they preview first
Write tools are disabled by default. Enable them with TIKTOK_ENABLE_WRITES=1.
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 second call carrying confirm: true touches the live account.
This is deliberate. An assistant composes these calls, and it can pick the wrong advertiser, the wrong campaign, or the wrong order of magnitude on a budget. A mandatory preview makes the mistake visible before it costs money, and gives a human the stopping point the protocol does not guarantee on its own.
One further guardrail: tiktok_create_campaign always creates the campaign DISABLE.
There is no option to create it running.
Tool | What it changes |
| Pause or reactivate |
| Budget, in the account currency |
| Creates a campaign, always |
Tools
Discovery and health
Tool | Purpose |
| Verifies credentials and advertiser access without exposing the token |
| Every advertiser account the token can reach |
| Account metadata: name, currency, timezone, status |
Structure
Tool | Purpose |
| List entities and their settings |
| Delivery state and why it may be limited |
Performance
Tool | Purpose |
| The main reporting tool. Metrics, dimensions, compatibility-aware planning |
| Check a metric and dimension combination before running it |
| Native report fields, no aliasing |
| Track a long-running async report |
Creatives
Tool | Purpose |
| Ad creative text, media IDs, landing URLs |
| Video assets and their metadata |
| Workflows for spotting creative fatigue |
| Spark Ads and their organic counterparts |
Audiences and targeting
Tool | Purpose |
| Custom and lookalike audiences |
| Overlap between audiences |
| Available targeting options |
Search Ads
Tool | Purpose |
| Keyword suggestions for TikTok Search Ads |
| How ready an account is for Search Ads |
Commerce and signals
Tool | Purpose |
| Pixels and the events they receive |
| Catalog and product feed health |
Escape hatches
Tool | Purpose |
| Call an allowlisted read endpoint directly |
| Raw entity reads with your own field selection |
These exist so a new API field doesn't require a new release. Mutating endpoints, OAuth endpoints and credential parameters are blocked on these paths, so a crafted argument cannot turn a read tool into a write.
URI | Contents |
| What this server exposes, and its current mode |
| All 277 metrics with categories and formats |
| All 16 dimensions and where they are valid |
| The compatibility matrix |
| 12 step-by-step workflows |
Security
The server holds a credential that can read, and optionally modify, live ad accounts. Concretely:
The token is never logged. Debug output prints
Access-Token: [redacted].Requests go only to
business-api.tiktok.com, and only under/open_api/v1.3/. Any other host or path is refused rather than called. Covered by tests.Redirects are refused once a token is attached, so a redirect cannot forward your credential elsewhere.
Mutating and OAuth endpoints are blocked on the generic read paths. Covered by tests.
No telemetry. The server makes no network call other than to the TikTok Business API. You can verify this by grepping the source for
fetch.
Full policy and reporting instructions: SECURITY.md.
Looking for a managed, multi-platform version?
This server does one platform, on your machine, with your token. That is on purpose.
If you'd rather not run it yourself, or you need TikTok Ads alongside Meta Ads, Google Ads, Pinterest Ads, GA4 and Search Console behind one endpoint, with hosted OAuth and cross-platform reporting, that's what we build at getmcpads.com.
Same philosophy, less plumbing. This project stays open source and independently useful either way.
Contributing
Issues and pull requests are welcome. See CONTRIBUTING.md. Please read SECURITY.md before reporting anything security-related.
Licence
Apache License 2.0. See also NOTICE.
TikTok and TikTok for Business are trademarks of ByteDance Ltd. and its affiliates. This project is not affiliated with, endorsed by, or sponsored by TikTok or ByteDance. It is an independent client of a public API.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides read-only access to TikTok advertising data, including campaigns, ad groups, ads, and performance reports through the TikTok Business API.640MIT
- AlicenseBqualityBmaintenanceA read-only MCP server that provides comprehensive access to the TikTok Business API for retrieving advertising data, including campaigns, ad groups, ads, and performance reports.24MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI-powered advertising applications by providing MCP-compliant tools to interact with Amazon Ads API for campaign management, reporting, and optimization.1MIT
- FlicenseNot gradedqualityBmaintenanceA read-only MCP server for querying Meta Ads accounts through Meta's Marketing API. It provides tools to retrieve ad accounts, campaigns, ad sets, ads, and performance insights.
Related MCP Connectors
Google Ads, Meta Ads & GA4 MCP server - 250+ tools for campaigns, creatives, audiences & reports.
Search Meta, Google Ads, LinkedIn, and TikTok ad libraries plus creative analysis via MCP.
OpenAI Ads MCP for ChatGPT Ads campaigns, creatives, audiences, insights, and conversions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/getmcpads-com/tiktok-ads-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server