Skip to main content
Glama
chromiumfish_mcp

chromiumfish_mcp

by LowOrbitLab

chromiumfish_mcp

chromiumfish_mcp is an independent Model Context Protocol (MCP) server for ChromiumFish. It lets Claude Code, Claude Desktop, Cursor, and other MCP clients drive a ChromiumFish browser through structured tools.

It uses the official ChromiumFish npm package and ships no Chromium source or binaries — on the first tool call that needs a page, the upstream SDK downloads and caches the matching browser build. See docs/USAGE.md for detailed tool usage.

Requirements

  • Node.js 20 or later.

  • An OS and architecture supported by ChromiumFish.

  • Network access for the initial browser download. If no prebuilt asset matches your platform, build ChromiumFish locally and point to it with --chrome-path or CHROME_BIN.

Related MCP server: Browser MCP

Install

npm install --global github:LowOrbitLab/chromiumfish_mcp
chromiumfish_mcp --persona-seed alice

Or run without installing: npx --yes github:LowOrbitLab/chromiumfish_mcp --persona-seed alice.

Configure

Add the server to your MCP client config:

{
  "mcpServers": {
    "chromiumfish": {
      "command": "chromiumfish_mcp",
      "args": ["--persona-seed", "alice"]
    }
  }
}

To run from GitHub instead of a global install, set "command": "npx" and prepend "--yes", "github:LowOrbitLab/chromiumfish_mcp" to args. On Windows, use npx.cmd if your client cannot resolve npx.

Tools

Tool

Purpose

list_pages, open_page, select_page, close_page

Manage pages by stable pageId

navigate, navigate_back, navigate_forward, reload

Navigate and use page history

snapshot

List visible interactive elements with e1/e2 references

get_text, take_screenshot

Retrieve page or frame content; take_screenshot crops to one element with target

click, hover, type_text, select_option, set_checked, press_key, scroll, wait_for

Interact with the page

drag

Drag onto another element or by a pixel offset, with a human-like path

handle_dialog

Arm the answer for the next alert/confirm/prompt/beforeunload

upload_file

Attach local files to a file input — requires --upload-dir

list_downloads

Report what was downloaded and where it landed — requires --download-dir

click_at

Click absolute coordinates (for widgets snapshot cannot see)

list_frames

List frames/iframes with stable IDs

find_challenge, solve_challenge

Detect and clear interstitial / framed challenges; the result says whether one was observed, interacted with, and verified

evaluate

Run arbitrary JavaScript — requires --allow-eval

run_task

Native ChromiumFish agent — requires --allow-native-agent

A JavaScript dialog is answered the instant it opens, because a page left waiting on one freezes and no later call could finish. Unarmed the answer is dismiss — which is what Playwright already did silently — so a click that only raised confirm("Delete?") did not delete, and the action result now says so under dialogs. Call handle_dialog to arm the next answer, then repeat the action. The four navigation tools also report the HTTP status, since a 404 or a 500 loads like any other page.

Every navigation and interaction tool reports the resulting url, title, navigated, and any newPages, so a client only needs a follow-up snapshot when the page actually changed; returnSnapshot: true returns the action result and a fresh snapshot in one call. An action that navigates waits for the new document before reporting, so those fields describe the page it arrived on; one whose navigation is still in flight after ten seconds reports navigationPending: true rather than describing the page being left as though nothing happened, and one whose navigation was cancelled outright — blocked by --allowed-host, an unresolvable host — reports navigationFailed with the browser's own reason instead of waiting out that bound for a page that is never coming. Reference numbers are never reused, so one held across a snapshot fails with an error instead of acting on a different element; snapshot also reports ARIA roles, so role=button[name="Submit"] works in any target field as a re-render-proof alternative. The server ships MCP instructions describing this workflow, reference lifetime, and the challenge sequence.

Page actions, page switches, and snapshots in one session run serially in call order, so concurrent input cannot interleave into the same control. An MCP call cancelled while queued never runs later. Element clicks check for occlusion and actionability, and return an error when the element cannot be clicked.

If the snapshot requested by returnSnapshot: true fails, the result keeps the action's success and adds snapshotError. Retry only the read; a failed snapshot is never a reason to repeat a click, submit, or upload.

Snapshot references, frame-aware interaction, waiting, and the cross-origin challenge workflow are covered in docs/USAGE.md.

