cloak-browser-mcp
v0.2.0Playwright-compatible MCP server on CloakBrowser stealth Chromium: 86 tools, humanized input.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
browser_tabs
List, create, switch between, or close tabs.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
id | string | Tab id (e.g., t2) for switch/close. Takes precedence over index. |
index | number | Tab index (0-based) for switch/close. Defaults to active when omitted. |
url | string | Initial URL when action=new. |
browser_click
Click an element by ref or selector.
| Parameter | Type | Description |
|---|---|---|
target * | string | Element ref like e3 from a prior browser_snapshot, OR a raw Playwright selector (css=, xpath=, text=, role=). |
button | string | |
doubleClick | boolean | |
element | string | Human-readable element description for logging only. |
modifiers | array |
browser_type
Type text into an editable field. Use --humanize for natural per-character timing.
| Parameter | Type | Description |
|---|---|---|
target * | string | Element ref like e3 from a prior browser_snapshot, OR a raw Playwright selector (css=, xpath=, text=, role=). |
text * | string | |
element | string | Human-readable element description for logging only. |
slowly | boolean | Per-character delay; pairs well with --humanize. |
submit | boolean | Press Enter after typing. |
browser_hover
Hover over an element.
| Parameter | Type | Description |
|---|---|---|
target * | string | Element ref like e3 from a prior browser_snapshot, OR a raw Playwright selector (css=, xpath=, text=, role=). |
element | string | Human-readable element description for logging only. |
browser_drag
Drag from one element to another.
| Parameter | Type | Description |
|---|---|---|
endTarget * | ||
startTarget * | string | Element ref like e3 from a prior browser_snapshot, OR a raw Playwright selector (css=, xpath=, text=, role=). |
endElement | string | |
startElement | string |
browser_drop
Drop files or data onto an element.
| Parameter | Type | Description |
|---|---|---|
target * | string | Element ref like e3 from a prior browser_snapshot, OR a raw Playwright selector (css=, xpath=, text=, role=). |
data | object | MIME → text payload for synthetic drag-drop. |
element | string | Human-readable element description for logging only. |
paths | array | Absolute file paths to drop. |
browser_select_option
Select one or more options in a <select> dropdown.
| Parameter | Type | Description |
|---|---|---|
target * | string | Element ref like e3 from a prior browser_snapshot, OR a raw Playwright selector (css=, xpath=, text=, role=). |
values * | array | |
element | string | Human-readable element description for logging only. |
browser_press_key
Send a single key or key combination at page level.
| Parameter | Type | Description |
|---|---|---|
key * | string | Playwright key string, e.g. Enter, Control+A, ArrowDown. |
browser_handle_dialog
Respond to the next dialog (alert/confirm/prompt/beforeunload).
| Parameter | Type | Description |
|---|---|---|
accept * | boolean | |
promptText | string |
browser_file_upload
Upload files to the active file chooser. Paths must be inside --upload-allow-dir if set.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Absolute file paths. Constrained to --upload-allow-dir if set. |
browser_fill_form
Populate multiple form fields in one call.
| Parameter | Type | Description |
|---|---|---|
fields * | array |
browser_scroll
Scroll the page or an element by a pixel amount.
| Parameter | Type | Description |
|---|---|---|
target * | string | Element ref like e3 from a prior browser_snapshot, OR a raw Playwright selector (css=, xpath=, text=, role=). |
amount | number | Pixels (default 600). |
direction | string | |
element | string | Human-readable element description for logging only. |
browser_snapshot
Capture an accessibility-tree snapshot of the active page. Returns a structured outline with [eN] refs you can pass to interaction tools.
browser_find
Search the accessibility snapshot of the current page for text or a regular expression. Returns matching snapshot nodes with a few lines of context, each under its path from the root, which is cheaper than a full snapshot when you only need to locate an element and its ref.
| Parameter | Type | Description |
|---|---|---|
filename | string | Save results to this file instead of returning them in the response. |
regex | string | Regular expression to search for in the page snapshot. Case-sensitive by default; wrap the pattern in slashes to add flags, e.g. "/error/i". Provide either text or regex, not both. |
text | string | Plain text to search for in the page snapshot (case-insensitive substring match). Provide either text or regex, not both. |
browser_emulate_media
Emulate CSS media features for the page, for example switch between the light and dark color scheme. Omitted parameters are left unchanged; null clears an override.
| Parameter | Type | Description |
|---|---|---|
colorScheme | Emulates the prefers-color-scheme media feature. | |
contrast | Emulates the prefers-contrast media feature. | |
forcedColors | Emulates the forced-colors media feature. | |
media | Changes the CSS media type of the page. | |
reducedMotion | Emulates the prefers-reduced-motion media feature. |
browser_take_screenshot
Capture a screenshot of the page or a specific element.
| Parameter | Type | Description |
|---|---|---|
element | string | |
fullPage | boolean | |
quality | number | |
saveAs | string | If set, also write the image to this absolute path. |
target | string | If set, screenshot just this element (ref or selector). |
type | string |
browser_console_messages
Retrieve buffered console/pageerror output for the active tab.
| Parameter | Type | Description |
|---|---|---|
level | string | |
limit | number |
browser_wait_for
Wait for time, text appearance/disappearance, or selector state.
| Parameter | Type | Description |
|---|---|---|
selector | string | |
state | string | |
text | string | |
textGone | string | |
timeMs | number | |
timeoutMs | number |
browser_resize
Resize the viewport.
| Parameter | Type | Description |
|---|---|---|
height * | number | |
width * | number |
browser_evaluate
Run a JavaScript function inside the page. Function source must be an arrow or function expression.
| Parameter | Type | Description |
|---|---|---|
function * | string | JS function source: must be an arrow or function expression. Receives the page (or element) and returns a JSON-serializable value. |
element | string | |
target | string | If set, runs the function with this element as argument. |
cloak_set_fingerprint
Apply a fingerprint profile to the active context. Some fields (seed, GPU, screen) require recreating the context — current pages will be reopened on the same URL.
| Parameter | Type | Description |
|---|---|---|
deviceMemoryGB | number | |
gpuRenderer | string | |
gpuVendor | string | |
hardwareConcurrency | number | |
platform | string | |
screenHeight | number | |
screenWidth | number | |
seed | number | Deterministic canvas/WebGL/audio seed. |
storageQuotaMB | number | |
uaBrand | string | Browser brand for navigator.userAgentData (e.g. 'Google Chrome'). |
uaBrandVersion | string |
cloak_set_timezone
Live-override the timezone for the active context via CDP (no relaunch).
| Parameter | Type | Description |
|---|---|---|
timezone * | string |
cloak_set_locale
Override navigator.language and Accept-Language for the active context.
| Parameter | Type | Description |
|---|---|---|
locale * | string |
cloak_set_geolocation
Set the geolocation reported by navigator.geolocation. Pass fromProxyIp=true to auto-resolve from proxy exit IP.
| Parameter | Type | Description |
|---|---|---|
accuracy | number | |
fromProxyIp | boolean | If true, resolve geolocation from the configured proxy's exit IP via cloak's geoip backend. |
latitude | number | |
longitude | number |
cloak_set_proxy
Replace the current proxy. This recreates the BrowserContext (state is preserved if --profile-dir was used; otherwise cookies are lost).
| Parameter | Type | Description |
|---|---|---|
proxy * | string | New proxy URL. Switching mid-session recreates the context. |
cloak_detection_test
Load a well-known bot-detection probe page and dump its key result fields.
| Parameter | Type | Description |
|---|---|---|
customUrl | string | Override probe URL. |
suite | string | Which probe to load. Default = sannysoft (free, no captchas). |
cloak_stealth_audit
Programmatic stealth audit. Reports navigator.webdriver, plugin count, WebGL vendor/renderer, languages, user agent, hardwareConcurrency, deviceMemory, permissions, chrome.runtime presence, and a canvas fingerprint hash.
cloak_request_signal_inspect
Open the target URL in an ephemeral background tab and capture per-request connection signals: response status, security details (TLS protocol/issuer), response headers, and request headers (Accept-Language, User-Agent, Sec-CH-UA-*).
| Parameter | Type | Description |
|---|---|---|
url * | string | Target URL whose connection signals (TLS, headers) we capture. |
cloak_persistent_profile_create
Create a fresh persistent profile directory under ~/.cloak-browser-mcp/profiles/<name>. Use as --profile-dir on next launch.
| Parameter | Type | Description |
|---|---|---|
name * | string |
cloak_persistent_profile_list
List all profile directories under ~/.cloak-browser-mcp/profiles/.
cloak_persistent_profile_delete
Delete a profile directory. Requires confirm=true. The active session is unaffected.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Required — confirms you intend to wipe this profile. |
name * | string |
cloak_binary_info
Report installed CloakBrowser binary version, tier (free or pro), platform, and cache path.
cloak_binary_update
Force CloakBrowser to check for and download the latest Chromium build. May take several minutes (~200MB).