Meta Pixel

Connect Claude Code to TikTok Ads with LoomaScale

To connect Claude Code to TikTok Ads, authorize your advertiser account in LoomaScale, install the LoomaScale plugin in Claude Code, and sign in through /mcp. Start by checking the advertiser ID. Then ask which videos held attention and how much each spent to earn a conversion.

Updated

Connection overview

  1. Authorize TikTok Ads in LoomaScale, choose your advertiser account and set its daily budget cap.
  2. In Claude Code, run /plugin marketplace add loomascale/agent-plugin.
  3. Run /plugin install loomascale@loomascale.
  4. Run /mcp, select loomascale and sign in to LoomaScale in your browser.
  5. Verify the advertiser ID.
  6. Compare the opening seconds of your videos.

What you need before you start

  • Claude Code with plugin support. If /plugin is not recognized, run claude update first.
  • A LoomaScale account with TikTok Ads connected and a daily spend cap configured.
  • A TikTok Ads Manager account you can sign in to, with access to the ad account you want to connect.

Choose your TikTok advertiser account

Open Connections in LoomaScale and select TikTok Ads. Sign in on TikTok and authorize the advertiser account you want to use. Back in LoomaScale, enable that account for assistants and set its daily budget cap. Keep the advertiser ID from TikTok Ads Manager handy for the connection check.

Open LoomaScale connections

Connect Claude Code, step by step

  1. Add the LoomaScale plugin marketplace

    Start Claude Code and run the command below. It registers LoomaScale’s public plugin repository on GitHub as a marketplace, so Claude Code can find the plugin. Nothing is installed yet.

    /plugin marketplace add loomascale/agent-plugin

  2. Install the plugin

    Install the LoomaScale plugin to register its MCP server and skills. Start a new Claude Code session so the tools are available.

    /plugin install loomascale@loomascale

  3. Sign in to LoomaScale

    Run /mcp in Claude Code, select loomascale and choose Authenticate. In the browser, sign in to the LoomaScale account where you connected TikTok Ads and approve access. Then return to Claude Code.

    /mcp

  4. Verify the advertiser ID

    Run the prompt below. Compare the ID and currency with TikTok Ads Manager. If you manage several advertisers, include the intended ID in your next request.

    Use LoomaScale to list my TikTok advertiser accounts with their IDs and currencies. Identify the default account and list its campaigns with their delivery statuses. Read only.

  5. Compare the opening seconds of your videos

    A video may appear in several ads. Group the results by video so those ads count toward the same creative. Read view rates alongside spend and conversions to decide which opening deserves another test.

    For the last 14 complete days, group my TikTok ads by video. Show spend, impressions, two-second and six-second views per impression, and conversions. Which opening would you test again, and why? Read only.

Claude Code plugin documentation

Add the MCP server without the plugin

Prefer to manage MCP servers yourself? Run this command in your shell instead of steps 1 and 2, then sign in through /mcp as in step 3. You get the LoomaScale tools without the plugin’s skills.

claude mcp add --transport http loomascale https://api.loomascale.com/mcp

What Claude Code can do with your connected account

Compare campaigns on the same basis

Ask for spend, conversions and cost per conversion by ad group. Check which event each ad group optimizes for before comparing results. A lead and a purchase can both count as conversions.

Find which videos hold attention

Group ads by video to see how the same creative performs across placements. Compare two-second and six-second views per impression, then check spend and conversions before choosing a video to refresh.

Prepare a paused Smart+ campaign

For an advertiser with Smart+ enabled, LoomaScale can prepare a website Sales or Lead Generation campaign using videos already in the TikTok library. Ask for a preview to review the budget and creative. Newly created campaigns, ad groups and ads start paused.

TikTok’s definitions of video play metrics

Three read-only prompts to try next

Which of my TikTok videos hold attention?

Analyze my TikTok Ads creatives for the last 30 days. For each ad show spend, impressions, the share of impressions that reached 2 seconds and 6 seconds of the video, the completion rate, CTR, conversions and cost per conversion. Rank the ads from strongest to weakest hook, name the ones that are spending while viewers leave in the first seconds, and tell me which to pause, which to keep and what the strongest ones have in common. Don't make changes.

What changed in my TikTok account?

Compare the last 7 days in my TikTok Ads account with the 7 days before. Show spend, impressions, clicks, CTR, conversions and cost per conversion for both periods at account level, then list the campaigns that moved most in each direction. For each say whether the cause was cost, delivery volume or conversion rate. End with the single thing most worth my attention this week. Don't make changes.

Check my TikTok budget pacing

List my active TikTok Ads campaigns and ad groups and pull their daily spend and conversions for the last 7 days. Flag ad groups that spent on several days with no conversions, ad groups pacing well above or below their daily budget, and ones that stopped delivering. For the flagged ad groups, include TikTok's own diagnosis. Tell me what needs attention and why. Don't make changes. If everything is pacing normally, say so rather than finding something to report.