With --allowed-host, every hop of a top-level redirect is checked at the browser's response-header stage, so an unauthorized address never receives the redirected request. This mode also disables Service Workers, which could otherwise bypass navigation interception; ordinary subframes and static assets can still reach other hosts. Download file names are allocated atomically by exclusive creation, so concurrent downloads with the same name never overwrite each other.

Command-line options

--persona-seed VALUE       Use a stable browser fingerprint persona
--chrome-path PATH         Use a local ChromiumFish executable
--browser-version VERSION  Select an upstream ChromiumFish build version (rejected with --chrome-path)
--headed                   Show the browser window
--window-size WIDTHxHEIGHT Set the browser window size
--timezone ZONE            Use an IANA time zone, auto, or system (default: auto)
--proxy URL                Route browser traffic through a proxy
--allowed-host HOST        Allow top-level navigation to a bare host and its subdomains; repeatable
--max-text-chars N         Set the hard limit for text and snapshot output
--upload-dir PATH          Allow upload_file to read this directory; repeatable
--download-dir PATH        Save downloads here; without it they are discarded
--allow-eval               Enable arbitrary JavaScript execution
--allow-native-agent       Enable the native ChromiumFish browser agent

Proxy credentials can be embedded in the proxy URL, but are then exposed in the client config. Never commit config files containing proxy passwords, cookies, or API keys.

