Open source · Google Ads & Meta Ads

Run your ads by chatting with your AI

Adrex connects Google Ads and Meta Ads to Claude, Cursor, VS Code, and any MCP client. Manage campaigns in plain language, set up in about a minute, no API key needed.

Setup

About a minute, four steps. Do them in this order — step 1 before step 2 matters.

1

Connect your ad accounts

Sign up at adrex.ai, then go to Settings → API Connections and connect Google Ads, Meta Ads, or both. You sign in with Google or Facebook and approve access. Your tokens stay on Adrex's servers — your AI client never sees them.

Do this before step 2. If you connect your AI app first, all the tools appear but every one returns nothing, which looks broken but is just missing setup.
2

Add Adrex to your AI app

Pick your app. There is no API key to copy — you sign in through your browser in step 3.

Run this in your terminal, from any directory:

claude mcp add --transport http adrex-ai https://api.adrex.ai/mcp

Add -s user to make it available in every project instead of just the current one.

3

Authorize in the browser — check the account name

A browser tab opens by itself. You will see a consent screen like this:

  Connect Claude Code (adrex-ai)

  ┌──────────────────────────────────────────────┐
  │  Authorizing as                              │
  │  you@company.com            Not you? Switch  │
  └──────────────────────────────────────────────┘

  ✓ View your ad data
  ✓ Manage your campaigns

           [ Deny ]        [ Authorize → ]
Check the email under “Authorizing as”. If it is not the account you connected your ad accounts to in step 1, click Not you? Switch and sign in as the right one. This is the most common setup mistake — it looks like it worked, then nothing has any data.

Then click Authorize. The tab closes itself.

4

Confirm it worked

Ask your assistant:

“Are my ad accounts connected?”

You should get a table showing Google Ads and/or Meta Ads as Connected. If either says “Not connected”, see Troubleshooting.

Your AI may ask permission the first time it runs an Adrex action — choose “Yes, and don't ask again”.

Try it: example prompts

How are we doing? What needs attention this week?

Why did my cost per lead go up over the last 14 days?

Audit my keywords — where am I wasting money?

Which search terms spent money without converting?

Is my conversion tracking actually working?

Did anyone change this account recently?

Increase the budget on my top-ROAS campaign by 15%.

Add these 10 negative keywords to my Search campaign.

What you can do

Start here

account_review answers "how are we doing / what needs attention" across Google and Meta in one call. campaign_diagnosis explains why performance moved, attributing it to cost-per-click vs conversion rate.

Find wasted spend

Rank keywords, ads and creative by actual return. Search-term reports surface negatives to add. keyword_insights runs the full keyword audit — blocking negatives, wasted-spend themes, Quality Score premiums, budget caps, duplicates.

Trust the numbers

conversion_health checks tracking is working before you believe any CPA or ROAS. recent_changes shows who changed what, because most sudden shifts are something someone did.

Make changes

Campaigns, ad groups, ad sets, responsive search ads, keywords and negatives, budgets, targeting and audiences — across both platforms. Everything new is created paused.

Report

Performance summaries, daily time series, and breakdowns by device, network, platform, age and gender.

On the platform (paid)

The waste audit, autonomous optimization agent, budget rules and A/B experiments.

Safety & permissions

  • New campaigns and ads are created paused, so nothing spends until you say so.
  • Deletes and budget changes are gated server-side, and every change is logged.
  • Your OAuth tokens stay on Adrex's servers, and your AI client never sees them.
  • Revoke access anytime: disconnect a platform or remove access in Settings.

Plans & limits

The MCP server is free and open source. Hosted usage is metered by monthly tool calls, with higher tiers unlocking the waste audit, autonomous agent and experiments. See pricing.

Troubleshooting

  • Browser didn't open / not connecting: re-run the connect command and allow your browser to open the app.
  • “No accounts found”: connect Google Ads or Meta Ads first in Settings → API Connections.
  • Everything says “Not connected” even though you connected an account: you likely authorized while signed in as a different Adrex account. Check Settings → Connect to your AI → Connected AI apps, which shows the account the grant is bound to. Revoke the app there, then re-authorize.
  • Re-authorizing as a different account: adding the server again does nothing once it's configured (already exists in local config). In Claude Code run /mcp, pick adrex-ai and clear authentication, then reconnect — the consent screen shows which account you're authorizing as, with a “Not you? Switch” link.
  • AI keeps asking permission: choose “Yes, and don't ask again” in your client.
  • Quota reached: you've hit your monthly tool-call limit. Upgrade your plan in Settings.
  • Using the API key method behind a proxy: the npx server honors HTTP_PROXY / HTTPS_PROXY.

Ready to run your ads from your AI?

Connect Google Ads or Meta Ads and start in under a minute.

Get started free