firefox-browser-mcp
v0.2.2MCP server that controls Firefox through a companion WebExtension over a WebSocket bridge.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
browser_status
Report whether the Firefox extension is currently connected to the bridge.
browser_list_tabs
List open tabs with their stable `id`, window, title, and URL. Set `all_windows=False` to only list tabs in the current window.
| Parameter | Type | Description |
|---|---|---|
all_windows | boolean |
browser_select_tab
Focus/activate a tab (by id, or title/url substring).
| Parameter | Type | Description |
|---|---|---|
tab * |
browser_new_tab
Open a new tab, optionally navigating to `url`. Returns the new tab id.
| Parameter | Type | Description |
|---|---|---|
url |
browser_close_tab
Close a tab (by id, or title/url substring); defaults to the active tab.
| Parameter | Type | Description |
|---|---|---|
tab |
browser_go_back
Go back one entry in a tab's history.
| Parameter | Type | Description |
|---|---|---|
tab |
browser_go_forward
Go forward one entry in a tab's history.
| Parameter | Type | Description |
|---|---|---|
tab |
browser_reload
Reload a tab.
| Parameter | Type | Description |
|---|---|---|
tab |
browser_snapshot
Return an accessibility-style snapshot of a tab's page. Lists visible interactive/text elements with a stable `ref` id (e.g. `[ref=e12]`) usable by interaction tools. Refs are valid until the page changes; re-snapshot after navigation or DOM updates.
| Parameter | Type | Description |
|---|---|---|
tab |
browser_query
Find elements by CSS selector and return their details. Returns each match's `ref`, tag, role, accessible name, text, value and attributes (and outer HTML if `include_html=True`). Set `all=False` to return only the first match. The returned `ref`s work with `browser_click`, `browser_type`, etc.
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
all | boolean | |
include_html | boolean | |
limit | integer | |
tab |
browser_get_text
Get visible text of the whole page, or of an element (by `ref`/`selector`).
| Parameter | Type | Description |
|---|---|---|
ref | ||
selector | ||
tab |
browser_get_html
Get outer HTML of the whole page, or of an element (by `ref`/`selector`).
| Parameter | Type | Description |
|---|---|---|
ref | ||
selector | ||
tab |
browser_get_attribute
Get attribute(s) of an element (by `ref`/`selector`). Returns the value of `name`, or a JSON object of all attributes if `name` is omitted.
| Parameter | Type | Description |
|---|---|---|
name | ||
ref | ||
selector | ||
tab |
browser_eval
Run JavaScript in a tab's page and return the JSON-serialized result. The script body may use `await` and should `return` a value, e.g.: `return document.querySelectorAll('a').length` or `return Array.from(document.querySelectorAll('h2')).map(e => e.textContent)`.
| Parameter | Type | Description |
|---|---|---|
script * | string | |
tab |
browser_get_url
Return the id, URL and title of a tab (defaults to the active tab).
| Parameter | Type | Description |
|---|---|---|
tab |
browser_screenshot
Take a PNG screenshot of a tab (activates it first if needed).
| Parameter | Type | Description |
|---|---|---|
tab |
browser_get_console_logs
Return recent console log/error entries captured from a tab.
| Parameter | Type | Description |
|---|---|---|
tab |
browser_get_network
Return HTTP/API requests captured for a tab. Each entry includes method, url, resource type, status, content-type and (for XHR/fetch) the request and response bodies. Use `filter` to match a URL substring, an HTTP method, or a resource type (e.g. 'xmlhttprequest'). Set `include_body=False` for a lighter summary.
| Parameter | Type | Description |
|---|---|---|
filter | ||
include_body | boolean | |
limit | integer | |
tab |
browser_clear_network
Clear the captured network log for a tab.
| Parameter | Type | Description |
|---|---|---|
tab |
browser_click
Click an element identified by `ref` or CSS `selector`.
| Parameter | Type | Description |
|---|---|---|
double | boolean | |
ref | ||
selector | ||
tab |
browser_type
Type `text` into an element identified by `ref` or CSS `selector`. `clear=True` clears existing value first; `submit=True` presses Enter after.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
clear | boolean | |
ref | ||
selector | ||
submit | boolean | |
tab |
browser_hover
Hover the mouse over an element identified by `ref` or CSS `selector`.
| Parameter | Type | Description |
|---|---|---|
ref | ||
selector | ||
tab |
browser_select_option
Select an option (by value or visible label) in a <select> element.
| Parameter | Type | Description |
|---|---|---|
value * | string | |
ref | ||
selector | ||
tab |
browser_press_key
Press a keyboard key on the page (e.g. 'Enter', 'Escape', 'ArrowDown').
| Parameter | Type | Description |
|---|---|---|
key * | string | |
tab |
browser_scroll
Scroll a tab by (x, y) pixels, or scroll an element into view if given.
| Parameter | Type | Description |
|---|---|---|
ref | ||
selector | ||
tab | ||
x | integer | |
y | integer |
browser_wait
Wait for a number of seconds (useful for animations / async loads).
| Parameter | Type | Description |
|---|---|---|
seconds | number |