TikTok Ads MCP logo

TikTok Ads MCP

Connects AI clients to TikTok Business accounts for campaign reporting, video analytics, targeting data, benchmarks, and conversion metrics.

Install TikTok Ads MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "dhawalshah-tiktok-ads-mcp": {
      "command": "uvx",
      "args": [
        "tiktok-ads-mcp"
      ],
      "env": {
        "TIKTOK_APP_ID": "YOUR_VALUE_HERE",
        "TIKTOK_SECRET": "YOUR_VALUE_HERE",
        "TIKTOK_ACCESS_TOKEN": "YOUR_VALUE_HERE",
        "BASE_URL": "YOUR_VALUE_HERE",
        "GCP_PROJECT_ID": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx tiktok-ads-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

TikTok Ads MCP connects MCP-compatible clients to the TikTok Business API for querying advertiser accounts, campaigns, ads, reports, video performance, targeting, and conversion data. It supports local STDIO authentication with a single access token or a remote HTTP deployment using OAuth 2.1 and per-user TikTok credentials. Use it when an AI assistant needs to inspect TikTok advertising data in natural language, compare creative performance, or monitor account and pixel metrics. Large report jobs can be handled through separate asynchronous report tools available through the TikTok partner programme.

Use cases

  • Query campaign and ad performance for selected date ranges
  • Compare creative metrics with TikTok industry benchmarks
  • Analyze video retention and creative fatigue
  • Inspect audience targeting, reach estimates, and conversion events

Key features

  • TikTok campaign, ad group, ad, and Smart+ campaign queries
  • Custom performance reports with dimensions, metrics, and date ranges
  • Video watch metrics and creative fatigue analysis
  • Audience reach, interest targeting, Pixel, and offline event data
  • Local STDIO and remote OAuth-enabled HTTP deployment modes

Tools23

What TikTok Ads MCP lets your agent do. Expand a tool for its parameters.

Self-reported~407 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

10/10 checks healthy over the last 39d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · tiktok-ads-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit5d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed23Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How TikTok Ads MCP works

What TikTok Ads MCP does

TikTok Ads MCP exposes read-oriented tools for TikTok Business advertising data through the Model Context Protocol. It can enumerate advertiser accounts, retrieve account details and balances, inspect Business Centers, and browse campaigns, Smart+ campaigns, ad groups, ads, and video assets.

Its reporting tools cover custom dimensions, metrics, and date ranges. Video analysis includes two-second and six-second views, completion rate, and average watch time. Additional tools provide industry comparisons for CTR, CVR, CPM, and CPC; creative fatigue scores with refresh recommendations; estimated audience reach; available interest categories; Pixel installations; pixel event statistics; and offline event sets.

How it works

The server supports two operating modes. Local STDIO is intended for one user: a one-time OAuth helper obtains a TikTok access token, and an MCP client launches the server as a subprocess. The token is supplied through the environment and is used to query the authorised advertiser account.

Remote HTTP mode is designed for Claude Teams, claude.ai, and multi-user deployments. The service implements the MCP authorization flow, including OAuth metadata discovery, dynamic client registration, and an authorization endpoint. TikTok handles user identification and consent; the service then issues its own bearer token and maps requests to the corresponding stored TikTok credentials.

For remote deployment, OAuth bearer tokens and user TikTok credentials are stored in Google Cloud Firestore, with the service typically hosted on Google Cloud Run. Access is based on the TikTok permissions associated with each user's profile. An optional email allow-list can further restrict who may connect.

Setup and configuration

Python 3.10 or newer, a TikTok Business developer app, and at least one authorised advertiser are required. Remote HTTP mode also needs a Google Cloud project with Firestore enabled and suitable permissions for the Cloud Run service account.

Install the Python dependencies after cloning the project, then configure the TikTok app ID and secret. Local mode additionally requires an access token, which can be obtained through the included browser-based authorization script. Remote mode requires a public base URL and Google Cloud project ID, followed by deployment to Cloud Run and registration of the live OAuth callback URL in the TikTok developer portal.

Important configuration includes:

  • TIKTOK_APP_ID and TIKTOK_SECRET for TikTok OAuth credentials.
  • TIKTOK_ACCESS_TOKEN for local STDIO mode.
  • BASE_URL and GCP_PROJECT_ID for remote HTTP mode.
  • ALLOWED_EMAILS for an optional comma-separated connection allow-list.
  • TIKTOK_SANDBOX to select TikTok's sandbox API, when set to true.

Tools and capabilities

The account and Business Center tools identify accessible advertisers, account metadata, balances, Business Centers, assets, and members. Campaign inspection covers standard and Smart+ campaigns, ad groups, individual ads, creative details, and statuses.

Reporting tools support custom performance queries across selected dimensions, metrics, and date ranges. For large datasets, the asynchronous workflow creates a report task, checks its status, and downloads the completed result. These asynchronous report tools are identified as partner-programme tools.

Audience and measurement tools expose targeting interests, reach estimates, TikTok Pixels, tracked event statistics, and offline conversion event sets. Video and creative tools help review watch behavior, asset libraries, industry benchmarks, and fatigue indicators.

Limitations and notes

Local STDIO mode is intended for a single user and does not require Firestore, Cloud Run, or a public URL. The HTTP server uses stored credentials for remote multi-user access, so Firestore and appropriate Google Cloud permissions are part of that deployment path.

TikTok account email addresses may be personal addresses rather than work domains. Email-domain restrictions are therefore not a reliable access-control method; use the explicit ALLOWED_EMAILS setting when a fixed allow-list is needed. New TikTok redirect URLs may take up to 10 minutes to propagate.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about TikTok Ads MCP

TikTok Ads MCP is an MCP server that connects AI clients to the TikTok Business API. Its main tools query advertiser accounts, campaigns, ads, reports, video performance, audience targeting, benchmarks, Pixels, and conversion events. It supports local token-based access and remote OAuth-based access for multi-user deployments.

Clone the project, install its Python dependencies, and configure the required TikTok credentials in the environment. For local use, run the included authorization flow to obtain an access token and register the server as a Claude Desktop subprocess. Remote use requires Cloud Run, Firestore, and OAuth callback configuration.

Yes, TikTok Ads MCP works with Claude Desktop in both local STDIO and remote HTTP modes. Local configuration launches the server as a subprocess with TikTok credentials, while remote configuration points Claude Desktop to the server's `/mcp` URL and performs OAuth when first used.

Yes, it provides asynchronous report tools for large datasets. Create a report task, check its status, and download the completed result. These asynchronous reporting tools are marked as partner-programme tools.

Set `ALLOWED_EMAILS` to a comma-separated list of TikTok-account email addresses. With the setting empty, any TikTok Business user may connect, subject to the advertiser permissions granted to that TikTok profile.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTikTok Ads MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/dhawalshah-tiktok-ads-mcp?style=directory)](https://allmcps.com/mcp/dhawalshah-tiktok-ads-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/dhawalshah-tiktok-ads-mcp"><img src="https://allmcps.com/api/badge/dhawalshah-tiktok-ads-mcp?style=directory" alt="TikTok Ads MCP on AllMCPs" /></a>