Connect
TikTok Ads to
Claude Code
- When do ads burn out?
https://mcp.lemonado.io/mcpPull TikTok Ads data into Claude Code to track creative fatigue and check TikTok Pixel events against your code. Lemonado connects them in about 1 minute, no API keys needed.
https://mcp.lemonado.io/mcpWhy connect TikTok Ads to Claude Code?
TikTok's pixel and Events API live in your code, and creative tests need data you can rerun. Claude Code reads TikTok Ads through Lemonado, saves the data into your project and checks the events you send.
Your whole TikTok Ads account
Campaigns, ad groups and ads, ready to ask about.
Always today's numbers
Creatives with previews, synced from TikTok Ads automatically, so answers use today's numbers.
Connect all your tools
Questions like "TikTok or Meta for this video?" use TikTok Ads and Meta Ads, Google Ads at once.
How to connect TikTok Ads to Claude Code
Before you start
- A TikTok Ads account you can sign in to
- Claude Code installed
- A Lemonado account (the free trial works)
- 1
Connect TikTok Ads in Lemonado
In Lemonado, open Connectors, find TikTok Ads and sign in. Choose the advertiser accounts you want from your TikTok Business Center.
- 2
Turn on external access
In the company's settings, open External tools, turn the connection on, choose which sources it can reach and copy the server URL.
texthttps://mcp.lemonado.io/mcp - 3
Add the server
With Claude Code installed, run one of these in your terminal. Most people want the first: it adds Lemonado to every project.
bash# every project (recommended) claude mcp add --scope user --transport http lemonado https://mcp.lemonado.io/mcp # this project only claude mcp add --transport http lemonado https://mcp.lemonado.io/mcp - 4
Sign in
Start Claude Code with claude and run /mcp. Choose Lemonado and finish the sign-in in your browser.
bashclaude /mcp - 5
Ask Claude Code about TikTok Ads
Ask a question about the accounts your connection can reach. Claude Code can also write the numbers into a file or a script for you. Try "Save daily CTR and cost per purchase for every TikTok ad since launch to data/tiktok_daily.csv, with a fatigue_day column for when CTR first halves." Or ask: "Which hook should we keep?" or "Is the pixel double counting?"
Good to know
- The command uses Claude Code's default local scope. Use --scope user to share the server across projects.
What can Claude Code do with TikTok Ads?
Claude Code queries your TikTok Ads data while it works in your repo: it saves data as files, checks tracking against code and runs headless with claude -p.
Save daily CTR and cost per purchase for every TikTok ad since launch to data/tiktok_daily.csv, with a fatigue_day column for when CTR first halves.
Saved 3,120 rows. The median fatigue_day is 8, so most TikTok ads lose half their CTR in their second week.
Source: TikTok Ads + your code
Add a notebook cell that compares hook rate and cost per purchase for the three hooks we tested last week.
Added to analysis/hooks.ipynb. "I was wrong about tents" wins at $27 per purchase.
Source: TikTok Ads + your code
Compare the TikTok pixel events in our code with the conversions TikTok Ads reports this week.
"CompletePayment" fires twice on mobile checkout, so TikTok counts 1.9 purchases per order.
Source: TikTok Ads + your code
Save spend, 2-second views, completion rate and purchases by video for the last 30 days as data/tiktok.csv.
Saved 48 videos to data/tiktok.csv. The top 5 drive 64% of purchases.
Source: TikTok Ads + your code
Compare the three hooks we tested last week on cost per purchase.
"I was wrong about tents" won: $27 vs $39 and $44. It also had the highest 2-second view rate.
Source: TikTok Ads
Which age group buys cheapest on TikTok?
25 to 34 at $29 per purchase. 18 to 24 takes 46% of spend at $52.
Source: TikTok Ads
Connect TikTok Ads to another AI app.
Claude
Connect TikTok Ads to Claude
ChatGPT
Connect TikTok Ads to ChatGPT
Cursor
Connect TikTok Ads to Cursor
VS Code (GitHub Copilot)
Connect TikTok Ads to VS Code (GitHub Copilot)
Codex
Connect TikTok Ads to Codex
Perplexity
Connect TikTok Ads to Perplexity
Google Antigravity
Connect TikTok Ads to Google Antigravity
Windsurf (Devin Desktop)
Connect TikTok Ads to Windsurf (Devin Desktop)
Zed
Connect TikTok Ads to Zed
n8n
Connect TikTok Ads to n8n
Other integrations for Claude Code
All Claude Code integrations- Google Ads in Claude CodeAsk Claude, ChatGPT or Cursor about your Google Ads campaigns, search terms and spend.
- Meta Ads in Claude CodeAsk Claude, ChatGPT or Cursor about your Facebook and Instagram ads, creatives and results.
- Google Analytics in Claude CodeAsk Claude, ChatGPT or Cursor about GA4 traffic, conversions and funnels, next to your ad spend.
- Google Search Console in Claude CodeAsk Claude, ChatGPT or Cursor about your search queries, rankings and lost clicks.
- Google Sheets in Claude CodeUse your media plans, targets and offline sales sheets in Claude, next to live ad data.
- LinkedIn Ads in Claude CodeAsk Claude, ChatGPT or Cursor about LinkedIn campaigns, lead forms and who converts.
Reading this as an AI agent?
Everything an agent needs to set this up, in plain text. Paste this page's link into Claude Code and ask it to connect you, or copy the block.
# Connect TikTok Ads to Claude Code (Lemonado MCP) - Server URL: https://mcp.lemonado.io/mcp - Transport: Streamable HTTP - Auth: OAuth; the user signs in to Lemonado in the browser. No API keys. - In Lemonado: connect the TikTok advertiser account. Choose the advertiser accounts you want from your TikTok Business Center. - In Claude Code: Terminal: claude mcp add ```bash # every project (recommended) claude mcp add --scope user --transport http lemonado https://mcp.lemonado.io/mcp # this project only claude mcp add --transport http lemonado https://mcp.lemonado.io/mcp ``` If you are Claude Code, run the setup yourself: Add the Lemonado MCP server for all my projects by running: claude mcp add --scope user --transport http lemonado https://mcp.lemonado.io/mcp Then tell me to run /mcp and sign in to Lemonado. Once I've signed in, list the TikTok Ads accounts Lemonado can reach. First question to try: "Save daily CTR and cost per purchase for every TikTok ad since launch to data/tiktok_daily.csv, with a fatigue_day column for when CTR first halves." More: https://lemonado.io/integrations/tiktok-ads · https://lemonado.io/llms.txt
Frequently Asked Questions
No. TikTok's Marketing API needs a developer app and an access token. With Lemonado you sign in to TikTok once and Claude Code queries your advertiser account through the Lemonado server.
Run claude mcp list to see whether lemonado is connected. If it needs authentication, run /mcp inside Claude Code and sign in again. In Lemonado, check that TikTok Ads is connected and External tools is on for the company. If an advertiser account is missing, check it's shared with your user in TikTok Business Center, then reconnect TikTok Ads in Lemonado.
Yes, if both are connected in Lemonado. One connection reaches every source you allow, so you can ask things like "How does the same UGC video perform on TikTok vs Meta?"
MCP is included in Lemonado's paid plans and in the free trial, so you can try it before you pay.
Still have a question?
Shoot us an email at hello@lemonado.io.
Try for freeStop fighting with data. Start feeding your AI.
Connect your data to AI and free your team from reporting and busywork.
Try Lemonado free