Skip to main content
Glama
chrome-fast
by ventos312

chrome-fast

Fast Chrome browser automation MCP server (stdio or HTTP) backed by the Chrome DevTools Protocol. It drives a real, logged-in Chrome profile and returns pages as a compact accessibility tree with numbered element refs, so an agent can read, click, type and fill forms with very few round trips.

Setup on a new PC

Prerequisites

  • Node.js 20+

  • Google Chrome installed

Install

npm install
npm run build

Start Chrome in debug mode

Double-click start-chrome-debug.bat. It opens Chrome on port 9222 with an isolated profile under %LOCALAPPDATA%\NanoClaw\ChromeProfile. Sign in to any accounts you need (e.g. Google for Gemini) in that window; the profile persists.

You only need the bat for the first run (to sign in). After that chrome-fast launches Chrome itself: whenever a tool is called and nothing is listening on the debug port, it starts Chrome with the same flags and the same profile, waits for the port, then connects.

Environment variables (all optional):

Variable

Default

Purpose

CHROME_PORT

9222

DevTools port to connect to / launch on

CHROME_PROFILE

%LOCALAPPDATA%\NanoClaw\ChromeProfile

--user-data-dir for the launched Chrome

CHROME_PATH

auto-detected

Path to chrome.exe if it is somewhere unusual

CHROME_AUTO_LAUNCH

1

Set to 0 to disable auto-launch and require the bat

CHROME_DEBUG_ADDRESS

127.0.0.1

Address Chrome's DevTools port listens on. The protocol has no authentication and gives full control of the logged-in profile, so keep it on loopback unless a container or another machine must reach Chrome directly (the HTTP mode below does not need that).

CHROME_FAST_MAX_CHARS

20000

Characters of page content per snapshot before the rest is omitted (get_page with offset continues)

MCP_HTTP_PORT

unset

Run the HTTP server on this port instead of stdio (same as --http <port>)

MCP_HTTP_HOST

0.0.0.0

Address the HTTP server binds to

MCP_HTTP_TOKEN

unset

If set, HTTP clients must send Authorization: Bearer <token>

The bat script honours CHROME_PORT, CHROME_PROFILE, CHROME_PATH and CHROME_DEBUG_ADDRESS too.

Register in Claude Code (~/.claude.json)

Stdio mode (recommended for single-machine use):

{
  "mcpServers": {
    "chrome-fast": {
      "command": "node",
      "args": ["C:\\path\\to\\chrome-fast\\dist\\index.js"]
    }
  }
}

HTTP mode (for containers / cross-machine):

node dist/index.js --http 3500

This serves two transports on the same port:

  • http://localhost:3500/mcp — Streamable HTTP, the current MCP transport (claude mcp add --transport http chrome-fast http://host.docker.internal:3500/mcp)

  • http://localhost:3500/sse — the older HTTP+SSE transport, for clients that still need it

  • http://localhost:3500/health — returns ok

The HTTP server gives anyone who can reach it full control of the browser. Set MCP_HTTP_TOKEN when the port is reachable from other machines and pass the token from the client, e.g. claude mcp add --transport http chrome-fast http://host:3500/mcp --header "Authorization: Bearer <token>".

Upgrading from 1.0

After pulling, run npm install and npm run build again: dependencies changed.

  • Chrome's debug port now listens on this PC only. Version 1.0 started Chrome with --remote-debugging-address=0.0.0.0, which let anyone on the network control the logged-in profile. Both chrome-fast and the bat now use 127.0.0.1. If a container or another machine connected to Chrome's port 9222 directly, set CHROME_DEBUG_ADDRESS=0.0.0.0 to restore that; connections through chrome-fast's HTTP mode need no change. The server prints the address it uses when it starts, and tells connected MCP clients about it in its instructions.

  • Page snapshots now include the page text. For the old compact output use get_page with format: "interactive".

  • HTTP mode gained a Streamable HTTP endpoint at /mcp; the /sse endpoint still works.

See CHANGELOG.md for the full list of fixes.

Verify

