chromiumfish_mcp
This MCP server lets MCP clients drive a ChromiumFish browser through structured tools.
Manage pages: list, open, select, and close pages; navigate, go back/forward, and reload.
Inspect content: snapshot interactive elements, read visible text, take screenshots, and list frames.
Interact with pages: click, hover, type, select options, set checkboxes/radios, press keys, scroll, wait, drag, and click coordinates.
Handle browser events: arm dialog responses and detect/solve interstitial or framed challenges.
Use gated extras when enabled: upload files from allowed directories, track downloads to a configured directory, run JavaScript with --allow-eval, and use the native ChromiumFish agent with --allow-native-agent.
Apply browser/session options: persona seed, local browser path, version, headed mode, window size, timezone, proxy, allowed-host navigation restrictions, and output limits.
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., "@chromiumfish_mcp go to example.com and show me what's clickable"
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.
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-pathorCHROME_BIN.
Related MCP server: Browser MCP
Install
npm install --global github:LowOrbitLab/chromiumfish_mcp
chromiumfish_mcp --persona-seed aliceOr 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 |
| Manage pages by stable |
| Navigate and use page history |
| List visible interactive elements with |
| Retrieve page or frame content; |
| Interact with the page |
| Drag onto another element or by a pixel offset, with a human-like path |
| Arm the answer for the next |
| Attach local files to a file input — requires |
| Report what was downloaded and where it landed — requires |
| Click absolute coordinates (for widgets |
| List frames/iframes with stable IDs |
| Detect and clear interstitial / framed challenges; the result says whether one was observed, interacted with, and verified |
| Run arbitrary JavaScript — requires |
| Native ChromiumFish agent — requires |
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 agentProxy 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.
evaluateand the native agent are disabled by default; enable them only in trusted environments.--allowed-host example.comrestricts 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 asnavigationFailedwith reasonnet::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_filesends host files to whatever origin the page posts to, so it is unregistered until--upload-dirnames 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-dirnames a directory; without it the transfer still runs (so the page's own flow is unchanged) but nothing is kept, and the action result saysdiscarded. The file name comes from the remote server'sContent-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_dialogwithaccept: truedeliberately 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_challengereturnsok: truewhenever the page is not blocked, including on pages that were never challenged. ReadchallengeObserved,interactionPerformed, andclearanceVerifiedbefore recording or reporting that a challenge was cleared —okalone 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 --helpThe 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 toolsclickA
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_pageADestructive
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_challengeARead-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_textCRead-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.
hoverAIdempotent
Move the mouse over an element reference or CSS selector without clicking.
Inputs: target (required), frameId, returnSnapshot.
list_framesARead-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_pagesARead-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_optionAIdempotent
Select one or more native dropdown options by value or label.
Inputs: target (required), values (required), frameId, matchBy, +1 more.
select_pageAIdempotent
Select the current page by a pageId returned from list_pages.
Inputs: pageId (required).
set_checkedAIdempotent
Set a checkbox state, or select a radio element with checked=true. Radios cannot be unchecked directly.
Inputs: target (required), checked (required), frameId, returnSnapshot.
snapshotARead-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_screenshotARead-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_forBRead-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
Scored across 24 tools
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.
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.
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.
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
Related MCP Connectors
Unofficial Browserless MCP — wraps the Browserless headless-Chromium REST API (browserless.io)
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Browser automation MCP for whole web tasks in a cloud browser: saved logins, bot checks, replays.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to drive a real, logged-in Chrome browser for web automation tasks like navigation, clicking, typing, and screenshotting.MIT
- FlicenseNot gradedqualityBmaintenanceEnables MCP clients to control a real local browser window for web automation tasks such as clicking, typing, scrolling, and taking screenshots.55 npm-
- AlicenseBqualityCmaintenanceEnables MCP clients to drive a real Chromium browser for automation, including navigation, JavaScript execution, CDP commands, network capture, and multi-tab control.722 PyPIGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables 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