Sprites MCP · TikTok Ads MCP server · Claude Code

How to connect TikTok Ads to Claude Code

To connect TikTok Ads to Claude Code, add https://mcp.sprites.ai/mcp as a remote MCP server in Claude Code, sign in to Sprites, and Claude Code can read your TikTok Ads account and propose changes to it. Setup takes about two minutes and needs no API key. Every write comes back as an approval before it touches the account.

MCP server URLhttps://mcp.sprites.ai/mcp

4 steps · about 2 minutes

Claude CodeSprites connected

Which TikTok openings are converting?

Spritesanalyzerunning
SpritesTikTok
  • Problem-first openCTR 2.4% · CPA $18
  • Founder to cameraCTR 1.9% · CPA $24
  • Product beauty shotCTR 0.6% · CPA $91
Beauty shots are burning 31% of spendRotate

Add Sprites to Claude Code

Available on Any Claude Code install, on Pro, Max, Team, Enterprise or an API key. You need a Sprites account with TikTok Ads already connected — the connector acts on that connection, so Claude Code never handles a TikTok credential.

TikTok Ads MCP setup guide
  1. Add the server in one line

    Run the command once. --scope user makes Sprites available in every project; leave it off and the server is saved for the current project only, in ~/.claude.json.

    Terminal
    claude mcp add --transport http --scope user sprites https://mcp.sprites.ai/mcp
  2. Or share it with the repo

    To give the whole team the server, add it to .mcp.json at the repository root. Each person still signs in as themselves, and Claude Code asks before it trusts a project server.

    .mcp.json
    {
      "mcpServers": {
        "sprites": {
          "type": "http",
          "url": "https://mcp.sprites.ai/mcp"
        }
      }
    }
  3. Sign in with /mcp

    Start Claude Code, type /mcp, pick sprites and authenticate. The Sprites consent screen opens in your browser; sign in and approve, and the tools load into the session.

    Spriteswants access on behalf of Claude Code
    • Read your connected ad accounts and site data
    • Draft campaigns, creatives and pages for your approval
    • Apply only the changes you approve
    AllowCancel

What permissions this needs

Connecting TikTok Ads to Claude Code yourself means a TikTok API for Business integration, and these are the permissions and gates it runs into. Through Sprites you sign in with OAuth instead, with no developer token or app review of your own.

Advertiser authorization

The advertiser approves an app through TikTok for Business and picks which advertiser accounts it may act on.

advertiser_ids

The access token comes back with the list of advertiser IDs that were granted, and every call names one of them.

Developer app

A self-built integration registers its own app in the TikTok API for Business portal before any advertiser can authorize it.

What Sprites asks for when you connect

Advertiser authorization through TikTok for Business on the Sprites app. You choose the advertiser accounts it covers.

What you skip

You register no TikTok developer app and never handle an access token. Claude Code signs in to Sprites with OAuth and never holds a TikTok credential.

Official TikTok Ads MCP vs Sprites MCP

TikTok runs its own MCP server at business-api.tiktok.com/open_mcp/tt-ads-mcp-layer. Here is what each one covers, so you can pick the one that fits in Claude Code — or connect both.

TikTok for Business hosts its own MCP server for the Marketing API, with no developer credentials needed. It comes in two shapes: a flat server exposing about 400 tools, and a layered one exposing about 40 core tools and loading the rest as needed. Between them they read and write campaigns, audiences, bidding, creative and catalogs — on TikTok, and only TikTok.

TikTok’s official TikTok for Business MCP server compared with the Sprites MCP server
TikTok officialbusiness-api.tiktok.com/open_mcp/tt-ads-mcp-layerSprites MCPapproval-gated
Endpointbusiness-api.tiktok.com/open_mcp/tt-ads-mcp-layer (or -flat)mcp.sprites.ai/mcp
ToolsAbout 40 core tools layered, or about 400 flatBroad doors: analyze, optimize, launch, change
ChannelsTikTokTikTok plus Meta, Google Ads, LinkedIn, Reddit, GA4 and SEO
WritesCampaigns, audiences, bidding and creative through the APIEach change an approval card with before and after, applied only on approve
New creativeManages creative you have uploadedDrafts hooks, scripts and concepts from the ads converting in your account
AnalysisReturns data for the model to readA TikTok specialist compares CPA and CTR across every ad before answering

