mithwire-mcp

v0.5.1
mithwire-mcp Checked 4 days ago Published 2 months ago

MCP 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…

ParameterTypeDescription
browser_args
browser_executable_path
cookie_fallback_domain
cookie_file
engine
fingerprint
headless
probe_timeout
profile
proxy
proxy_ref
sandbox
session_id
skip_probeboolean
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…

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

ParameterTypeDescription
session_id *string
probe_timeout_secondsnumber
realign_identityboolean
settle_secondsnumber

session_list

List active browser sessions.

session_get

Get one session summary.

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

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

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

ParameterTypeDescription
profile *string
browser
os

session_profile_delete

Delete profile metadata or entire profile directory.

ParameterTypeDescription
profile *string
delete_user_data_dirboolean

session_proxy_list

List saved proxy registry entries.

session_proxy_get

Get one proxy registry entry by name.

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

ParameterTypeDescription
proxy_name *string
mergeboolean
values

session_proxy_delete

Delete a proxy registry entry by name.

ParameterTypeDescription
proxy_name *string

session_set_policy

Set runtime policy for one session.

ParameterTypeDescription
session_id *string
allow_evaluate
allowed_domains
blocked_domains
read_only

session_get_policy

Get runtime policy for one session.

ParameterTypeDescription
session_id *string

session_set_download_dir

Set default download directory for one session.

ParameterTypeDescription
download_dir *string
session_id *string

session_trace_start

Start recording session action trace.

ParameterTypeDescription
session_id *string
capture_html_on_errorboolean
capture_screenshot_on_errorboolean
trace_id

session_trace_stop

Stop recording session action trace.

ParameterTypeDescription
session_id *string

session_trace_get

Read recorded session trace events.

ParameterTypeDescription
session_id *string
limitinteger
offsetinteger

session_trace_export

Export recorded trace to a JSON file.

ParameterTypeDescription
output_path *string
session_id *string

session_trace_replay

Replay a trace file against a session.

ParameterTypeDescription
trace_path *string
dry_runboolean
session_id
stop_on_errorboolean

session_stop

Stop one session by id.

ParameterTypeDescription
session_id *string

session_stop_all

Stop all active sessions.

browser_url

Get current URL and page title.

ParameterTypeDescription
session_id *string

browser_navigate

Navigate to a URL.

ParameterTypeDescription
session_id *string
url *string
wait_secondsnumber

browser_back

Navigate one step back in browser history.

ParameterTypeDescription
session_id *string
wait_secondsnumber

browser_forward

Navigate one step forward in browser history.

ParameterTypeDescription
session_id *string
wait_secondsnumber

browser_reload

Reload the current page.

ParameterTypeDescription
session_id *string
ignore_cacheboolean
wait_secondsnumber

browser_tab_list

List open tabs and the active tab.

ParameterTypeDescription
session_id *string

browser_tab_new

Open a new tab and optionally switch to it.

ParameterTypeDescription
session_id *string
switchboolean
urlstring
wait_secondsnumber

browser_tab_switch

Switch active tab by tab_id or index.

ParameterTypeDescription
session_id *string
index
tab_id
wait_secondsnumber

browser_tab_close

Close a tab by tab_id or index.

ParameterTypeDescription
session_id *string
index
switch_tostring
tab_id

browser_tab_current

Get the active tab summary.

ParameterTypeDescription
session_id *string

browser_snapshot

Return a compact snapshot of interactive elements on the page.

ParameterTypeDescription
session_id *string
limitinteger

browser_query

Query DOM elements by CSS selector.

ParameterTypeDescription
selector *string
session_id *string
limitinteger

browser_click

Click the first matching selector.

ParameterTypeDescription
selector *string
session_id *string
wait_secondsnumber

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.

ParameterTypeDescription
session_id *string
x *number
y *number
buttonstring
wait_secondsnumber

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.

ParameterTypeDescription
session_id *string
x *number
y *number
stepsinteger

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.

ParameterTypeDescription
session_id *string
x *number
y *number
duration_msnumber
wait_secondsnumber

browser_type

Type text into an input selector.

ParameterTypeDescription
selector *string
session_id *string
text *string
clearboolean
submitboolean
wait_secondsnumber

