
Prerequisites
- Cursor installed
- An AdsGateway account
- A connected Meta Ads account in AdsGateway for analytics workflows
Connect AdsGateway
One-click install (recommended)
Manual config
Add this to~/.cursor/mcp.json:
Copy/Paste Agent Prompt (MCP Install)
Use this in Cursor chat if you want the agent to configure MCP safely:Guardrails
- Preserve existing MCP entries.
- Use exact URL:
https://ads-gateway.onrender.com/mcp. - Do not create nested
mcpServers. - Return final config diff.
Use AdsGateway for Analytics
Use this sequence:- Connect AdsGateway MCP in Cursor.
- Authenticate and connect Meta.
- Select the ad account you want to analyze.
- Run analytics/journey prompts.
- Account management
List my Meta ad accountsWhich account am I currently using?
- Performance insights
Give me an account summary for the last 7 daysAre there any anomalies in my ad performance?
- Journey reports
Generate an ad report for ad <id> since 2026-02-01 until 2026-02-07
- Creative analysis
Analyze the creative for ad <id>
Verify Analytics
Run:Troubleshooting
- Cursor config errors (
Must have either a command ... or url ...):- ensure one top-level
mcpServersobject and valid JSON
- ensure one top-level
- Auth popup issues:
- allow popups and re-toggle server

