firefox-devtools-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| START_URL | No | Open this URL on start | |
| FIREFOX_HEADLESS | No | Run without UI | |
| ACCEPT_INSECURE_CERTS | No | Ignore TLS errors |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_pages | List open tabs (index, title, URL). Selected tab is marked. |
| new_page | Open new tab at URL. Returns tab index. |
| navigate_page | Navigate selected tab to URL. |
| select_page | Select active tab by index, URL, or title. Index takes precedence. |
| close_page | Close tab by index. |
| list_console_messages | List console messages. Supports filtering by level, time, text, source. |
| clear_console_messages | Clear collected console messages. |
| list_network_requests | List network requests. Returns IDs for get_network_request. |
| get_network_request | Get request details by ID. URL lookup as fallback. |
| take_snapshot | Capture DOM snapshot with stable UIDs. Retake after navigation. |
| resolve_uid_to_selector | Resolve UID to CSS selector. Fails if stale. |
| clear_snapshot | Clear snapshot cache. Usually not needed. |
| click_by_uid | Click element by UID. Set dblClick for double-click. |
| hover_by_uid | Hover over element by UID. |
| fill_by_uid | Fill text input/textarea by UID. |
| drag_by_uid_to_uid | Drag element to another (HTML5 drag events). |
| fill_form_by_uid | Fill multiple form fields at once. |
| upload_file_by_uid | Upload file to file input by UID. |
| screenshot_page | Capture page screenshot as base64 PNG. |
| screenshot_by_uid | Capture element screenshot by UID as base64 PNG. |
| accept_dialog | Accept browser dialog. Provide promptText for prompts. |
| dismiss_dialog | Dismiss browser dialog. |
| navigate_history | Navigate history back/forward. UIDs become stale. |
| set_viewport_size | Set viewport dimensions in pixels. |
| get_firefox_output | Retrieve Firefox output (stdout/stderr including MOZ_LOG, warnings, crashes, stack traces). Returns recent output from the capture file. Use filters to focus on specific content. |
| get_firefox_info | Get information about the current Firefox instance configuration, including binary path, environment variables, and output file location. |
| restart_firefox | Restart Firefox with different configuration. Allows changing binary path, environment variables, and other options. All current tabs will be closed. |
| install_extension | Install a Firefox extension using WebDriver BiDi webExtension.install command. Supports installing from archive (.xpi/.zip), base64-encoded data, or unpacked directory. |
| uninstall_extension | Uninstall a Firefox extension using WebDriver BiDi webExtension.uninstall command. Requires the extension ID returned by install_extension or obtained from list_extensions. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mozilla/firefox-devtools-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server