browser_handle_dialog

Set how the next JavaScript dialog should be handled.

ParameterTypeDescription
session_id *string
acceptboolean
onceboolean
prompt_text

browser_set_file_input

Attach local files to a file input selector.

ParameterTypeDescription
file_paths *array
selector *string
session_id *string
wait_secondsnumber

browser_scroll

Scroll page, to top, to bottom, or to selector.

ParameterTypeDescription
session_id *string
delta_yinteger
selector
to_bottomboolean
to_topboolean
wait_secondsnumber

browser_wait_for_selector

Wait until selector appears or timeout.

ParameterTypeDescription
selector *string
session_id *string
timeout_secondsnumber

browser_wait_for_url

Wait for URL substring or regex match.

ParameterTypeDescription
session_id *string
poll_interval_secondsnumber
timeout_secondsnumber
url_contains
url_regex

browser_wait_for_text

Wait until text appears in a selector.

ParameterTypeDescription
session_id *string
text *string
case_sensitiveboolean
poll_interval_secondsnumber
selectorstring
timeout_secondsnumber

browser_wait_for_function

Wait for a JavaScript expression to become truthy.

ParameterTypeDescription
script *string
session_id *string
poll_interval_secondsnumber
timeout_secondsnumber

browser_wait_for_network_idle

Wait until in-page network activity is idle.

ParameterTypeDescription
session_id *string
idle_msinteger
max_inflightinteger
poll_interval_secondsnumber
timeout_secondsnumber

browser_wait

Wait for a number of seconds.

ParameterTypeDescription
session_id *string
secondsnumber

browser_html

Return current page HTML (optionally truncated).

ParameterTypeDescription
session_id *string
max_charsinteger

browser_console_messages

Read captured in-page console messages.

ParameterTypeDescription
session_id *string
clearboolean
limitinteger

browser_network_requests

Read captured fetch/xhr request metadata.

ParameterTypeDescription
session_id *string
clearboolean
limitinteger

browser_network_capture_start

Start CDP-level network capture.

ParameterTypeDescription
session_id *string
include_headersboolean
include_post_databoolean
max_entriesinteger
url_regex

browser_network_capture_get

Read CDP-level network capture rows.

ParameterTypeDescription
session_id *string
clearboolean
limitinteger
only_failuresboolean

browser_network_capture_stop

Stop CDP-level network capture.

ParameterTypeDescription
session_id *string
clearboolean

browser_network_capture_status

Get CDP-level network capture status.

ParameterTypeDescription
session_id *string

browser_downloads

Read captured download metadata.

ParameterTypeDescription
session_id *string
clearboolean
limitinteger

browser_cookies_get

Get all cookies visible to current browser context.

ParameterTypeDescription
session_id *string
domain
timeout_secondsnumber

browser_cookies_set

Set cookies into current browser context.

ParameterTypeDescription
cookies *array
session_id *string
fallback_domain

browser_cookies_save

Save current cookies to a JSON file.

ParameterTypeDescription
output_path *string
session_id *string
allow_document_cookie_fallbackboolean
domain
timeout_secondsnumber
wrap_objectboolean

browser_cookies_clear

Clear cookies (all or by domain).

ParameterTypeDescription
session_id *string
domain

browser_storage_get

Get local/session storage values.

ParameterTypeDescription
session_id *string
kindstring

browser_storage_set

Set local/session storage key/value entries.

ParameterTypeDescription
entries *object
kind *string
session_id *string
clear_firstboolean

browser_storage_clear

Clear local/session storage.

ParameterTypeDescription
session_id *string
kindstring

browser_solve_cloudflare

Detect and solve a Cloudflare Turnstile challenge by clicking the verification checkbox.

ParameterTypeDescription
session_id *string
max_retriesinteger
timeout_secondsnumber

browser_take_screenshot

Capture a screenshot to disk.

ParameterTypeDescription
output_path *string
session_id *string
full_pageboolean
image_formatstring

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.

ParameterTypeDescription
session_id *string
geo_region
max_dwellnumber
min_dwellnumber
sites
visitsinteger

browser_evaluate

Evaluate JavaScript in current page.

ParameterTypeDescription
script *string
session_id *string