> ## Documentation Index
> Fetch the complete documentation index at: https://browseruse-0aece648-mintlify-cli-docs-1773354647.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Server

> Run browser automation tasks from your AI coding assistant. Connect to Claude, Cursor, Windsurf, or any MCP client.

Browser Use provides a [Model Context Protocol](https://modelcontextprotocol.io) server at `https://api.browser-use.com/mcp`.

## Claude Code

```bash theme={null}
claude mcp add --transport http browser-use https://api.browser-use.com/mcp
```

## Claude Desktop

Add to `claude_desktop_config.json`:

```json theme={null}
{
  "mcpServers": {
    "browser-use": {
      "url": "https://api.browser-use.com/mcp",
      "headers": {
        "x-browser-use-api-key": "YOUR_API_KEY"
      }
    }
  }
}
```

## Cursor

Add to `.cursor/mcp.json`:

```json theme={null}
{
  "mcpServers": {
    "browser-use": {
      "url": "https://api.browser-use.com/mcp",
      "headers": {
        "x-browser-use-api-key": "YOUR_API_KEY"
      }
    }
  }
}
```

## Windsurf

Add to `~/.codeium/windsurf/mcp_config.json`:

```json theme={null}
{
  "mcpServers": {
    "browser-use": {
      "serverUrl": "https://api.browser-use.com/mcp",
      "headers": {
        "x-browser-use-api-key": "YOUR_API_KEY"
      }
    }
  }
}
```

## Available tools

| Tool                    | Description                | Cost                                                                        |
| ----------------------- | -------------------------- | --------------------------------------------------------------------------- |
| `browser_task`          | Run a full automation task | $0.01 init + per-step (default $0.006/step). See [Pricing](/cloud/pricing). |
| `execute_skill`         | Run a skill                | \$0.02/call                                                                 |
| `list_skills`           | List available skills      | Free                                                                        |
| `get_cookies`           | Extract cookies for auth   | Free                                                                        |
| `list_browser_profiles` | List profiles              | Free                                                                        |
| `monitor_task`          | Check task progress        | Free                                                                        |
