---
title: "MCP server for browser automation"
description: "Add Browser Use to Claude Code, Claude Desktop, Cursor or Windsurf as an MCP server. The hosted server runs browser agents on stealth cloud browsers; a local stdio server exposes the Browser Harness helpers for your own Chrome."
canonical: "https://browser-use.com/integrations/mcp"
last_updated: "2026-12-04"
---

# MCP server for browser automation

> Add Browser Use to Claude Code, Claude Desktop, Cursor or Windsurf as an MCP server. The hosted server runs browser agents on stealth cloud browsers; a local stdio server exposes the Browser Harness helpers for your own Chrome.

[HTML page](https://browser-use.com/integrations/mcp) · [Docs](https://docs.browser-use.com/cloud/guides/mcp-server) · [Coding agents](https://browser-use.com/integrations/coding-agents.md)

## Hosted server

URL: `https://api.browser-use.com/v3/mcp`, header `Authorization: Bearer YOUR_API_KEY` (the legacy `x-browser-use-api-key` header also works). Get a key at cloud.browser-use.com under Settings, API keys.

Claude Code:

```bash
claude mcp add -t http -H "Authorization: Bearer YOUR_API_KEY" browser-use https://api.browser-use.com/v3/mcp
```

Cursor (`.cursor/mcp.json`) and Claude Desktop (`claude_desktop_config.json`):

```json
{ "mcpServers": { "browser-use": { "url": "https://api.browser-use.com/v3/mcp", "headers": { "Authorization": "Bearer YOUR_API_KEY" } } } }
```

Windsurf uses `serverUrl` instead of `url` in `~/.codeium/windsurf/mcp_config.json`.

## Tools

| Tool | What it does |
|---|---|
| run_session | Create a session and run a task. Supports keep_alive, model, output_schema, profile_id. |
| get_session | Poll status, step count, cost breakdown and live URL. |
| send_task | Send a follow-up task to an idle keep-alive session. |
| stop_session | Stop the task only, or destroy the session. |
| get_session_messages | Browser actions, reasoning and results. |
| list_sessions | Recent sessions with status and cost. |
| list_browser_profiles | Browser profiles for logged-in tasks. |

## Local server

`browser-harness-mcp` exposes the local browser helpers as MCP tools over stdio for Claude Code, Devin, Cursor and other stdio clients, driving your own Chrome. See github.com/browser-use/browser-harness/blob/main/docs/MCP.md.

## Which browser MCP server?

Pick by where the browser runs and who drives it. Checked Oct 2026.

| Server | Runs on | How it works | Best for | Cost |
|---|---|---|---|---|
| Browser Use hosted MCP | Browser Use cloud | Whole task, result back | Many tasks in parallel, off your machine | $0.06 / browser-hour + model tokens |
| browser-harness-mcp | Your machine, your logged-in Chrome | Step by step, 23 tools | Sites you are logged into | Free, MIT |
| Playwright MCP | Your machine. Chrome, Firefox, WebKit, Edge. Your logged-in Chrome via its extension | Step by step, accessibility-tree snapshots | Tests, with an isolated profile via --isolated | Free, Apache-2.0 |
| Chrome DevTools MCP | Your machine, Chrome only. Can attach to a running Chrome | Step by step, plus traces, network, console | Debugging performance, network or console errors | Free, Apache-2.0 |
| Browserbase MCP | Browserbase cloud. Self-host repo archived Jul 2026 | Step by step, natural-language act, observe, extract | Teams already on Browserbase | Browserbase plan: 1 hr free, then from $20 / month |

Matched eval, same agent, browser and judge on 100 tasks: no tool won on success. Browser Harness (as a CLI) used the fewest input tokens, a median 2.1M per task vs 4.4M for [Playwright MCP](https://browser-use.com/alternatives/playwright-mcp.md) and 6.7M for [Chrome DevTools MCP](https://browser-use.com/alternatives/chrome-devtools-mcp.md), at the lowest model cost per task ($0.042 vs $0.066 and $0.097, median).

Sources: [Browser Use MCP docs](https://docs.browser-use.com/cloud/guides/mcp-server), [browser-harness-mcp](https://github.com/browser-use/browser-harness/blob/main/docs/MCP.md), [Playwright MCP](https://github.com/microsoft/playwright-mcp), [Chrome DevTools MCP](https://github.com/ChromeDevTools/chrome-devtools-mcp), [Browserbase MCP setup](https://docs.browserbase.com/integrations/mcp/setup), [Browserbase MCP repo](https://github.com/browserbase/mcp-server-browserbase), [Browserbase pricing](https://www.browserbase.com/pricing).

**What is the best MCP server for browser automation?** The Browser Use hosted server, to hand off whole tasks to stealth cloud browsers and get the result back, and browser-harness-mcp to drive your own logged-in Chrome. Also: Playwright MCP for tests (isolated profile via --isolated), Chrome DevTools MCP to debug performance, network or console errors in your own app, and Browserbase MCP if you already run on Browserbase.

---

BROWSER USE

- Browser Use Agents: give Browser Use a task and receive completed work. API V4 is current for new integrations.
- Browser Infrastructure: connect your agent or automation to managed browsers through SDK, REST, or CDP. Starts at $0.06/browser-hour.
- Developer tools: Open Source, Browser Harness, SDK, and MCP support the two products above.

[Developer Index](https://browser-use.com/index.md)
[Product Map](https://browser-use.com/llms.txt)
[Full Product Context](https://browser-use.com/llms-full.txt)
[Pricing](https://browser-use.com/pricing.md)
[Cloud Docs](https://docs.browser-use.com/cloud/quickstart)
[Open Source Docs](https://docs.browser-use.com/open-source/introduction)
