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.

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:
{
"mcpServers": {
"adchat": {
"url": "https://mcp.adchat.app"
}
}
}Step 2: Pick where to put it
Cursor reads MCP servers from two places:
- Global:
~/.cursor/mcp.jsonin your home folder. AdChat is then available in every project. This is the best choice for most people. - Project:
.cursor/mcp.jsoninside 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:
{
"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 trialStep 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_:
{
"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.
Questions? Email me at [email protected]
More in Get started
Part of All guides. New to connecting AI to your ads? Start with the Meta Ads MCP guide, which compares every option.
Use AdChat Without Claude or ChatGPT (Built-in Chat)
No AI subscription? Ask about your Facebook and Instagram ads in AdChat's own chat at adchat.app. Nothing to install, nothing to configure.
How to Connect Facebook and Google Ads to Claude with AdChat
Add AdChat to Claude as a custom connector in about two minutes. Paste one URL, sign in, and ask Claude about your Meta and Google ads in plain English.
How to Connect Facebook and Google Ads to ChatGPT with AdChat
Add AdChat to ChatGPT as a custom MCP server so you can ask about your Meta and Google ads in plain English. Covers plans, sign-in options and common errors.