Your ad accounts, in Kimi Code
Add the Adstudio MCP server to Kimi Code and work with live Google Ads, Meta Ads and TikTok Ads numbers where you write code. Pull them into scripts, notebooks and dashboards without an export.
- One setup step adds the Adstudio MCP server
- Live ad numbers in scripts, notebooks and dashboards
- Down to the campaign, ad group and ad
An example conversation in Kimi Code: it reads live ad accounts through Adstudio and explains what changed.
Kimi Code + Adstudio in 3 steps
No API keys and nothing to install on your ad accounts. Kimi Code signs in to Adstudio, and Adstudio does the talking to Google, Meta and TikTok.
- 01Add the serverIn your terminal, run the first command below.
- 02Sign inRun kimi mcp auth adstudio and sign in with your Adstudio account in the browser.
- 03AskStart Kimi Code and ask about your ads, or have it pull the numbers into a file.
kimi mcp add --transport http --auth oauth adstudio https://useadstudio.com/api/mcp kimi mcp auth adstudio
What Kimi Code can do with your ads
Live numbers in your code
Pull spend, conversions and CPA into a script, a notebook or a dashboard, without exporting a file.
Ads and creatives too
Campaigns, ad groups, ads and the creatives behind them, not just account totals.
Your role is the limit
Kimi Code reaches the workspaces you are a member of, and never beyond your role in each one.
Off in one click
Turn off MCP access in Settings → MCP and Kimi Code loses access at once.
Every number sourced
Each figure names the account, the campaign and the date range it came from.
No platform passwords
Kimi Code signs in to Adstudio with OAuth. Your ad platform logins never reach it.
What to ask Kimi Code first
Questions teams running Google, Meta and TikTok ask every week. Each one works as written once Adstudio is connected.
Pull last 30 days of spend and CPA by campaign into data/spend.csv.
Try it in Kimi CodeChart weekly ROAS by platform for the last quarter.
Try it in Kimi CodeList TikTok ads by CTR this month and save the top ten to a JSON file.
Try it in Kimi CodeCompare this week’s Google Ads spend with the same week last month and flag anything up 20%.
Try it in Kimi CodeKimi Code, answered
Is this the Kimi app or Kimi Code?
These steps are for Kimi Code, Moonshot AI's agent for the terminal. It connects to Adstudio with one command.
Where is the sign-in saved?
Kimi Code keeps the token in ~/.kimi/mcp-oauth/ after you sign in, so you only sign in once.
Can Kimi Code change my campaigns?
No. The Adstudio MCP server only reads: it lists your accounts and reads performance, campaigns, ad groups, ads and creatives. Changes are made in Adstudio, where each one is a plan you approve.
What can Kimi Code see?
The workspaces you are a member of in Adstudio, never beyond your role in each one. Turn off MCP access in Settings → MCP and Kimi Code loses access at once, along with every other connected AI.
Which ad platforms can I use from Kimi Code?
Google Ads, Meta Ads and TikTok Ads, through the accounts you have connected in Adstudio.
Same accounts, whichever AI you use
Bring your ad accounts to Kimi Code
Google Ads, Meta Ads and TikTok Ads, one sign-in away.