cloak-browser-mcp

v0.2.0
io.github.devinwang/cloak-browser-mcp Checked 3 days ago Published 1 month ago

Playwright-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_navigate

Load a URL in the active tab. Returns a fresh snapshot after navigation.

ParameterTypeDescription
url *stringAbsolute URL to load. Subject to --allowed-domains / --blocked-domains.
timeoutMsnumber
waitUntilstring

browser_navigate_back

Go back one entry in the active tab's history.

browser_tabs

List, create, switch between, or close tabs.

ParameterTypeDescription
action *string
idstringTab id (e.g., t2) for switch/close. Takes precedence over index.
indexnumberTab index (0-based) for switch/close. Defaults to active when omitted.
urlstringInitial URL when action=new.

browser_click

Click an element by ref or selector.

ParameterTypeDescription
target *stringElement ref like e3 from a prior browser_snapshot, OR a raw Playwright selector (css=, xpath=, text=, role=).
buttonstring
doubleClickboolean
elementstringHuman-readable element description for logging only.
modifiersarray

browser_type

Type text into an editable field. Use --humanize for natural per-character timing.

ParameterTypeDescription
target *stringElement ref like e3 from a prior browser_snapshot, OR a raw Playwright selector (css=, xpath=, text=, role=).
text *string
elementstringHuman-readable element description for logging only.
slowlybooleanPer-character delay; pairs well with --humanize.
submitbooleanPress Enter after typing.

browser_hover

Hover over an element.

ParameterTypeDescription
target *stringElement ref like e3 from a prior browser_snapshot, OR a raw Playwright selector (css=, xpath=, text=, role=).
elementstringHuman-readable element description for logging only.

browser_drag

Drag from one element to another.

ParameterTypeDescription
endTarget *
startTarget *stringElement ref like e3 from a prior browser_snapshot, OR a raw Playwright selector (css=, xpath=, text=, role=).
endElementstring
startElementstring

browser_drop

Drop files or data onto an element.

ParameterTypeDescription
target *stringElement ref like e3 from a prior browser_snapshot, OR a raw Playwright selector (css=, xpath=, text=, role=).
dataobjectMIME → text payload for synthetic drag-drop.
elementstringHuman-readable element description for logging only.
pathsarrayAbsolute file paths to drop.

browser_select_option

Select one or more options in a <select> dropdown.

ParameterTypeDescription
target *stringElement ref like e3 from a prior browser_snapshot, OR a raw Playwright selector (css=, xpath=, text=, role=).
values *array
elementstringHuman-readable element description for logging only.

browser_press_key

Send a single key or key combination at page level.

ParameterTypeDescription
key *stringPlaywright key string, e.g. Enter, Control+A, ArrowDown.

browser_handle_dialog

Respond to the next dialog (alert/confirm/prompt/beforeunload).

ParameterTypeDescription
accept *boolean
promptTextstring

browser_file_upload

Upload files to the active file chooser. Paths must be inside --upload-allow-dir if set.

ParameterTypeDescription
paths *arrayAbsolute file paths. Constrained to --upload-allow-dir if set.

browser_fill_form

Populate multiple form fields in one call.

ParameterTypeDescription
fields *array

browser_scroll

Scroll the page or an element by a pixel amount.

ParameterTypeDescription
target *stringElement ref like e3 from a prior browser_snapshot, OR a raw Playwright selector (css=, xpath=, text=, role=).
amountnumberPixels (default 600).
directionstring
elementstringHuman-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.

ParameterTypeDescription
filenamestringSave results to this file instead of returning them in the response.
regexstringRegular 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.
textstringPlain 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.

ParameterTypeDescription
colorSchemeEmulates the prefers-color-scheme media feature.
contrastEmulates the prefers-contrast media feature.
forcedColorsEmulates the forced-colors media feature.
mediaChanges the CSS media type of the page.
reducedMotionEmulates the prefers-reduced-motion media feature.

browser_take_screenshot

Capture a screenshot of the page or a specific element.

ParameterTypeDescription
elementstring
fullPageboolean
qualitynumber
saveAsstringIf set, also write the image to this absolute path.
targetstringIf set, screenshot just this element (ref or selector).
typestring

browser_console_messages

Retrieve buffered console/pageerror output for the active tab.

ParameterTypeDescription
levelstring
limitnumber

browser_wait_for

Wait for time, text appearance/disappearance, or selector state.

ParameterTypeDescription
selectorstring
statestring
textstring
textGonestring
timeMsnumber
timeoutMsnumber

browser_resize

Resize the viewport.

ParameterTypeDescription
height *number
width *number

browser_evaluate

Run a JavaScript function inside the page. Function source must be an arrow or function expression.

ParameterTypeDescription
function *stringJS function source: must be an arrow or function expression. Receives the page (or element) and returns a JSON-serializable value.
elementstring
targetstringIf 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.

ParameterTypeDescription
deviceMemoryGBnumber
gpuRendererstring
gpuVendorstring
hardwareConcurrencynumber
platformstring
screenHeightnumber
screenWidthnumber
seednumberDeterministic canvas/WebGL/audio seed.
storageQuotaMBnumber
uaBrandstringBrowser brand for navigator.userAgentData (e.g. 'Google Chrome').
uaBrandVersionstring

cloak_set_timezone

Live-override the timezone for the active context via CDP (no relaunch).

ParameterTypeDescription
timezone *string

cloak_set_locale

Override navigator.language and Accept-Language for the active context.

ParameterTypeDescription
locale *string

cloak_set_geolocation

Set the geolocation reported by navigator.geolocation. Pass fromProxyIp=true to auto-resolve from proxy exit IP.

ParameterTypeDescription
accuracynumber
fromProxyIpbooleanIf true, resolve geolocation from the configured proxy's exit IP via cloak's geoip backend.
latitudenumber
longitudenumber

cloak_set_proxy

Replace the current proxy. This recreates the BrowserContext (state is preserved if --profile-dir was used; otherwise cookies are lost).

ParameterTypeDescription
proxy *stringNew 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.

ParameterTypeDescription
customUrlstringOverride probe URL.
suitestringWhich 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-*).

ParameterTypeDescription
url *stringTarget 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.

ParameterTypeDescription
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.

ParameterTypeDescription
confirm *booleanRequired — 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).