Skip to main content
Cursor Cursor is an AI-powered code editor with built-in MCP support.

Prerequisites

Connect AdsGateway

Add AdsGateway MCP server to Cursor

Manual config

Add this to ~/.cursor/mcp.json:
{
  "mcpServers": {
    "Ads Gateway": {
      "url": "https://ads-gateway.onrender.com/mcp"
    }
  }
}
Then enable the server and complete browser authentication.

Copy/Paste Agent Prompt (MCP Install)

Use this in Cursor chat if you want the agent to configure MCP safely:
Configure Ads Gateway MCP for Cursor.

Requirements:
1) Edit ~/.cursor/mcp.json and MERGE this server entry:
{
  "mcpServers": {
    "Ads Gateway": {
      "url": "https://ads-gateway.onrender.com/mcp"
    }
  }
}
2) Do not remove or overwrite existing MCP servers.
3) Keep JSON valid and avoid nested mcpServers blocks.
4) If file does not exist, create it with valid JSON.
5) Show me the final file diff and tell me to toggle/restart MCP in Cursor.

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:
  1. Connect AdsGateway MCP in Cursor.
  2. Authenticate and connect Meta.
  3. Select the ad account you want to analyze.
  4. Run analytics/journey prompts.
Prompt categories:
  • Account management
    • List my Meta ad accounts
    • Which account am I currently using?
  • Performance insights
    • Give me an account summary for the last 7 days
    • Are 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:
List my Meta ad accounts
Then:
Give me my account performance summary for the last 7 days

Troubleshooting

  • Cursor config errors (Must have either a command ... or url ...):
    • ensure one top-level mcpServers object and valid JSON
  • Auth popup issues:
    • allow popups and re-toggle server