MCP Libraries
firefox-devtools-mcp

Configuration

Configuration options for firefox-devtools-mcp

Configuration

CLI Options

FlagDescriptionEnvironment Variable
--firefox-pathAbsolute path to Firefox binary-
--headlessRun without UIFIREFOX_HEADLESS=true
--viewport WxHInitial window size (e.g., 1280x720)-
--profile-pathUse a specific Firefox profile-
--firefox-argExtra Firefox arguments (repeatable)-
--start-urlOpen this URL on startSTART_URL
--accept-insecure-certsIgnore TLS errorsACCEPT_INSECURE_CERTS=true

Examples

Headless with Viewport

npx firefox-devtools-mcp@latest --headless --viewport 1920x1080

Custom Firefox Path (macOS)

npx firefox-devtools-mcp@latest --firefox-path "/Applications/Firefox.app/Contents/MacOS/firefox"

With Start URL

npx firefox-devtools-mcp@latest --start-url https://example.com

Troubleshooting

Firefox Not Found

Pass the correct path to Firefox:

# macOS
--firefox-path "/Applications/Firefox.app/Contents/MacOS/firefox"

# Windows
--firefox-path "C:\Program Files\Mozilla Firefox\firefox.exe"

# Linux
--firefox-path "/usr/bin/firefox"

First Run is Slow

Selenium sets up the BiDi session on first run. Subsequent runs are faster.

Stale UIDs After Navigation

Take a fresh snapshot (take_snapshot) before using UID tools after page navigation.

On this page