If you run TikTok alone and want its data and controls in a chat, TikTok’s own server is the direct route — choose the layered version so 400 tool descriptions do not crowd out your question. Use Sprites when TikTok is one channel of several, when you want the next creative batch drafted, or when every change should wait for an approval your team can see.

Run the first prompt

Ask Claude Code this. It routes to a Sprites door, which reads your TikTok Ads account and answers — no account to name, no confirmation to give first.

  • With Sprites, which TikTok ads have the lowest CPA this month?
  • Ask Sprites for 6 new TikTok hooks based on our top performer.
  • Use Sprites to find TikTok ad groups spending with no conversions in 7 days.
  • Have Sprites launch a TikTok campaign for the summer bundle at $150/day.
  • With Sprites, find TikTok hook ideas in what our customers complain about on Reddit.

Run claude mcp list, or type /mcp in a session. Sprites shows as connected, and asking "what can Sprites do?" lists the doors.

What Claude Code can do with TikTok Ads

The same doors, whichever client you are in. The ad account and the code that tracks it in one terminal: Claude Code can read a conversion drop through Sprites, then open the tag or the event that explains it.

Read performance by ad, not just by campaign

Spend, CTR, CPC, conversions and CPA for every ad, so the openings that convert stand apart from the ones that do not.

Keep the batch coming

New hooks and scripts drafted against the ones already earning, in the volume the platform demands.

Rotate before the drop

The day a creative's CPA breaks trend, and what to swap in.

Hooks from real audience language

Pain points and phrasing mined from Reddit threads in your category, turned into openings you can test.

Launch in the right shape

Campaign, ad groups and ads built for TikTok's structure, not a search campaign wearing a costume.

Stop feeding the losers

Ad-group spend moved onto the creatives that convert, with the trade stated in the card.

How approvals work here

Claude Code renders tool results as text, so a TikTok change comes back written out rather than as a card. The approval waits for you in Sprites — open it there and the same run continues. Nothing is applied until you approve it.

What it reads

  • Campaigns, ad groups, ads and their status
  • Spend, impressions, clicks, CTR, CPC, CPM, conversions and CPA
  • Per-ad performance for every creative
  • Your uploaded videos, images and music

What it can change

  • Create campaigns, ad groups and ads
  • Budgets, schedules, statuses and targeting
  • New hooks and scripts, previewed before they ship

When it does not work in Claude Code

Three things go wrong in this client specifically, and each has a one-line fix.

The .mcp.json entry is ignored.

It has a url but no "type": "http", so Claude Code reads it as a local command server. Add the type.

claude -p or a script fails with an auth error.

A headless run cannot open the browser sign-in. Authenticate once in an interactive session with /mcp; the stored grant then works headless.

A long report comes back cut off.

Claude Code caps MCP output at 25,000 tokens by default. Raise MAX_MCP_OUTPUT_TOKENS, or ask Sprites for a shorter summary.

TikTok Ads and Claude Code: questions

Which URL do I paste into Claude Code?

https://mcp.sprites.ai/mcp. There is one endpoint and every client uses it — every OAuth grant is bound to exactly that address, so a variant of it will not be honoured.

Can Claude Code change my TikTok Ads account without asking?

Claude Code renders tool results as text, so a TikTok change comes back written out rather than as a card. The approval waits for you in Sprites — open it there and the same run continues. Nothing is applied until you approve it.

Do I need a TikTok Ads API key or developer token?

No. TikTok Ads is connected once inside Sprites through TikTok Ads Manager, and the connector acts on that connection. You register no TikTok developer app and never handle an access token. Claude Code never sees a credential for it.

Why Claude Code for TikTok Ads specifically?

The ad account and the code that tracks it in one terminal: Claude Code can read a conversion drop through Sprites, then open the tag or the event that explains it.

Is there an official TikTok Ads MCP server?

Yes. TikTok for Business runs its own hosted MCP server, in two shapes: a flat server with about 400 tools and a layered one with about 40 core tools loaded progressively. It reads and writes TikTok only. Sprites is a separate server that covers TikTok with Meta, Google, LinkedIn and Reddit, drafts new hooks and concepts, and holds every change for approval.

Can it upload video?

It drafts hooks, scripts and concepts and proposes the ad; the video file itself is attached in the approval card before anything publishes.

Keep going

The same Claude Code connector reaches every other channel — nothing else to add.

All TikTok guides

TikTok Ads, from Claude Code

Paste one URL, sign in once, and the next TikTok question you ask Claude Code gets answered from the live account.