Firefox MCP
MCP server that lets AI agents drive and debug Firefox for browsing and web development
Firefox MCP is an open-source MCP server for browser automation. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, macOS, Windows
- Runs
- Locally
- What it can do
- Can change data (1 tool)
- Version
- 0.11.0
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add firefox-mcp -- npx -y @mozilla/firefox-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"firefox-mcp": {
"command": "npx",
"args": [
"-y",
"@mozilla/firefox-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"firefox-mcp": {
"command": "npx",
"args": [
"-y",
"@mozilla/firefox-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"firefox-mcp": {
"command": "npx",
"args": [
"-y",
"@mozilla/firefox-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"firefox-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mozilla/firefox-mcp"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add firefox-mcp -- npx -y @mozilla/firefox-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.firefox-mcp]
command = "npx"
args = ["-y", "@mozilla/firefox-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"firefox-mcp": {
"command": "npx",
"args": [
"-y",
"@mozilla/firefox-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "firefox-mcp": { "command": "npx", "args": [ "-y", "@mozilla/firefox-mcp" ] } } }Or run: gemini mcp add -s user firefox-mcp npx -- -y @mozilla/firefox-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "firefox-mcp": { "command": "npx", "args": [ "-y", "@mozilla/firefox-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "firefox-mcp": { "command": "npx", "args": [ "-y", "@mozilla/firefox-mcp" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "firefox-mcp": { "command": "npx", "args": [ "-y", "@mozilla/firefox-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "firefox-mcp": { "command": "npx", "args": [ "-y", "@mozilla/firefox-mcp" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "firefox-mcp": { "command": "npx", "args": [ "-y", "@mozilla/firefox-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "firefox-mcp": { "command": "npx", "args": [ "-y", "@mozilla/firefox-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "firefox-mcp": { "command": "npx", "args": [ "-y", "@mozilla/firefox-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
FIREFOX_HEADLESSSet to true to run Firefox without a visible window.START_URLURL to open when the server starts.
About Firefox MCP
The README says the server gives AI clients control over a local Firefox instance, using WebDriver BiDi through Selenium. Agents can open pages, read them, fill in forms and move through multi-step flows, and they can also load the page you are building and inspect it with console, network, debugger and profiler data.
Tools are grouped into modules and exposed through presets (slim, basic, developer, mozilla, all) or an explicit module list. The default basic preset includes script evaluation, and the README recommends a dedicated Firefox profile and trimming the presets to limit what an agent can do.
It suits developers who want an agent to reproduce or inspect front-end behaviour in Firefox, and people who want an agent to run routine browsing tasks. It needs a local Firefox install, Node.js 20.19 or later, and cannot run on cloud hosting, according to the README. Android device mode is also supported, with a warning that it wipes the target app's data.
Tools this server provides (12)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 12 tools changes data; 6 names don't say.
From the server's own tool labels and tool names; not verified by us.
- list_pagesName suggests: reads
- Lists open pages in Firefox.
- select_page
- Selects a page to work on.
- navigate_page
- Navigates a page to a URL.
- take_snapshot
- Takes a snapshot of the page to find elements.
- click_by_uid
- Clicks an element identified by UID.
- fill_by_uid
- Fills a form element identified by UID.
- list_network_requestsName suggests: reads
- Lists captured network requests.
- get_network_requestName suggests: reads
- Returns details of a captured network request.
- list_downloadsName suggests: reads
- Lists captured downloads.
- set_download_behaviorName suggests: changes
- Sets how downloads are handled.
- screenshot_page
- Takes a screenshot of the page.
- list_console_messagesName suggests: reads
- Lists console messages from the page.
What it does
- Page navigation and forms
- Lets the agent open pages, take snapshots, click and fill elements by UID.
- Network and console inspection
- Captures network requests and console messages for debugging a page.
- Profiler and debugger tools
- Exposes developer tools such as the profiler and debugger in the developer preset.
- Configurable tool presets
- Choose named presets or an explicit module list to limit exposed tools.
- Connect to existing Firefox
- Can attach to a running Firefox session using Marionette and remote debugging flags.
- Screenshots and saved output
- Saves screenshots and bulky tool output to disk through an optional saveTo parameter.
Good for
- Let an agent complete multi-step forms and workflows on websites
- Inspect network requests and console errors while building a web page
- Take screenshots of pages for review or documentation
- Run browser tests against Firefox from an MCP client like Claude Code or Cursor
Pricing
Open source
Dual-licensed MIT or Apache 2.0; free to run locally.
Firefox MCP FAQ
Does Firefox MCP need a local Firefox installation?
Yes. The README says it requires a local Firefox browser and cannot run on cloud hosting services.
What are the Node.js and Firefox version requirements?
Node.js 20.19.0 or later and Firefox 100 or later.
Which MCP clients does Firefox MCP work with?
The README names Claude Code, Claude Desktop, Cursor, Cline and other MCP clients.
Is Firefox MCP safe to use with my everyday browser profile?
The README advises against it and recommends a dedicated Firefox profile, since the agent can reach cookies and saved sessions.
Is Firefox MCP free?
Yes. Firefox MCP is open source, so you can use and self-host it for free.
How do I add Firefox MCP to Claude Code?
Run this command in your terminal: claude mcp add firefox-mcp -- npx -y @mozilla/firefox-mcp
What are the best alternatives to Firefox MCP?
The closest alternatives to Firefox MCP are FoxMCP, Chrome DevTools MCP, Selenium MCP, Selenium Webdriver MCP and Camoufox MCP.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.