Restart Claude Code. The mcp__chrome-fast__* tools should be available. Try:

  • mcp__chrome-fast__tabs — lists open Chrome tabs

  • mcp__chrome-fast__navigate — navigates a tab

Test

npm run build
npm test

The end-to-end test launches a headless Chrome with a throwaway profile, serves fixture pages locally and exercises every tool. It needs Chrome installed (or CHROME_PATH set).

Related MCP server: agent-chrome

Tools provided

  • navigate (url, waitUntil: load / domcontentloaded / networkidle, timeout, force)

  • tabs, tab_new, tab_switch, tab_close (force)

  • get_page (format: accessibility with page text, interactive without text, dom read from the DOM, or html; offset to continue a cut snapshot; expandMenus to list long navigation menus), screenshot, evaluate

  • click, type, scroll, fill_form

  • wait (CSS selector, text on the page, network idle, or a fixed time)

  • batch (several of the above in one call; stops at the first failing step, returns each step's own result in full and the page once; snapshot: false to skip the page)

Notes for drivers

  • Element refs are plain numbers (pass "55"). An element keeps its number for as long as you stay on the same page, even as other things change; a ref only goes stale when its element is gone, and the tool says so. Refs reset on navigation and tab switches.

  • Snapshots list the page text as text "…" lines, headings with their level, and form fields with their current value="…". Closed <select> elements show their value and an option count instead of every option; navigation menus with more than 25 links show the first 10 (expandMenus: true lists them all). Lines starting with Note: report things handled automatically, for example a dismissed confirm() dialog or a page that did not finish loading in time.

  • Actions (click, type, fill_form, scroll, wait) return what changed since the previous snapshot: + lines are new, - lines are gone, or "No visible change". A Note: reports a navigation that started or the background requests the action triggered, so an AJAX save is visible as POST /wp-admin/admin-ajax.php → 200. Small pages and large changes come back in full.

  • Long pages are cut at CHROME_FAST_MAX_CHARS characters; the last line says which offset to pass to get_page to continue.

  • When an open modal or aria-hidden/inert markup leaves the accessibility tree empty, the snapshot is built from the DOM instead and says so; get_page with format: "dom" does that on request.

  • A page with unsaved changes is never left silently by navigate or tab_close: they fail with an explanation and take force: true to proceed. The agent's own clicks, Enter and form submits on that page go through even when the page asks to confirm, with a Note: saying so. A fresh server attaches to an empty tab when one exists.

  • An open modal dialog is listed first in the snapshot, with a Note: naming it, since it is what has to be dealt with before the rest of the page.

  • click scrolls the element into view first. If another element covers it, a DOM click() is dispatched instead and a note says so. When a click starts a navigation, the new page is returned.

  • type appends to the existing content; use clear: true to replace it. pressEnter: true submits forms and sends chat prompts (Gemini, for example).

  • fill_form handles text inputs, textareas, <select> (by option value or label), checkboxes and radios ("true" / "false") and contenteditable elements, in a way React and similar frameworks notice. submit: true submits the form like its submit button would (validation and submit handlers run).

  • JavaScript dialogs never block the tools: alert and beforeunload are accepted, confirm and prompt are dismissed. To accept a confirm, run evaluate with window.confirm = () => true first.

  • evaluate behaves like the DevTools console: top-level await, several statements, let that can be declared again on the next call, and the $ / $$ helpers. Promises are awaited, DOM nodes come back as HTML, and objects as JSON. It stops after 30 seconds.

  • screenshot returns a PNG (or JPEG) image block; fullPage: true captures the whole scrollable page, scaled down if it would exceed what the Claude API accepts.

Available Tools

13 tools
clickA

Click an element by ref number (from get_page/navigate) or CSS selector. Scrolls it into view first and, if the click starts a navigation, waits for the new page. Returns the updated page content. For elements use fill_form instead.

Inputs: selector (required), button.

evaluateA

Run JavaScript in the page and return the result as text (objects as JSON). Supports top-level await, several statements, and the DevTools console helpers $ and $$. Stops after 30 s.

Inputs: expression (required).

fill_formA

Fill several form fields in one call: text inputs, textareas, selects (by option value or label), checkboxes and radios ("true"/"false") and contenteditable elements. Much faster than calling type repeatedly. Returns the updated page.

Inputs: fields (required), submit.

get_pageA
Read-only

Get the current page content. The default is an accessibility tree with the page text and numbered element refs you can pass to click/type; "interactive" leaves out the text lines for a compact view; "html" returns the raw HTML.

Inputs: format.

screenshotA
Read-only

Capture a screenshot of the current page as an image. Only use when visual layout matters; prefer get_page for most tasks.

Inputs: format, quality, fullPage.

scrollB

Scroll the page by an amount, or scroll an element into view.

Inputs: amount, selector, direction.

tab_closeA
Destructive

Close a tab by its target ID, or the current tab if omitted. When the current tab is closed, attaches to another open tab.

Inputs: targetId.

tab_newA

Open a new tab, attach to it and optionally navigate it to a URL. Returns the page content.

Inputs: url.

tabsA
Read-only

List all open browser tabs with their target IDs, titles and URLs. The tab chrome-fast is attached to is marked (active).

Inputs: no named parameters.

tab_switchA

Attach to another tab by its target ID (from the tabs tool) and bring it to the front. Returns its page content.

Inputs: targetId (required).

typeB

Type text into an input, textarea or contenteditable element: focuses it, then inserts the text as if typed. Returns the updated page content.

Inputs: text (required), selector (required), clear, pressEnter.

waitA
Read-only

Wait for a condition, then return the updated page content: an element matching a CSS selector, a piece of text appearing on the page, the network going quiet, or a fixed time.

Inputs: text, time, timeout, selector, +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools target a distinct action: navigate/get_page/screenshot retrieve or move, click/type/scroll/fill_form interact, and the four tab_* tools manage tab lifecycle. The only real friction is between type and fill_form (single vs. bulk input) and navigate vs. get_page, but the descriptions explicitly steer the agent, so misselection risk is low.

    Naming Consistency3/5

    The set mixes conventions: bare verbs (click, type, scroll, wait, navigate, evaluate, screenshot), verb_noun (get_page, fill_form), noun_verb (tab_new, tab_switch, tab_close), and a bare plural noun (tabs). Each name is readable, but the ordering flips between 'verb_noun' and 'tab_*' patterns without an obvious rationale.

    Tool Count5/5

    13 tools is well within the sweet spot for a browser-automation server, and each tool covers a genuinely distinct capability (content, input, tabs, waiting, JS, screenshots). Nothing feels padded or missing at the count level.

    Completeness4/5

    Core browsing workflow is fully covered: navigate, inspect (tree/HTML/interactive), interact (click/type/scroll/fill_form), wait, evaluate JS, screenshots, and full tab management. Notable gaps are keyboard key presses (Enter/Escape), hover for menus/tooltips, history back/forward, and file uploads, though most can be worked around via evaluate.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Enables AI agents and developers to automate real Chrome/Chromium browsers through the Chrome DevTools Protocol, with token-efficient snapshots, multi-action batching, shadow DOM traversal, system-page control, extension management, and network/WebSocket inspection.
      95
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets local AI agents drive the Chrome browser a user already has open, including signed-in sessions, by listing tabs, reading page text and actionable elements, then clicking, filling, selecting, scrolling, navigating, and capturing viewport screenshots without exporting cookies. Runs as a dependency-free local stdio process over Native Messaging, with per-tab leases, automatic reconnection, and pause/write-action controls.
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents to run Playwright-compatible browser automation with persistent profiles, proxies, Chrome extensions, and humanized mouse, keyboard, and scroll interactions over stdio or Streamable HTTP. Supports web research, daily automation, testing workflows, and optional session-scoped CDP access.
      297 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents to perform Playwright-compatible browser automation through a Chromium-based runtime, with persistent profiles, proxy matching, extension loading, Docker deployment, and stdio or Streamable HTTP transports. It supports web research, daily automation, and testing workflows driven by natural-language prompts.
      297 npm
      MIT