# Browser Use MCP server

> Lets an AI client run browser tasks in a real Chrome browser, including fills forms, clicks, extracts data, and downloads files.

- Repository: https://github.com/browser-use/browser-use
- Page: https://hostedmcp.org/servers/browser-use/browser-use
- Official: yes
- Transport: stdio, remote
- Stars: 121037
- License: MIT
- Latest version: 0.13.11

## Install

### Claude Code

```sh
claude mcp add browser-use -- uvx browser-use
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "browser-use": {
      "command": "uvx",
      "args": [
        "browser-use"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "browser-use": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "browser-use"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"browser-use","type":"stdio","command":"uvx","args":["browser-use"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "browser-use": {
      "command": "uvx",
      "args": [
        "browser-use"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add browser-use -- uvx browser-use
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.browser-use]
command = "uvx"
args = ["browser-use"]
```

### Gemini CLI

```sh
gemini mcp add -s user browser-use uvx -- browser-use
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "browser-use": {
      "command": "uvx",
      "args": [
        "browser-use"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `BROWSER_USE_API_KEY` | no | no |  |

## FAQ

### What does Browser Use do?

It gives an AI model a real Chrome browser it drives by writing Python against a persistent REPL and the Chrome DevTools Protocol, so it can complete web tasks.

### Can I use Browser Use with a local browser and my own model?

Yes. Pass a local Chromium or your existing Chrome and any supported model class such as ChatOpenAI, ChatAnthropic, or ChatGoogle.

### Does Browser Use need an API key?

The default cloud browser and gateway model use BROWSER_USE_API_KEY, and local models use their own provider keys such as OPENAI_API_KEY.

### Can Browser Use restrict which domains the agent visits?

Yes, you can pass allowed or prohibited domain patterns and optionally block IP addresses.

### Does Browser Use return structured data?

Yes, give the agent an output schema and read the typed result from structured_output.