Security

  • stdio only — do not expose the Chromium DevTools endpoint to the public internet.

  • evaluate and the native agent are disabled by default; enable them only in trusted environments.

  • --allowed-host example.com restricts top-level HTTP/HTTPS navigation (redirects, links, form posts, popups) to a host and its subdomains. Give it a bare host name: matching is on the host alone, so a scheme, path, port, leading dot, or wildcard is rejected at startup rather than quietly matching nothing. Third-party subframes and page assets remain reachable — it is a navigation guard, not a network egress filter. A blocked navigation is reported as navigationFailed with reason net::ERR_BLOCKED_BY_CLIENT, rather than as a click that appeared to do nothing. Enabling it also turns on request interception, which disables the browser's HTTP cache for the session: expect slower asset-heavy pages, and note that a browser re-fetching everything on a repeat visit is itself a signal to sites that profile behavior.

  • upload_file sends host files to whatever origin the page posts to, so it is unregistered until --upload-dir names at least one directory, and every path must resolve inside one. Both the path and the roots are resolved through symlinks first, so a link planted inside a root cannot reach outside it. Scope the roots to the files a task actually needs — a page can influence which file the model picks.

  • Downloads are written only when --download-dir names a directory; without it the transfer still runs (so the page's own flow is unchanged) but nothing is kept, and the action result says discarded. The file name comes from the remote server's Content-Disposition, so it is reduced to a bare base name and the resolved path is checked against the root before anything is written.

  • A page can raise confirm() to guard a destructive action. Unarmed dialogs are dismissed, so that guard holds by default; handle_dialog with accept: true deliberately answers the next one. Keep human confirmation in front of it for anything irreversible.

  • Clients can click and type with real side effects. Keep human confirmation for purchases, publishing, deletion, and permission changes.

  • solve_challenge returns ok: true whenever the page is not blocked, including on pages that were never challenged. Read challengeObserved, interactionPerformed, and clearanceVerified before recording or reporting that a challenge was cleared — ok alone will overstate what happened.

  • Each process runs an independent browser context; this is not a shared multi-tenant service.

Development

npm ci
npm test
node dist/index.js --help

The suite uses an in-memory MCP transport to verify tool discovery, dangerous-tool opt-in, and results. It does not download or launch a browser.

npm run test:integration runs real-browser regressions against local HTTP pages, covering redirects, occlusion, concurrent actions, and downloads. Point CHROME_BIN at a browser, or run npx playwright-core install chromium first. CI runs both the unit tests and these browser regressions.

License

MIT. ChromiumFish code and trademarks belong to their respective contributors; see NOTICE for attribution. This is an independent wrapper, not an official ChromiumFish release.

Available Tools

24 tools
clickA

Click an element reference returned by snapshot or a CSS selector. Use frameId with selectors inside a frame. Returns the resulting url, title, navigated, and any newPages.

Inputs: target (required), frameId, returnSnapshot.

click_atA

Click page coordinates in CSS pixels from the viewport's top-left corner. Useful for controls inside cross-origin iframes that snapshot cannot enumerate.

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

close_pageA
Destructive

Close the specified page, or the current page when pageId is omitted.

Inputs: pageId.

dragA

Press on an element, move with a human-like curved path, and release. Give exactly one destination: toTarget to drop onto another element, or dx/dy to drag by a pixel offset (what slider controls need). Both ends must be on screen at once. Returns the from and to points actually used.

Inputs: target (required), dx, dy, frameId, +2 more.

find_challengeA
Read-only

Detect common browser interstitials and embedded cross-origin challenge controls. Returns present, kind, widgetState, tokenPresent, the widget box, and related frames.

Inputs: no named parameters.

get_textC
Read-only

Read visible text from the first matching region in the main document or a frame, bounded by maxChars and --max-text-chars.

Inputs: frameId, maxChars, selector.

hoverA
Idempotent

Move the mouse over an element reference or CSS selector without clicking.

Inputs: target (required), frameId, returnSnapshot.

list_framesA
Read-only

List frames and iframes with stable frameId values, parent relationships, URLs, and names. Request bounding boxes only when coordinate interaction needs them.

Inputs: includeBox.

list_pagesA
Read-only

Report browser running state and list open pages without starting the browser.

Inputs: no named parameters.

open_pageA

Create and select a new page, optionally opening an HTTP/HTTPS URL.

Inputs: url.

press_keyA

Press a key in the current page, such as Enter, Escape, ArrowDown, or Control+A.

Inputs: key (required), returnSnapshot.

reloadA

Reload the current page and wait for DOMContentLoaded.

Inputs: returnSnapshot.

scrollB

Scroll the current page; positive deltaY scrolls down and negative deltaY scrolls up.

Inputs: deltaY (required), deltaX, returnSnapshot.

select_optionA
Idempotent

Select one or more native dropdown options by value or label.

Inputs: target (required), values (required), frameId, matchBy, +1 more.

select_pageA
Idempotent

Select the current page by a pageId returned from list_pages.

Inputs: pageId (required).

set_checkedA
Idempotent

Set a checkbox state, or select a radio element with checked=true. Radios cannot be unchecked directly.

Inputs: target (required), checked (required), frameId, returnSnapshot.

snapshotA
Read-only

List visible interactive elements in the main document or a frame, with bounded output and temporary references.

Inputs: scope, frameId, maxChars, maxElements.

solve_challengeA

Use human-like coordinate clicks on a standard checkbox inside a cross-origin challenge frame, then poll until clearance is confirmed by a response token, widget success state, or interstitial exit. Does not require a vision model. ok means the page is not blocked and you may continue - it does not mean a challenge was defeated. Report what happened from challengeObserved, interactionPerformed, and clearanceVerified: on a page that was never challenged all three are false while ok is true.

Inputs: maxClicks, timeoutMs.

take_screenshotA
Read-only

Capture the viewport, the full page, or a single element as a PNG image. Pass target to crop to one element, which costs far fewer tokens than a full viewport image.

Inputs: target, frameId, fullPage.

type_textA

Focus an element and enter text, optionally clearing its current value and pressing Enter afterward. Use frameId with selectors inside a frame.

Inputs: text (required), target (required), clear, submit, +2 more.

wait_forB
Read-only

Wait for one typed condition: element, text, URL glob, page load state, or duration.

Inputs: condition, timeoutMs, returnSnapshot.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 24 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose, from basic interactions like click and hover to specialized actions like solve_challenge and drag. The slight overlap between click and click_at is well-documented and justified by use cases.

    Naming Consistency4/5

    Tool names mostly follow a consistent verb_noun pattern (e.g., open_page, type_text), though a few single-word verbs (click, hover, scroll) deviate slightly. The pattern is predictable and readable.

    Tool Count4/5

    24 tools is a comprehensive set for browser automation, covering navigation, input, waiting, frames, screenshots, and challenge handling. It is slightly above the ideal range but each tool serves a distinct purpose.

    Completeness4/5

    The toolset covers most common browser interactions including all major navigation and input actions, frame handling, and even challenge detection/solving. Minor gaps like file upload or clipboard operations exist but are not essential for core automation.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP clients to drive a real, logged-in Chrome browser for web automation tasks like navigation, clicking, typing, and screenshotting.
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to control a real local browser window for web automation tasks such as clicking, typing, scrolling, and taking screenshots.
      55 npm
      -
    • A
      license
      B
      quality
      C
      maintenance
      Enables MCP clients to drive a real Chromium browser for automation, including navigation, JavaScript execution, CDP commands, network capture, and multi-tab control.
      7
      22 PyPI
      GPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to control Chrome/Edge browsers via CDP, including page navigation, element interaction, snapshots, network debugging, script execution, and performance tracing.
      AGPL 3.0