chrome-fast
Drives a real, logged-in Google Chrome browser via the Chrome DevTools Protocol, providing tools to navigate tabs, read pages as a compact accessibility tree with numbered element refs, click, type, scroll, fill and submit forms, take screenshots, and run JavaScript in the page.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@chrome-fast open a new tab to github.com and take a screenshot of it"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 buildStart 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 |
|
| DevTools port to connect to / launch on |
|
|
|
| auto-detected | Path to |
|
| Set to |
|
| 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). |
|
| Characters of page content per snapshot before the rest is omitted ( |
| unset | Run the HTTP server on this port instead of stdio (same as |
|
| Address the HTTP server binds to |
| unset | If set, HTTP clients must send |
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 3500This 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 ithttp://localhost:3500/health— returnsok
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 use127.0.0.1. If a container or another machine connected to Chrome's port9222directly, setCHROME_DEBUG_ADDRESS=0.0.0.0to 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_pagewithformat: "interactive".HTTP mode gained a Streamable HTTP endpoint at
/mcp; the/sseendpoint 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 tabsmcp__chrome-fast__navigate— navigates a tab
Test
npm run build
npm testThe 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:accessibilitywith page text,interactivewithout text,domread from the DOM, orhtml;offsetto continue a cut snapshot;expandMenusto list long navigation menus),screenshot,evaluateclick,type,scroll,fill_formwait(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: falseto 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 currentvalue="…". 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: truelists them all). Lines starting withNote:report things handled automatically, for example a dismissedconfirm()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". ANote:reports a navigation that started or the background requests the action triggered, so an AJAX save is visible asPOST /wp-admin/admin-ajax.php → 200. Small pages and large changes come back in full.Long pages are cut at
CHROME_FAST_MAX_CHARScharacters; the last line says whichoffsetto pass toget_pageto continue.When an open modal or
aria-hidden/inertmarkup leaves the accessibility tree empty, the snapshot is built from the DOM instead and says so;get_pagewithformat: "dom"does that on request.A page with unsaved changes is never left silently by
navigateortab_close: they fail with an explanation and takeforce: trueto proceed. The agent's own clicks, Enter and form submits on that page go through even when the page asks to confirm, with aNote: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.clickscrolls the element into view first. If another element covers it, a DOMclick()is dispatched instead and a note says so. When a click starts a navigation, the new page is returned.typeappends to the existing content; useclear: trueto replace it.pressEnter: truesubmits forms and sends chat prompts (Gemini, for example).fill_formhandles 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: truesubmits the form like its submit button would (validation and submit handlers run).JavaScript dialogs never block the tools:
alertandbeforeunloadare accepted,confirmandpromptare dismissed. To accept aconfirm, runevaluatewithwindow.confirm = () => truefirst.evaluatebehaves like the DevTools console: top-levelawait, several statements,letthat 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.screenshotreturns a PNG (or JPEG) image block;fullPage: truecaptures the whole scrollable page, scaled down if it would exceed what the Claude API accepts.
Available Tools
13 toolsclickA
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_pageARead-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.
screenshotARead-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_closeADestructive
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.
tabsARead-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.
waitARead-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
Scored across 13 tools
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.
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.
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.
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
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Cloud browser, web extraction, screenshots, and remote CDP tools for AI agents.
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Automate cloud Chrome—navigate, click, type, screenshot, run code, record screen video
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables 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.951MIT
- AlicenseNot gradedqualityCmaintenanceLets 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
- AlicenseNot gradedqualityAmaintenanceEnables 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 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables 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 npmMIT