If the connection does not work

/plugin is not recognized.

Update Claude Code with claude update, restart it, and run the marketplace command again. Plugins need a recent Claude Code version.

The marketplace or install command fails.

Check the exact names: the marketplace is loomascale/agent-plugin and the plugin is loomascale@loomascale. Make sure your network can reach github.com.

loomascale shows as failed or needing authentication in /mcp.

Select it in /mcp and choose Authenticate again. If the browser shows a connection error after you choose Allow, copy the full address from the address bar and paste it into Claude Code.

Why is my TikTok advertiser missing?

Open Connections in the LoomaScale account you used to sign in. Check that TikTok authorized the advertiser and that the account is enabled for assistants. Run the account check again and match the ID with TikTok Ads Manager.

Frequently asked questions

How is this different from the Claude connector?

The Claude connector works in Claude on the web and in the desktop and mobile apps. The Claude Code plugin works in your terminal and adds skills for audits, pacing and launches. Both use the same LoomaScale account and ad connections.

What counts as a six-second TikTok video view?

TikTok counts a view when someone watches for six seconds, finishes a shorter video or engages within the first six seconds. Compare this metric alongside completions and conversions when deciding which opening to test again.

Can I review TikTok spend without changing a campaign?

Yes. The reporting prompts on this page only read account data. You can request a budget or status change separately. LoomaScale checks increases to a daily budget against the cap you set for that advertiser.

Related guides

Start with your own campaign data

Connect your ad account, install the LoomaScale plugin in Claude Code, and run a waste audit. Try LoomaScale free for 7 days; no card required.

Connect an ad account

Connect your assistant to your ad platform

LoomaScale runs inside the assistant you already use. Pick the pair you work with; each guide takes about five minutes.

ChatGPT
Google Ads

Manage Google Ads campaigns from ChatGPT: search terms, budgets and new campaigns, paused for your review. One-click install from ChatGPT's directory.

Read the integration
Claude
Google Ads

Manage Google Ads from Claude: audits, budget changes and new campaigns, every write inside the spend cap you set. Connect from Claude's directory.

Read the integration
Claude Code
Google Ads

Install the LoomaScale plugin in Claude Code with two commands and audit Google Ads from your terminal: search terms, budgets and pacing, with skills built in.

Read the integration
Codex
Google Ads

Install the LoomaScale plugin in OpenAI Codex with two commands and audit Google Ads from your terminal: search terms, budgets and conversion goals.

Read the integration
ChatGPT
Meta Ads

Manage Facebook and Instagram campaigns from ChatGPT: ad sets, budgets and creatives in one chat. The same one-click install.

Read the integration
Claude
Meta Ads

Manage Facebook and Instagram campaigns from Claude: audits, budget caps and new ad sets, inside the limits you set.

Read the integration
Claude Code
Meta Ads

Run Facebook and Instagram campaign reviews from Claude Code: the same plugin, one sign-in, and skills for waste audits, pacing and creative fatigue.

Read the integration
Codex
Meta Ads

Review Facebook and Instagram campaigns from OpenAI Codex: the same plugin and sign-in, with placement, age and lead-quality checks.

Read the integration
ChatGPT
TikTok Ads

Manage TikTok campaigns from ChatGPT: reports, video watch-through, audience breakdowns, and pauses, budgets and bids on request. The same one-click install.

Read the integration
Claude
TikTok Ads

Manage TikTok campaigns from Claude: audits, video and audience reports, and pauses, budgets and bids inside the spend cap you set.

Read the integration
Codex
TikTok Ads

Sign in with codex mcp login loomascale, verify the TikTok advertiser ID and compare complete weeks without treating missing conversion data as zero.

Read the integration
Manus
Google Ads

Connect Manus to Google Ads through LoomaScale’s MCP server. Analyze campaigns, keywords and search terms, then request changes within your permissions and spend cap.

Read the integration
Slack
Google Ads

Ask Slackbot about Google Ads in any Slack DM: audits, search terms and pacing checks, with changes kept inside your spend cap. Install the app once per workspace.

Read the integration
Manus
Meta Ads

Connect Manus to Meta Ads through LoomaScale’s MCP server. Review Facebook and Instagram campaigns, ad sets, creatives and placements.

Read the integration
Slack
Meta Ads

Ask Slackbot about Facebook and Instagram campaigns in any Slack DM: delivery, pacing and ad-set spend, read live from Meta Ads.

Read the integration
Slack
TikTok Ads

Install LoomaScale once for the workspace. Each teammate links their own account and can ask Slackbot for yesterday’s spend and TikTok’s diagnosis of a stalled ad group.

Read the integration