Guides4 min read

How to Connect Claude Code to Google Ads (MCP Setup)

One terminal command connects Claude Code to your Google Ads account through the VibeAds MCP server. Pull reports, find wasted spend, script weekly reviews and draft campaigns from the terminal. Sign in with your VibeAds account or use an API key; either way, publishing waits for your approval.

CN
Chiran Nawalage · @chiran
··Updated Oct 20, 2026

Claude Code is Anthropic's coding agent for the terminal, and it can use any MCP server as a set of tools. Point it at VibeAds and it can read your Google Ads performance, explain wasted spend, and draft campaigns, right next to the code and notes you already keep in your repo. It's a good fit for agencies and anyone who likes to script a weekly account review.

What do I need?

  • Claude Code installed and signed in.
  • A VibeAds account (free to create) with Google Ads connected in Settings. Reading works on every plan; drafting, importing, recommendations and publishing need Pro ($20 a month) or Max.
  • A VibeAds API key, or a sign-in. A key suits scripts and shared machines; generate one at Settings, MCP Server Keys. It starts with vba_mcp_ and is shown once. Or sign in with your VibeAds account, as Claude on the web does (below).

How do I add VibeAds to Claude Code?

Two ways: sign in with your VibeAds account, with no key (below), or use an API key. With a key, use the hosted server and send the key in a header. Nothing to install:

claude mcp add --transport http vibeads https://getvibeads.com/api/mcp --header "x-vibeads-api-key: vba_mcp_YOUR_KEY_HERE"

Or run the open-source npm package locally, which forwards to the same server:

claude mcp add vibeads -e VIBEADS_API_KEY=vba_mcp_YOUR_KEY_HERE -- npx -y @vibeads/mcp

Check it with claude mcp list, then start Claude Code and ask: "Show me my Google Ads campaigns in VibeAds."

Keep the key out of files you commit. Each key can be revoked on its own in VibeAds, so make one per machine or per client.

What can Claude Code do with it?

The same tools every assistant gets: campaign details and a health score, wasted-spend and winning search terms, the optimizer's issues and recommendations, drafting a campaign, importing campaigns you already run, pausing one, Google's own recommendations, and for agencies the list of client accounts under a manager account.

Where Claude Code shines is putting those together:

  • "Pull every campaign's numbers for the last 7 days and write them to reports/2026-10-09.md, with what changed since last week's file."
  • "List the search terms that cost over $20 with no conversions and draft a negative keyword list I can review."
  • "For each client account, show the top three issues and the fix for each."

Can Claude Code spend money?

No, not with a key and not signed in. Publishing a campaign always returns an approval link: you open it in your browser, signed in to VibeAds, and approve or reject it there. The key can't approve it, and neither can Claude Code. Raising a daily budget, or a bid past double or $50 a click, works the same way. Changes that run directly, like applying one of the optimizer's recommendations, go through the same safety checks as the dashboard, and each key is limited to 60 calls an hour.

Can Claude Code sign in instead of using a key?

Yes. Add the server with a fixed callback port, then open /mcp in Claude Code, choose VibeAds and sign in in your browser:

claude mcp add --transport http --callback-port 31790 vibeads https://getvibeads.com/api/mcp

Any free port works; 31790 is an example. Keep it fixed: VibeAds checks the address Claude Code returns to exactly, so a later sign-in on a different port is refused. If that happens, run claude mcp remove vibeads and add it again with the port.

VibeAds' sign-in page calls it "An app on this computer", because a program on your computer can't prove which one it is. Allow it only if you just started connecting from Claude Code. Signed in, Claude Code can do everything a key can, and spends the same way: publishing a campaign, starting a paused one and raising a daily budget always go through an approval link you open in VibeAds, because Claude Code can run with nobody watching. You can disconnect it in Settings, Connected apps.

Troubleshooting

  • "Missing VibeAds API key". The header name must be exactly x-vibeads-api-key, and the key must start with vba_mcp_.
  • "Not included in this account's plan". Drafting and publishing need Pro or Max; reading works on any plan.
  • Google Ads not connected. Connect it in VibeAds Settings, then try again.
  • The sign-in is refused. Claude Code was added without --callback-port, or with a different port. Run claude mcp remove vibeads, add it again with the port, and sign in from /mcp.

More detail, including every tool and its plan, is in the MCP server docs.

Skip the research

Get your custom Google Ads plan in 5 minutes.

Answer 4 questions about your business and we'll show you exactly what an AI-built campaign looks like for your category, your budget, and your situation, before you spend a dollar on ads.

Build my plan

Free. No credit card. Takes about 5 minutes.

CN

Written by Chiran Nawalage

@chiran

Founder & CEO of VibeAds

Built VibeAds to replace $1,500/mo marketing agencies with a $20/mo AI tool for plumbers, HVAC companies, electricians, dentists, roofers, and 30+ local service categories. Passionate about making Google Ads accessible to every small business owner.

Related Articles

#claude-code#mcp#google-ads-automation#integrations#developers