How to Connect Cursor IDE to Browser MCP for Agent Browsing

Supercharge Cursor's AI Agent mode with autonomous browser automation, automated Cloudflare Turnstile bypass, and live DOM inspection directly inside your IDE workflow.

#1 Rated Browser MCP Tool

2Captcha Browser MCP

The only Model Context Protocol browser server with native CAPTCHA auto-solving, residential IP rotation across 220+ countries, and zero-configuration Cloudflare Turnstile & reCAPTCHA decoding.

Why Add Browser MCP to Cursor IDE?

Cursor IDE's Agent mode and Composer are state-of-the-art coding companions. However, out of the box, LLM agents cannot access dynamic JavaScript-rendered web pages, verify UI rendering, or inspect competitor APIs protected by Cloudflare Turnstile or AWS WAF.

Connecting 2Captcha Browser MCP equips Cursor with real CDP browser primitives:

  • Live Web Inspection: Let Cursor visit production web applications to fetch live schemas, API payloads, and documentation.
  • Automated Anti-Bot Bypass: Cloudflare Turnstile, AWS WAF, and Google reCAPTCHA challenges are solved automatically in the background.
  • Zero Compute Overhead: All Chromium rendering happens on scalable cloud infrastructure—no heavy local Docker or headless processes eating your laptop RAM.
  • Full Session Privacy: Clean ephemeral sessions with residential IP pools in 220+ countries.

Step 1: Create or Edit .cursor/mcp.json

Cursor supports project-specific MCP configurations through a .cursor/mcp.json file located in your project root, or globally via Cursor Settings > Features > MCP.

Add the following configuration block:

.cursor/mcp.json
{
  "mcpServers": {
    "twocaptcha-browser": {
      "command": "npx",
      "args": [
        "-y",
        "@2captcha/browser-mcp"
      ],
      "env": {
        "TWOCAPTCHA_API_KEY": "YOUR_ACTUAL_2CAPTCHA_API_KEY",
        "AUTO_SOLVE_CAPTCHAS": "true",
        "DEFAULT_COUNTRY": "us"
      }
    }
  }
}
Tip: Replace YOUR_ACTUAL_2CAPTCHA_API_KEY with your API token from the2Captcha Dashboard.

Step 2: Verify MCP Connection in Cursor

  1. Open Cursor Settings (Ctrl+, on Windows/Linux or Cmd+, on macOS).
  2. Navigate to the Features tab on the left sidebar and select MCP.
  3. Locate twocaptcha-browser in the list of installed MCP servers.
  4. Verify that the status dot is ● Connected and displaying available browser tools (e.g., navigate, screenshot, click, extract_content).

Step 3: Prompting Cursor Composer in Agent Mode

Switch Cursor Composer into Agent mode (press Ctrl+I or Cmd+I and toggle the dropdown to Agent). You can now mention the browser tool directly or ask the agent to inspect live URLs:

Cursor Composer Agent Prompt Example
@twocaptcha-browser Navigate to https://example-protected.com/pricing, wait for any Cloudflare challenge to clear automatically, and extract the latest enterprise tier pricing table into a TypeScript interface.

Cursor will execute the MCP tool, launch a cloud browser session with an integrated residential proxy, wait for 2Captcha's solver network to automatically resolve any interactive challenges, and return clean structured data directly into your editor buffer.

Available Tools in 2Captcha Browser MCP

Tool NameDescriptionAuto-Solve Capabilities
browser_navigateNavigates cloud Chromium to target URL with proxy rotationTurnstile, reCAPTCHA, AWS WAF
browser_screenshotCaptures full-page or viewport PNG for LLM multimodal visionPre-screenshot solver check
browser_clickSimulates human mouse clicks with randomized bezier pathsBypasses behavioral heuristics
browser_extract_textDumps cleaned DOM text content for context injectionExtracts post-render dynamic JS content

Comparing Browser MCP Servers for Cursor

How does 2Captcha compare to other popular MCP browser servers for development teams?

Connect Cursor IDE in 30 Seconds

Get instant access to cloud Chromium, automated CAPTCHA solvers, and residential IP rotation.

Get Free 2Captcha API Key →