Browser Automation

v0.4.1
io.github.mindstone/mcp-server-browser-automation Checked 3 days ago Published 1 day ago

Browser automation MCP server: navigate, fill forms, click, screenshot, and manage tabs

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

browser_navigate

Navigate to a URL. Opens the browser if not already running. Only http: and https: URLs are accepted (plus the special about:blank). Other URL schemes (file:, chrome:, chrome-extension:, javascript:, data:, view-source:, about:*) are refused. IMPORTANT: After navigating, call browser_snapshot to see the page content before interacting.

ParameterTypeDescription
url *stringURL to navigate to (http://, https://, or about:blank)

browser_back

Navigate back in browser history.

browser_forward

Navigate forward in browser history.

browser_wait

Wait for an element to appear or for a specified time.

ParameterTypeDescription
selector *stringCSS selector to wait for, or milliseconds (e.g., "2000")
timeoutnumberMax wait time in ms (default: 10000)

browser_click

Click an element. Use @ref from browser_snapshot (preferred) or a CSS selector. WORKFLOW: browser_snapshot → find @ref → browser_click @ref A click can submit a form, send a message, delete something or confirm a payment. Before a click that does any of those, check that the user asked for it.

ParameterTypeDescription
ref *stringElement ref from snapshot (e.g., "@e2") or CSS selector

browser_fill

Clear a field and fill it with text. Use @ref from browser_snapshot. WORKFLOW: browser_snapshot → find input @ref → browser_fill

ParameterTypeDescription
ref *stringElement ref (e.g., "@e3") or CSS selector
value *stringText to fill

browser_type

Type text character by character (simulates real keystrokes). Useful for search boxes and autocompletes that respond to individual key events.

ParameterTypeDescription
ref *stringElement ref or CSS selector
text *stringText to type

browser_press_key

Press a keyboard key. Common keys: Enter, Tab, Escape, Backspace, ArrowDown, ArrowUp.

ParameterTypeDescription
key *stringKey to press (e.g., "Enter", "Tab", "Escape")

browser_scroll

Scroll the page in a direction.

ParameterTypeDescription
direction *stringScroll direction
amountnumberPixels to scroll (default: 500)

browser_select

Select an option from a dropdown.

ParameterTypeDescription
ref *stringElement ref or CSS selector for the <select>
value *stringOption value or visible text to select

browser_hover

Hover over an element (triggers hover menus/tooltips).

ParameterTypeDescription
ref *stringElement ref or CSS selector

browser_evaluate

Execute JavaScript in the page context and return the result. DESTRUCTIVE: this is equivalent to running arbitrary code with the privileges of the current page.

ParameterTypeDescription
script *stringJavaScript code to execute

browser_snapshot

Get the page accessibility tree with interactive element references. THIS IS YOUR PRIMARY DISCOVERY TOOL. Always call this before clicking, filling, or interacting with the page. Returns element refs like @e1, @e2 that you use with browser_click, browser_fill, etc. Use the -i flag (default) to see only interactive elements, keeping output focused.

ParameterTypeDescription
fullbooleanIf true, show all elements (not just interactive). Default: false.

browser_screenshot

Take a screenshot of the current page. Returns an image.

ParameterTypeDescription
annotatebooleanAdd numbered element labels to the screenshot
full_pagebooleanCapture full scrollable page

browser_get_page_info

Get the current page URL and title.

browser_get_text

Get the text content of the page (or of a single element). Use this for reading and summarising page content — it returns clean text, unlike browser_snapshot which returns the interactive-element accessibility tree.

ParameterTypeDescription
refstringElement ref from snapshot (e.g., "@e2") or CSS selector. Omit to get the whole page body text.

browser_pdf

Save the current page as a PDF file. When connected to a host that authorizes file writes, its path permission decision applies to file_path. For standalone clients, the file is written inside the workspace directory (MCP_WORKSPACE_PATH, or the system temp directory when unset) — file_path must resolve inside that workspace. Existing files are refused unless overwrite is set to true.

ParameterTypeDescription
file_path *stringTarget file path for the PDF. Relative paths resolve inside the workspace directory; standalone absolute paths must be inside it; when connected to a host that authorizes file writes, its path permiss…
overwritebooleanReplace an existing file at file_path. Default: false — existing files are refused. A directory at file_path is refused even with overwrite: true.

browser_tabs

List open tabs, open a new tab, close the current tab, or switch to a tab by number.

ParameterTypeDescription
actionstringTab action. Omit to list tabs.
tab_numberintegerTab to switch to: the number in its id in the tab list, e.g. 2 for [t2]. When given, action is ignored.

browser_close

Close the browser session. Sessions are saved automatically.

browser_authenticate

Open a visible browser window so the user can log in manually. The session is saved automatically. WHEN TO USE: "I need to access LinkedIn", "Log me into WhatsApp", etc. Tell the user to close the browser when done logging in, or call browser_close.

ParameterTypeDescription
url *stringWebsite URL to open for login (http://, https://, or about:blank)

browser_upload

Upload one or more files to a file input on the page. Use @ref from browser_snapshot or a CSS selector for the <input type="file">. WORKFLOW: browser_snapshot → find file input @ref → browser_upload. When connected to a host that authorizes file reads, its path permission decision applies. Standalone clients require files inside the workspace directory (MCP_WORKSPACE_PATH, or the system temp directory when unset). Only regular files (not directories or devices) are accepted. Validated files are copied into a private staging directory before upload, so the upload cannot be redirected afte…

ParameterTypeDescription
file_paths *arrayFiles to upload. Relative paths resolve inside the workspace directory. When connected to a host that authorizes file reads, its path permission decision applies; standalone clients require files insi…
ref *stringElement ref (e.g., "@e3") or CSS selector for the file input