✨ Cursor MCP Agent Setup

April 17, 2025 · View on GitHub

Welcome to your Multi-Agent Configuration for Cursor! This setup integrates three powerful agents: Playwright, Airbnb, and DuckDuckGo Search—bringing automation, search, and real estate APIs to your editor. 🧠💻


🔧 Configuration Overview

Here's how your .cursor/mcp.json file is structured:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    },
    "airbnb": {
      "command": "npx",
      "args": ["-y", "@openbnb/mcp-server-airbnb"]
    },
    "duckduckgo-search": {
      "command": "npx",
      "args": ["-y", "duckduckgo-mcp-server"]
    }
  }
}

🤖 Playwright Agent - Browser Automation

Playwright Agent

This agent enables:

  • 🌐 Navigation
  • 🖱️ Element Clicking
  • ⌨️ Typing into fields
  • 📸 Screenshots
  • 📄 PDF saving

Usage Example:

// browser_navigate to https://example.com

Airbnb

Use this agent to:

  • 🔍 Search Airbnb listings
  • 📝 Fetch listing details

Command:

npx -y @openbnb/mcp-server-airbnb

🔎 DuckDuckGo Search Agent

DuckDuckGo

Your private search buddy within the IDE. 🔐

Use Cases:

  • 📖 Web search queries
  • 🧠 Quick answers without leaving your editor

Command:

npx -y duckduckgo-mcp-server

🚀 How to Use Agents

  1. Open Cursor IDE
  2. Highlight a comment like:
// browser_navigate to https://github.com
  1. Press Ctrl + I (or use the command palette)
  2. Boom 💥 — the agent runs!

Tip: Keep the .cursor/mcp.json file in your project root to persist your agent setup.



🦾 Level Up Your Dev Workflow

With these agents, you can:

  • Automate UI testing with Playwright
  • Search listings with Airbnb
  • Query the web with DuckDuckGo

Happy hacking, dev! 💡🚀