Log in

AdChat for Cursor

Connect Facebook & Google Ads to Cursor

One click adds AdChat to Cursor. Sign in once and ask about your Meta and Google ads from the editor.

FacebookGoogle AdsOne MCP server, one AdChat account, both ad platforms

AdChat MCP server URL

https://mcp.adchat.app
Add to Cursor
  • OAuth sign-in, no API keys
  • 7-day free trial, no card
  • Set up in about a minute

Three steps. That's it.

  1. 1

    Paste it into Cursor

    Click Add to Cursor, or paste the link as a remote server in ~/.cursor/mcp.json.

  2. 2

    Connect Facebook and Google

    Sign in to AdChat when asked and connect Facebook, Google Ads or both. They share the one AdChat link.

  3. 3

    Ask about your ads

    Live numbers from your account, in plain English. Nothing changes without your yes.

Then just ask

Cursor pulls live data from your Facebook and Google ad accounts through AdChat and answers with real numbers. Click a question to copy it.

CursorCursorAdChat connected

Which Facebook ads wasted money this month?

I checked your Meta ads for the last 30 days. Three ads spent $412 with zero purchases:

  • Summer sale – carousel$188 · 0 purchases
  • UGC video v2$131 · 0 purchases
  • Broad 25-45 – static$93 · 0 purchases

Want me to pause them? I'll show you each change first.

via AdChat · Meta Ads

Example conversation. The numbers are made up.

One link works in every AI app

Use AdChat wherever you already chat. Same tools, same safety, one account.

AdChat for Cursor: FAQ

No. Cursor signs in to AdChat with OAuth the first time it connects. The config only needs the URL.

No. Cursor signs in to AdChat with OAuth, and you connect Facebook and Google by logging in to each. You never paste a token anywhere.

No. The AI has to tell you the exact change and get your yes first, and new campaigns, ad sets and ads start paused.

Yes. Connect Google Ads in the same AdChat account, when you sign in or later from your dashboard, and Cursor sees it through the same link. There's no second server to add. Ask about results and search terms, change budgets and keywords, and add search ads. TikTok isn't supported.

Every new account gets a 7-day free trial of everything, no card, on all your ad accounts. After that, plans start at $29 a month. Cancel anytime.

Let Cursor run your Facebook and Google ads

Start your 7-day free trial, connect Facebook and Google, and paste the link. You approve every change.

Start free trial

7-day free trial of everything, no credit card (built-in chat: 10 messages; unlimited in your own Claude or ChatGPT). Then from $29/month. Cancel anytime.

Step-by-step guide

Connect Facebook and Google Ads to Cursor with AdChat (mcp.json Setup)

Add AdChat to Cursor by pasting a few lines into mcp.json. Ask about your Meta and Google ads, build reports and scripts right inside your editor.

Eric Strohmaier
By , founder of AdChatPublished Updated 3 min read

Try AdChat free for 7 days, no card. Start your trial

Cursor is an AI code editor, and it can connect to MCP servers. With AdChat added, you can ask Cursor's agent about your Facebook and Instagram ads, pull live numbers into a dashboard you're building, or write a script that reports on your campaigns. Setup takes a minute: you paste a small block of JSON into a config file.

Google Ads too. The same AdChat link covers Google Ads. Connect Google in your AdChat account, when you sign in or later from your dashboard, and Cursor sees your Facebook and Google ad accounts through this one server. There's nothing extra to add.

What you need

  • Cursor installed.
  • An AdChat account. Sign up. You can connect Facebook now or when you sign in from Cursor.

Step 1: Copy the JSON config

On your AdChat dashboard home page, open Use AdChat inside Claude or ChatGPT and expand JSON config. Click Copy config. It looks like this. There's no key in it, because you sign in instead:

json
{
  "mcpServers": {
    "adchat": {
      "url": "https://mcp.adchat.app"
    }
  }
}

Step 2: Pick where to put it

Cursor reads MCP servers from two places:

  • Global: ~/.cursor/mcp.json in your home folder. AdChat is then available in every project. This is the best choice for most people.
  • Project: .cursor/mcp.json inside a project folder. AdChat is only available in that project.

If the file doesn't exist, create it and paste the config. If it already has other servers, add the adchat entry inside the existing mcpServers object, like this:

json
{
  "mcpServers": {
    "some-other-server": { "url": "https://example.com/mcp" },
    "adchat": {
      "url": "https://mcp.adchat.app"
    }
  }
}

Check the commas between entries. A missing comma is the most common reason the file doesn't load.

Step 3: Sign in

Open Cursor's settings and find the MCP section (in recent versions it's called Tools & MCP). AdChat should be listed there. If it's switched off, turn it on. If you just edited the file, restarting Cursor helps.

The first time, Cursor asks you to sign in. A browser window opens. Sign in to AdChat, connect Facebook if you haven't yet, and click Allow. AdChat then shows its tools. You only do this once. Cursor stays connected as long as you use AdChat at least once every 90 days.

Try it on your own account. Connect your Meta and Google ads to Claude, ChatGPT or the built-in chat. 7-day free trial of everything, no credit card (built-in chat: 10 messages; unlimited in your own Claude or ChatGPT). Then from $29/month. Cancel anytime.

Start free trial

Step 4: Ask a question

Open the agent chat in Cursor and try:

Using AdChat, show me my active Facebook campaigns with spend, CTR and cost per result for the last 14 days.

Or put it to work on code:

Use AdChat to fetch daily spend for my account over the last 30 days, then write a small script that turns it into a chart.

Cursor asks before running tools, depending on your settings. For more prompts, see Your first 10 questions to ask.

Can't sign in? Use your key as a header

Signing in is the way to go. If it doesn't work in your setup, you can send your AdChat key as a header instead. Your key is in the dashboard and starts with adchat_:

json
{
  "mcpServers": {
    "adchat": {
      "url": "https://mcp.adchat.app",
      "headers": {
        "Authorization": "Bearer ${env:ADCHAT_KEY}"
      }
    }
  }
}

Set ADCHAT_KEY in your shell profile (for example export ADCHAT_KEY=adchat_... in ~/.zshrc) and restart Cursor. Don't paste the key itself into a mcp.json that gets committed to git. If it ever leaks, roll it in the dashboard and the old key stops working.

Troubleshooting

AdChat doesn't appear in Cursor. Make sure the file is named exactly mcp.json and sits in ~/.cursor/ or your project's .cursor/ folder. Then check the JSON is valid (no trailing commas, matching braces) and restart Cursor.

AdChat shows an error or zero tools. Check the URL is exactly https://mcp.adchat.app. The old AdChat address no longer works. Update the URL, restart Cursor and sign in again. If you use the header instead, the value must be Bearer followed by a key that starts with adchat_.

"Your AdChat free trial has ended". After the 7-day trial, AdChat needs a plan. Pick Weekly or Daily on the pricing page. See How AdChat confirms changes.

FAQ

Is this the same config as Claude Desktop or other apps? The mcpServers format is shared by many apps, so the same block often works elsewhere. See Use AdChat with any MCP client.

Will Cursor change my ads? Only when you ask, and after you say yes to the exact change. New campaigns, ad sets and ads are created paused by default.

Try it

Start your 7-day free trial. No credit card needed. Questions? Email [email protected].

Try it on your own ad account

Connect your Meta and Google ads to Claude, ChatGPT or our built-in chat in about a minute.

Start free trial7-day free trial of everything, no credit card (built-in chat: 10 messages; unlimited in your own Claude or ChatGPT). Then from $29/month. Cancel anytime.

Questions? Email me at [email protected]