Skip to main content
Glama

About

Browser MCP is an MCP server + Chrome extension that allows you to automate your browser using AI applications like VS Code, Claude, Cursor, and Windsurf.

Related MCP server: Browser MCP

Features

  • ⚡ Fast: Automation happens locally on your machine, resulting in better performance without network latency.

  • 🔒 Private: Since automation happens locally, your browser activity stays on your device and isn't sent to remote servers.

  • 👤 Logged In: Uses your existing browser profile, keeping you logged into all your services.

  • 🥷🏼 Stealth: Avoids basic bot detection and CAPTCHAs by using your real browser fingerprint.

Running as an MCP server

This repo builds and runs standalone. The internal monorepo packages the upstream code depends on (@repo/* and @r2r/messaging) are reconstructed under vendor/ and wired up through tsconfig.json path aliases, so no private workspace packages are required.

npm install      # installs deps and builds dist/ via the prepare hook
npm run build    # (re)build dist/index.js
node dist/index.js

The server communicates over stdio using the Model Context Protocol and opens a WebSocket server on port 9009 that the Browser MCP Chrome extension connects to. To use it with an MCP client, register the built binary — for example:

{
  "mcpServers": {
    "browsermcp": {
      "command": "node",
      "args": ["/absolute/path/to/dist/index.js"]
    }
  }
}

After installing the Browser MCP Chrome extension, click its icon and press Connect on the tab you want to automate.

Contributing

This repo contains all the core MCP code for Browser MCP. It was originally developed inside a monorepo and depended on shared utils and types packages; those have been vendored (see vendor/) so the project can be built and run on its own.

Credits

Browser MCP was adapted from the Playwright MCP server in order to automate the user's browser rather than creating new browser instances. This allows using the user's existing browser profile to use logged-in sessions and avoid bot detection mechanisms that commonly block automated browser use.

Available Tools

12 tools
browser_clickB

Perform click on a web page

Inputs: ref (required), element (required).

browser_get_console_logsA

Get the console logs from the browser

Inputs: no named parameters.

browser_go_backA

Go back to the previous page

Inputs: no named parameters.

browser_go_forwardA

Go forward to the next page

Inputs: no named parameters.

browser_hoverC

Hover over element on page

Inputs: ref (required), element (required).

browser_navigateB

Navigate to a URL

Inputs: url (required).

browser_press_keyB

Press a key on the keyboard

Inputs: key (required).

browser_screenshotC

Take a screenshot of the current page

Inputs: no named parameters.

browser_select_optionB

Select an option in a dropdown

Inputs: ref (required), values (required), element (required).

browser_snapshotA

Capture accessibility snapshot of the current page. Use this for getting references to elements to interact with.

Inputs: no named parameters.

browser_typeC

Type text into editable element

Inputs: ref (required), text (required), submit (required), element (required).

browser_waitB

Wait for a specified time in seconds

Inputs: time (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 12 tools

    Disambiguation5/5

    Each tool targets a distinct browser action: navigation (navigate, go_back, go_forward), interaction (click, hover, type, select_option, press_key), state reading (snapshot, get_console_logs, screenshot), and waiting (wait). No two tools overlap in purpose, making selection unambiguous.

    Naming Consistency5/5

    All tools follow a consistent verb_noun snake_case pattern with a uniform 'browser_' prefix. Verbs clearly describe actions (navigate, click, type, wait), making the naming predictable and easy to infer.

    Tool Count5/5

    12 tools is a well-scoped set for a browser automation server. Each tool serves a distinct, essential function without unnecessary bloat or missing core capabilities, fitting the typical 3-15 range.

    Completeness4/5

    The tool set covers the full browser automation lifecycle: navigation, element interaction, state inspection, and output. Minor gaps exist such as no explicit 'get URL/title' or tab management, but the snapshot tool provides sufficient page state, so agents can work around these gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI applications to automate your existing browser using your logged-in profile. Provides fast, private browser automation that avoids bot detection by working with your real browser fingerprint.
      46,500 npm
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Automate your browser with AI using a Chrome extension and MCP server, enabling logged-in sessions and stealth automation.
      46,500 npm
      7,328
      Apache 2.0
    • A
      license
      C
      quality
      D
      maintenance
      Enables AI-powered browser automation with real profiles, supporting interaction, navigation, form filling, and advanced features like visual overlays and self-healing selectors.
      42
      Apache 2.0