firefox-browser-mcp

v0.2.2
firefox-browser-mcp Checked 4 days ago Published 28 days ago

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

ParameterTypeDescription
all_windowsboolean

browser_select_tab

Focus/activate a tab (by id, or title/url substring).

ParameterTypeDescription
tab *

browser_new_tab

Open a new tab, optionally navigating to `url`. Returns the new tab id.

ParameterTypeDescription
url

browser_close_tab

Close a tab (by id, or title/url substring); defaults to the active tab.

ParameterTypeDescription
tab

browser_navigate

Navigate a tab to a URL (waits for the page to load).

ParameterTypeDescription
url *string
tab

browser_go_back

Go back one entry in a tab's history.

ParameterTypeDescription
tab

browser_go_forward

Go forward one entry in a tab's history.

ParameterTypeDescription
tab

browser_reload

Reload a tab.

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

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

ParameterTypeDescription
selector *string
allboolean
include_htmlboolean
limitinteger
tab

browser_get_text

Get visible text of the whole page, or of an element (by `ref`/`selector`).

ParameterTypeDescription
ref
selector
tab

browser_get_html

Get outer HTML of the whole page, or of an element (by `ref`/`selector`).

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

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

ParameterTypeDescription
script *string
tab

browser_get_url

Return the id, URL and title of a tab (defaults to the active tab).

ParameterTypeDescription
tab

browser_screenshot

Take a PNG screenshot of a tab (activates it first if needed).

ParameterTypeDescription
tab

browser_get_console_logs

Return recent console log/error entries captured from a tab.

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

ParameterTypeDescription
filter
include_bodyboolean
limitinteger
tab

browser_clear_network

Clear the captured network log for a tab.

ParameterTypeDescription
tab

browser_click

Click an element identified by `ref` or CSS `selector`.

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

ParameterTypeDescription
text *string
clearboolean
ref
selector
submitboolean
tab

browser_hover

Hover the mouse over an element identified by `ref` or CSS `selector`.

ParameterTypeDescription
ref
selector
tab

browser_select_option

Select an option (by value or visible label) in a <select> element.

ParameterTypeDescription
value *string
ref
selector
tab

browser_press_key

Press a keyboard key on the page (e.g. 'Enter', 'Escape', 'ArrowDown').

ParameterTypeDescription
key *string
tab

browser_scroll

Scroll a tab by (x, y) pixels, or scroll an element into view if given.

ParameterTypeDescription
ref
selector
tab
xinteger
yinteger

browser_wait

Wait for a number of seconds (useful for animations / async loads).

ParameterTypeDescription
secondsnumber