Skip to main content
Glama
MCP Chrome Bridge

MCP Chrome Bridge

MCP server that lets any AI agent control Chrome — tabs, navigation, clicks, forms, screenshots, console/network logs, GIF recording, and more. Works with any MCP-compatible client (Claude Code, OpenCode, custom agents).

Architecture

Agent → MCP server (stdio) → WebSocket relay (localhost:9876) → Chrome Extension → chrome.debugger API
  • The extension creates a dedicated "Agent" tab group (purple) in your existing Chrome

  • Same Chrome session = same cookies/auth (no separate browser needed)

  • Native messaging keeps the extension alive

Related MCP server: Chrome MCP Server

Setup

1. Install dependencies

cd mcp-chrome-bridge
npm install

2. Start the relay

node relay.js

Or set it up as a systemd user service for persistence.

3. Load the Chrome extension

  1. Open Chrome → chrome://extensions/

  2. Enable "Developer mode" (toggle top-right)

  3. Click "Load unpacked" → select the extension/ folder

4. Install native messaging host

./install.sh <your-extension-id>

The extension ID is shown in chrome://extensions/ after loading.

5. Configure your MCP client

Add to your MCP config:

{
  "mcpServers": {
    "chrome-bridge": {
      "command": "node",
      "args": ["/path/to/mcp-chrome-bridge/server.js"]
    }
  }
}

Tools

Browser (via Chrome extension relay)

Tool

Description

tabs_context

List tabs in the agent window

tabs_create

Open a new tab

tabs_close

Close a tab

navigate

Navigate to a URL

read_page

Read visible text content

get_page_text

Get full page text

click

Click an element (CSS selector)

form_input

Fill a form field

javascript

Execute JS in a tab

find

Find elements by selector or text

file_upload

Upload a file to an input[type=file]

screenshot

Screenshot a tab

screenshot_area

Screenshot a specific region

console_logs

Read browser console messages

network_logs

Read network requests

gif_start

Start GIF recording

gif_capture

Capture a GIF frame

gif_stop

Stop recording, get frames

Desktop (local, no relay needed)

Tool

Description

computer_mouse_move

Move mouse cursor

computer_click

Click at coordinates

computer_type

Type text via keyboard

computer_key

Press key combo (e.g. ctrl+a)

computer_screenshot

Screenshot entire screen or region

web_fetch

Fetch a URL (server-side)

web_search

Search the web via DuckDuckGo

System dependencies

  • Node.js 18+

  • xdotool — for desktop mouse/keyboard tools

  • grim — for Wayland screen capture (optional, X11 fallback via extension)

Environment variables

Variable

Default

Description

RELAY_URL

ws://127.0.0.1:9876

WebSocket relay address

Troubleshooting

See TROUBLESHOOTING.md for common issues (relay timeouts, extension disconnects, shadow DOM, file uploads).

Available Tools

25 tools
clickC

Click an element on the page

Inputs: tabId (required), selector (required).

computer_clickC

Click at current mouse position or coordinates

Inputs: x, y, button, double.

computer_keyC

Press a key or key combination

Inputs: key (required).

computer_mouse_moveC

Move the mouse cursor to screen coordinates

Inputs: x (required), y (required).

computer_screenshotC

Take a screenshot of the entire screen or a region

Inputs: x, y, width, height, +1 more.

computer_typeC

Type text using the keyboard

Inputs: text (required), delay.

console_logsC

Read browser console messages from a tab

Inputs: tabId (required), pattern.

file_uploadB

Upload a file to a file input element (input[type=file])

Inputs: tabId (required), filePath (required), selector (required).

findC

Find elements on a page by selector or text

Inputs: tabId (required), text, selector.

form_inputC

Fill a form field with a value

Inputs: tabId (required), value (required), selector (required).

get_page_textC

Get full text content of a page

Inputs: tabId (required).

gif_captureB

Manually capture a frame for the GIF

Inputs: tabId (required).

gif_startB

Start recording a GIF of browser actions on a tab

Inputs: tabId (required), interval.

gif_stopB

Stop GIF recording and return frames as base64 PNGs

Inputs: tabId (required), savePath.

javascriptC

Execute JavaScript in a tab

Inputs: tabId (required), expression (required).

network_logsC

Read network requests from a tab

Inputs: tabId (required), pattern.

read_pageC

Read the visible text content of a page

Inputs: tabId (required).

screenshotC

Take a screenshot of a tab

Inputs: tabId (required).

screenshot_areaB

Take a screenshot of a specific area of a page

Inputs: x (required), y (required), tabId (required), width (required), +1 more.

tabs_closeC

Close a tab

Inputs: tabId (required).

tabs_contextA

List all tabs in the agent browser window

Inputs: no named parameters.

tabs_createC

Create a new tab in the agent window

Inputs: url.

web_fetchC

Fetch a URL and return its text content (like Claude Code's WebFetch)

Inputs: url (required), maxLength.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.8/5.0

    Scored across 25 tools

    Disambiguation3/5

    Most tools have a clear scope, but a few pairs blur together: read_page vs get_page_text (visible text vs full text is a subtle distinction), click vs computer_click (element vs raw coordinates), and the three screenshot variants (tab, page area, whole screen). Descriptions help, but an agent can easily pick the wrong one for page-text retrieval or screenshotting.

    Naming Consistency3/5

    Names are all snake_case, but grouping prefixes are applied unevenly: some subsystems are prefixed (computer_*, tabs_*, gif_*, web_*) while core browser actions are bare (click, find, navigate, javascript). Verb style also varies for the same idea (read_page vs get_page_text), making the pattern mixed though still readable.

    Tool Count2/5

    At 25 tools this surface is heavy for a browser bridge, and several slots are spent on redundant or niche capabilities (three screenshot tools, two page-text readers, a three-tool GIF recorder). Consolidating overlaps would bring it into a tighter, more usable range.

    Completeness4/5

    Coverage of the browser-automation domain is strong: navigation, clicking, typing, keys, form fill, file upload, JS execution, element finding, screenshots, tabs, console/network logs, and web fetch/search are all present. Gaps are minor, such as no explicit wait-for-condition, hover/scroll/drag, or dropdown-select primitives.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables AI agents to control a real Google Chrome instance using specific user profiles, cookies, and extensions. It provides 18 tools for browser navigation, element interaction, and page inspection via the Chrome DevTools Protocol.
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      An extension-based MCP server that enables AI assistants to control your existing Chrome browser, leveraging your active login states and settings for automation. It provides over 20 tools for tasks like semantic tab search, screen capture, network monitoring, and direct element interaction.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Gives coding agents full control over a real Chrome browser, enabling navigation, clicking, typing, screenshotting, and more via an MCP server and Chrome extension.
      2
      MIT