---
title: 'Cursor + Meta Ads MCP Workflow: Setup, Audits & Guardrails'
description: 'Connect Cursor to Meta Ads via Plainrouter MCP. Configure .cursor/mcp.json, debug CAPI beside your codebase, preview dry_run_actions, and gate writes safely.'
canonical: 'https://plainrouter.com/library/cursor-meta-ads-workflow'
format: Guide
last_updated: '2026-12-02'
---

Connecting [Cursor to Meta Ads via Plainrouter MCP](</agents/cursor/meta>) lets developers and technical growth leads inspect live campaign performance, verify first-party conversion signals, and prepare governed ad changes inside the same IDE where tracking code and landing pages live.

## Why run Meta Ads workflows inside Cursor?

Most Meta Ads debugging crosses the boundary between codebase and ad account: a checkout deploy breaks event\_id deduplication, a landing page redirect strips fbclid, or a new campaign needs paused creative tests aligned with a product launch. Keeping Meta Ads reads and dry-run previews inside Cursor eliminates copy-pasting CSV exports between Ads Manager and your editor.

- **Code + signal context together: **Inspect your Next.js or Shopify checkout code in one pane while Cursor checks Plainrouter's stored Meta CAPI delivery diagnostics and first-party arrival counts in the next.
- **Zero raw Meta token exposure: **Cursor talks to Plainrouter's hosted MCP endpoint (https://plainrouter.com/mcp) using a scoped workspace key or OAuth, without storing long-lived Meta System User tokens in local .env files.
- **Governed write guardrails: **Every write goes through dry\_run\_actions previews first and respects Ask, Custom, or Full approval modes.

## Step 1: Connect Cursor to Plainrouter MCP in 2 minutes

Add Plainrouter to your project's .cursor/mcp.json (or install directly from the Cursor Directory plugin) and pass your workspace key from an environment variable rather than committing secrets:

` {
  "mcpServers": {
    "plainrouter": {
      "url": "https://plainrouter.com/mcp",
      "headers": {
        "Authorization": "Bearer ${PLAINROUTER_API_KEY}"
      }
    }
  }
} `

Start with Read access and Ask mode enabled on your workspace. Restart or reload MCP servers in Cursor Settings \> Tools & MCP so Cursor discovers the Plainrouter tool schemas.

## Step 2: Run a signal-first Meta audit alongside your codebase

Never ask an AI agent to adjust budgets before confirming that conversion tracking is healthy. Run this first read-only prompt in Cursor Composer or Agent mode:

` Use Plainrouter MCP to inspect the last 7 and 14 days of Meta campaign spend, Meta-reported purchases, and Plainrouter first-party arrivals. Flag any campaign where Meta purchases diverge sharply from verified arrivals or where CAPI delivery errors increased after our last deploy. `

If Cursor flags missing or duplicated events, run your production URL through the [Meta Tracking Health Checker](</tools/meta-tracking-checker>) or paste a failing browser/server pair directly into the [Meta Pixel & CAPI Dedup Checker](</tools/event-id-dedup-checker>) before making any media-buying changes.

## Step 3: Stage paused creative tests and preview writes with dry\_run\_actions

Once conversion signals are verified, use Cursor to inspect fatigued ads and stage clean, paused proposals rather than live unreviewed edits:

- **Preview first: **Instruct Cursor to call dry\_run\_actions before submitting any proposal so you can inspect the exact before/after diff against workspace policy and admission rules.
- **Keep new ads paused: **Plainrouter Launch creates new creative variants paused by default, reusing verified source ad structures without risking accidental live spend.
- **Understand Ask, Custom, and Full modes: **Ask waits for your approval on every write. In Custom mode, your workspace switches decide which agent changes run on their own and which wait for a person (such as holding budget increases). Full runs agent changes that pass admission and workspace policy automatically, while rule violations are always blocked and shown in the Inbox.

## Step 4: Three high-signal Cursor workflow recipes

- **Post-deploy conversion regression check: **After shipping a checkout or consent banner PR in Cursor, ask the agent to compare the last 24 hours of Plainrouter CAPI receipts and \_fbp/\_fbc match rates against the prior 7-day baseline.
- **Weekly wasted-spend triage: **Ask Cursor to rank active ad sets with spend above 2x target CPA and zero verified arrivals over 7 days, then run dry\_run\_actions to propose pausing only the bottom outliers.
- **Landing-page URL and UTM sanity check: **Have Cursor cross-check active ad destination URLs against your repo's Next.js or Laravel route table to catch 404s, redirect loops, or stripped fbclid parameters.

## Frequently asked questions

### Can Cursor modify my live Meta Ads budgets without my approval?

Only if you explicitly configure that mode. In Ask mode, every write waits for your approval in the Plainrouter Inbox. In Custom mode, your workspace switches decide whether budget increases, campaign/ad-set creation, or other writes wait for a person. In Full mode, agent changes that pass admission and workspace policy run automatically, while rule violations are always blocked and shown in the Inbox.

### Should I commit .cursor/mcp.json with my Plainrouter API key?

Never commit API keys to git. Reference an environment variable such as $\{PLAINROUTER\_API\_KEY\} in .cursor/mcp.json or authenticate via OAuth, and scope the workspace credential to read-only until your team has reviewed several dry-run previews.

### Does Cursor MCP query live Meta Ads Manager or stored Plainrouter snapshots?

Plainrouter serves retained account performance, creative inventory, independent first-party arrivals, and stored conversion-signal diagnostics alongside freshness timestamps. Always check the reporting window and freshness before making same-day spend decisions.

### How is Plainrouter MCP different from self-hosted open-source Meta Ads MCP servers?

Self-hosted scripts typically wrap raw Meta Marketing API tokens directly on your laptop with no approval queue, no dry-run policy engine, and no independent first-party arrival counts. Plainrouter hosts the MCP server with workspace-scoped credentials, Inbox approvals, verification receipts, and first-party CAPI evidence.

## Related guides and tools

- [Connect Cursor to Meta Ads via MCP](</agents/cursor/meta>): official Cursor setup guide, .cursor/mcp.json config, and Cursor Directory details.
- [15 Meta Ads MCP prompts](</library/meta-ads-mcp-prompts>): copy-paste prompts for spend audits, creative fatigue, CAPI checks, and Ask-mode proposals.
- [Run a Meta Ads campaign audit with AI](</library/meta-ads-campaign-audit-with-ai>): five-step audit workflow for Claude, ChatGPT, Codex, and Cursor.
- [Meta Ads budget optimization with AI agents](</library/meta-ads-mcp-budget-optimization>): safe scaling steps, 15% to 25% caps, and approval gates.
- [Claude Code + Meta Ads MCP workflow](</library/claude-code-meta-ads-workflow>): terminal-first companion workflow for Claude Code users.
