mithwire-mcp
v0.5.1MCP browser bridge that gives AI clients full access to a live browser environment.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
session_start
Launch a new, isolated browser. By default it is ephemeral (no saved state) and headful. Pass profile=<name> to launch a persistent managed profile whose cookies/storage survive across runs. Optional: headless, proxy, proxy_ref, start_url, cookie_file (one-shot cookie injection). engine selects the browser engine: 'cdp' (default) uses the system Chrome with Mithwire CDP/JS patches; 'stealth' uses a CloakBrowser binary with C++ source-level fingerprint patches for zero-lie stealth (requires pip install mithwire-mcp[stealth]). On unsupported platforms, 'stealth' falls back to 'cdp' with a warnin…
| Parameter | Type | Description |
|---|---|---|
browser_args | ||
browser_executable_path | ||
cookie_fallback_domain | ||
cookie_file | ||
engine | ||
fingerprint | ||
headless | ||
probe_timeout | ||
profile | ||
proxy | ||
proxy_ref | ||
sandbox | ||
session_id | ||
skip_probe | boolean | |
start_url | ||
webrtc_leak_protection |
session_set_fingerprint
Apply identity/anti-detect overrides to a live session via engine-level CDP where possible (propagates to workers and HTTP headers). Accepts any of: timezone_id, locale, languages (list or comma string), accept_language, latitude/longitude/geo_accuracy, user_agent, platform, hardware_concurrency, device_memory (GB), screen {width,height,device_scale_factor,mobile,max_touch_points}, webgl_vendor, webgl_renderer. Note: navigator.languages is best pinned at launch (--lang) since workers can't be rewritten at runtime; reload the page after this call so new-document JS overrides (deviceMemory, WebG…
| Parameter | Type | Description |
|---|---|---|
fingerprint * | object | |
session_id * | string |
session_rotate_proxy
Rotate the upstream exit IP for a session whose proxy was launched with a rotation_url. Hits the provider's rotation endpoint, waits a short settle window for the new IP to take over, re-probes through the proxy to confirm the new egress, and (by default) re-aligns the browser identity — timezone, locale, languages, geolocation — to the new egress. Caller-pinned fingerprint fields from session_start or session_set_fingerprint continue to win over the proxy-derived defaults, just like at launch. Returns old + new egress summaries, the (redacted) rotation endpoint, the rotation response payl…
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
probe_timeout_seconds | number | |
realign_identity | boolean | |
settle_seconds | number |
session_list
List active browser sessions.
session_get
Get one session summary.
| Parameter | Type | Description |
|---|---|---|
session_id * | string |
session_state_paths
Get centralized directories used for profiles, proxies, and cookies.
session_profile_list
List saved browser profiles.
session_profile_get
Get one saved profile by name or account alias.
| Parameter | Type | Description |
|---|---|---|
profile * | string |
session_profile_set
Create or update a saved profile. ``launch_options`` (optional) is a dict of per-profile launch settings keyed by the same fields session_start accepts (headless, start_url, browser_args, sandbox, fingerprint, proxy, proxy_ref, cookie_file, cookie_fallback_domain, webrtc_leak_protection, browser_executable_path, user_data_dir, engine). ``fingerprint`` (optional dict) is the profile's persisted browser identity — generated automatically on first launch if not set, but can be set/overridden here. It takes precedence over launch_options fingerprint fields in the merge chain. ``proxy_ref`` (opti…
| Parameter | Type | Description |
|---|---|---|
profile * | string | |
account_aliases | ||
description | ||
fingerprint | ||
launch_options | ||
proxy_ref | ||
warming_status |
session_profile_regenerate_fingerprint
Regenerate and persist a new fingerprint for a profile using BrowserForge's Bayesian network. The new fingerprint replaces the profile's stored identity; subsequent launches will use it. Optional os ('windows', 'macos', 'linux') and browser (default 'chrome') control the generated identity's platform family.
| Parameter | Type | Description |
|---|---|---|
profile * | string | |
browser | ||
os |
session_profile_delete
Delete profile metadata or entire profile directory.
| Parameter | Type | Description |
|---|---|---|
profile * | string | |
delete_user_data_dir | boolean |
session_proxy_list
List saved proxy registry entries.
session_proxy_get
Get one proxy registry entry by name.
| Parameter | Type | Description |
|---|---|---|
proxy_name * | string |
session_proxy_set
Create or update a proxy registry entry. ``values`` accepts either discrete fields ({scheme, host, port, username, password, rotation_url, tags}) or a single ``server`` URL ({server: 'http://user:pw@host:port', rotation_url, tags}). The persisted form is always discrete fields; ``server`` is decomposed at write. Profiles and session_start reference the entry by name via the ``proxy_ref`` field.
| Parameter | Type | Description |
|---|---|---|
proxy_name * | string | |
merge | boolean | |
values |
session_proxy_delete
Delete a proxy registry entry by name.
| Parameter | Type | Description |
|---|---|---|
proxy_name * | string |
session_set_policy
Set runtime policy for one session.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
allow_evaluate | ||
allowed_domains | ||
blocked_domains | ||
read_only |
session_get_policy
Get runtime policy for one session.
| Parameter | Type | Description |
|---|---|---|
session_id * | string |
session_set_download_dir
Set default download directory for one session.
| Parameter | Type | Description |
|---|---|---|
download_dir * | string | |
session_id * | string |
session_trace_start
Start recording session action trace.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
capture_html_on_error | boolean | |
capture_screenshot_on_error | boolean | |
trace_id |
session_trace_stop
Stop recording session action trace.
| Parameter | Type | Description |
|---|---|---|
session_id * | string |
session_trace_get
Read recorded session trace events.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
limit | integer | |
offset | integer |
session_trace_export
Export recorded trace to a JSON file.
| Parameter | Type | Description |
|---|---|---|
output_path * | string | |
session_id * | string |
session_trace_replay
Replay a trace file against a session.
| Parameter | Type | Description |
|---|---|---|
trace_path * | string | |
dry_run | boolean | |
session_id | ||
stop_on_error | boolean |
session_stop
Stop one session by id.
| Parameter | Type | Description |
|---|---|---|
session_id * | string |
session_stop_all
Stop all active sessions.
browser_url
Get current URL and page title.
| Parameter | Type | Description |
|---|---|---|
session_id * | string |
browser_back
Navigate one step back in browser history.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
wait_seconds | number |
browser_forward
Navigate one step forward in browser history.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
wait_seconds | number |
browser_reload
Reload the current page.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
ignore_cache | boolean | |
wait_seconds | number |
browser_tab_list
List open tabs and the active tab.
| Parameter | Type | Description |
|---|---|---|
session_id * | string |
browser_tab_new
Open a new tab and optionally switch to it.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
switch | boolean | |
url | string | |
wait_seconds | number |
browser_tab_switch
Switch active tab by tab_id or index.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
index | ||
tab_id | ||
wait_seconds | number |
browser_tab_close
Close a tab by tab_id or index.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
index | ||
switch_to | string | |
tab_id |
browser_tab_current
Get the active tab summary.
| Parameter | Type | Description |
|---|---|---|
session_id * | string |
browser_snapshot
Return a compact snapshot of interactive elements on the page.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
limit | integer |
browser_query
Query DOM elements by CSS selector.
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
session_id * | string | |
limit | integer |
browser_click
Click the first matching selector.
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
session_id * | string | |
wait_seconds | number |
browser_mouse_click
Native CDP coordinate click at viewport pixel position (x, y). Unlike browser_click (which uses a CSS selector and JS el.click()), this dispatches Input.dispatchMouseEvent through the browser's input pipeline, producing isTrusted events. Use when you need to click by coordinates — e.g. inside iframes or at positions obtained from screenshots/evaluation.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
x * | number | |
y * | number | |
button | string | |
wait_seconds | number |
browser_mouse_move
Move the mouse cursor to viewport pixel position (x, y) via intermediate mouseMoved CDP events. Useful for creating cursor movement trails before a click or for hover interactions.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
x * | number | |
y * | number | |
steps | integer |
browser_press_hold
Sustained mouse press at viewport pixel (x, y) for a given duration. Dispatches mousePressed, emits tiny mouseMoved jitter while holding, then mouseReleased. Use for press-and-hold verification challenges or long-press interactions.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
x * | number | |
y * | number | |
duration_ms | number | |
wait_seconds | number |
browser_type
Type text into an input selector.
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
session_id * | string | |
text * | string | |
clear | boolean | |
submit | boolean | |
wait_seconds | number |
browser_handle_dialog
Set how the next JavaScript dialog should be handled.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
accept | boolean | |
once | boolean | |
prompt_text |
browser_set_file_input
Attach local files to a file input selector.
| Parameter | Type | Description |
|---|---|---|
file_paths * | array | |
selector * | string | |
session_id * | string | |
wait_seconds | number |
browser_scroll
Scroll page, to top, to bottom, or to selector.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
delta_y | integer | |
selector | ||
to_bottom | boolean | |
to_top | boolean | |
wait_seconds | number |
browser_wait_for_selector
Wait until selector appears or timeout.
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
session_id * | string | |
timeout_seconds | number |
browser_wait_for_url
Wait for URL substring or regex match.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
poll_interval_seconds | number | |
timeout_seconds | number | |
url_contains | ||
url_regex |
browser_wait_for_text
Wait until text appears in a selector.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
text * | string | |
case_sensitive | boolean | |
poll_interval_seconds | number | |
selector | string | |
timeout_seconds | number |
browser_wait_for_function
Wait for a JavaScript expression to become truthy.
| Parameter | Type | Description |
|---|---|---|
script * | string | |
session_id * | string | |
poll_interval_seconds | number | |
timeout_seconds | number |
browser_wait_for_network_idle
Wait until in-page network activity is idle.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
idle_ms | integer | |
max_inflight | integer | |
poll_interval_seconds | number | |
timeout_seconds | number |
browser_wait
Wait for a number of seconds.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
seconds | number |
browser_html
Return current page HTML (optionally truncated).
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
max_chars | integer |
browser_console_messages
Read captured in-page console messages.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
clear | boolean | |
limit | integer |
browser_network_requests
Read captured fetch/xhr request metadata.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
clear | boolean | |
limit | integer |
browser_network_capture_start
Start CDP-level network capture.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
include_headers | boolean | |
include_post_data | boolean | |
max_entries | integer | |
url_regex |
browser_network_capture_get
Read CDP-level network capture rows.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
clear | boolean | |
limit | integer | |
only_failures | boolean |
browser_network_capture_stop
Stop CDP-level network capture.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
clear | boolean |
browser_network_capture_status
Get CDP-level network capture status.
| Parameter | Type | Description |
|---|---|---|
session_id * | string |
browser_downloads
Read captured download metadata.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
clear | boolean | |
limit | integer |
browser_cookies_get
Get all cookies visible to current browser context.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
domain | ||
timeout_seconds | number |
browser_cookies_set
Set cookies into current browser context.
| Parameter | Type | Description |
|---|---|---|
cookies * | array | |
session_id * | string | |
fallback_domain |
browser_cookies_save
Save current cookies to a JSON file.
| Parameter | Type | Description |
|---|---|---|
output_path * | string | |
session_id * | string | |
allow_document_cookie_fallback | boolean | |
domain | ||
timeout_seconds | number | |
wrap_object | boolean |
browser_cookies_clear
Clear cookies (all or by domain).
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
domain |
browser_storage_get
Get local/session storage values.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
kind | string |
browser_storage_set
Set local/session storage key/value entries.
| Parameter | Type | Description |
|---|---|---|
entries * | object | |
kind * | string | |
session_id * | string | |
clear_first | boolean |
browser_storage_clear
Clear local/session storage.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
kind | string |
browser_solve_cloudflare
Detect and solve a Cloudflare Turnstile challenge by clicking the verification checkbox.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
max_retries | integer | |
timeout_seconds | number |
browser_take_screenshot
Capture a screenshot to disk.
| Parameter | Type | Description |
|---|---|---|
output_path * | string | |
session_id * | string | |
full_page | boolean | |
image_format | string |
session_warmup
Warm a browser session by visiting sites to accumulate realistic browsing state (cookies, localStorage, history). A fresh profile with no history is a strong bot signal; this tool builds a natural footprint. Uses a curated site list by default; pass sites= to override. geo_region filters the built-in list to a country code (e.g. "US", "GB", "DE") plus global sites.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
geo_region | ||
max_dwell | number | |
min_dwell | number | |
sites | ||
visits | integer |
browser_evaluate
Evaluate JavaScript in current page.
| Parameter | Type | Description |
|---|---|---|
script * | string | |
session_id * | string |