TikTok Ads — Claude Code MCP server: features and setup
Connect an AI client to TikTok Ads to inspect campaign performance and ad assets, then prepare account changes. Write tools are off by default.
claude mcp add --env TIKTOK_ACCESS_TOKEN=<TIKTOK_ACCESS_TOKEN> --env TIKTOK_APP_ID=<TIKTOK_APP_ID> --env TIKTOK_ADVERTISER_IDS=<TIKTOK_ADVERTISER_IDS> --env TIKTOK_APP_SECRET=<TIKTOK_APP_SECRET> --env TIKTOK_ADVERTISER_ID=<TIKTOK_ADVERTISER_ID> --transport stdio tiktok-ads -- npx -y @getmcpads/tiktok-ads-mcp-serverWhat TikTok Ads does
The server exposes 35 tools for reading TikTok Ads data and 30 tools for writes. An AI client can review campaign performance, inspect native ad assets, and prepare changes to an account. It connects over stdio MCP, with requests sent directly to TikTok Ads.
Writes are disabled by default and need explicit confirmation. Setup requires TIKTOK_ACCESS_TOKEN, TIKTOK_APP_ID, and TIKTOK_APP_SECRET; TIKTOK_ADVERTISER_IDS can restrict which ad accounts the server may access. Run it with Node.js 22.23.4, 24.22.1, 26.12.1, or a newer release. Older Node.js releases trigger a warning at startup.
What it helps with
- Review TikTok Ads campaign performance
- Inspect ad assets in an account
- Prepare changes to advertising settings
- Restrict server access to selected ad accounts
Example prompts for the agent
- Review campaign performance for my TikTok Ads account.
- Show me the ad assets available in my TikTok Ads account.
- Prepare account changes and show me what would be written.
How to install TikTok Ads
Platform CLI
claude mcp add --env TIKTOK_ACCESS_TOKEN=<TIKTOK_ACCESS_TOKEN> --env TIKTOK_APP_ID=<TIKTOK_APP_ID> --env TIKTOK_ADVERTISER_IDS=<TIKTOK_ADVERTISER_IDS> --env TIKTOK_APP_SECRET=<TIKTOK_APP_SECRET> --env TIKTOK_ADVERTISER_ID=<TIKTOK_ADVERTISER_ID> --transport stdio tiktok-ads -- npx -y @getmcpads/tiktok-ads-mcp-serverReplace <…> with your own values. 5 more environment variables are in the server README
Platform CLI
codex mcp add tiktok-ads --env TIKTOK_ACCESS_TOKEN=<TIKTOK_ACCESS_TOKEN> --env TIKTOK_APP_ID=<TIKTOK_APP_ID> --env TIKTOK_ADVERTISER_IDS=<TIKTOK_ADVERTISER_IDS> --env TIKTOK_APP_SECRET=<TIKTOK_APP_SECRET> --env TIKTOK_ADVERTISER_ID=<TIKTOK_ADVERTISER_ID> -- npx -y @getmcpads/tiktok-ads-mcp-serverReplace <…> with your own values. 5 more environment variables are in the server README
Config file
{
"mcpServers": {
"tiktok-ads": {
"command": "npx",
"args": [
"-y",
"@getmcpads/tiktok-ads-mcp-server"
],
"env": {
"TIKTOK_ACCESS_TOKEN": "<TIKTOK_ACCESS_TOKEN>",
"TIKTOK_APP_ID": "<TIKTOK_APP_ID>",
"TIKTOK_ADVERTISER_IDS": "<TIKTOK_ADVERTISER_IDS>",
"TIKTOK_APP_SECRET": "<TIKTOK_APP_SECRET>",
"TIKTOK_ADVERTISER_ID": "<TIKTOK_ADVERTISER_ID>"
}
}
}
}Replace <…> with your own values. 5 more environment variables are in the server README
Config file
{
"servers": {
"tiktok-ads": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@getmcpads/tiktok-ads-mcp-server"
],
"env": {
"TIKTOK_ACCESS_TOKEN": "<TIKTOK_ACCESS_TOKEN>",
"TIKTOK_APP_ID": "<TIKTOK_APP_ID>",
"TIKTOK_ADVERTISER_IDS": "<TIKTOK_ADVERTISER_IDS>",
"TIKTOK_APP_SECRET": "<TIKTOK_APP_SECRET>",
"TIKTOK_ADVERTISER_ID": "<TIKTOK_ADVERTISER_ID>"
}
}
}
}Replace <…> with your own values. 5 more environment variables are in the server README
Platform CLI
gemini mcp add -e TIKTOK_ACCESS_TOKEN=<TIKTOK_ACCESS_TOKEN> -e TIKTOK_APP_ID=<TIKTOK_APP_ID> -e TIKTOK_ADVERTISER_IDS=<TIKTOK_ADVERTISER_IDS> -e TIKTOK_APP_SECRET=<TIKTOK_APP_SECRET> -e TIKTOK_ADVERTISER_ID=<TIKTOK_ADVERTISER_ID> tiktok-ads npx -y @getmcpads/tiktok-ads-mcp-serverReplace <…> with your own values. 5 more environment variables are in the server README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about TikTok Ads
How do I install TikTok Ads in Claude Code?
Run `claude mcp add tiktok-ads -e TIKTOK_ACCESS_TOKEN=<TIKTOK_ACCESS_TOKEN> -e TIKTOK_APP_ID=<TIKTOK_APP_ID> -e TIKTOK_APP_SECRET=<TIKTOK_APP_SECRET> -- npx -y @getmcpads/tiktok-ads-mcp-server`. Replace the placeholders with your credentials.
What does TikTok Ads do?
It connects an AI client to TikTok Ads through MCP. Its tools read account data, inspect ad assets, and prepare changes.
Are writes enabled by default?
No. Write tools are disabled by default, and changes require explicit confirmation.