# Firefox MCP

> Firefox MCP is an open-source MCP server for browser automation. MCP server that lets AI agents drive and debug Firefox for browsing and web development. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux, Android, Self-hosted
- **Repository:** https://github.com/mozilla/firefox-mcp
- **MCP Registry name:** io.github.mozilla/firefox-mcp
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation)
- **Listing updated:** 2026-11-19

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add firefox-mcp -- npx -y @mozilla/firefox-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "firefox-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mozilla/firefox-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "firefox-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mozilla/firefox-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "firefox-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mozilla/firefox-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

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

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add firefox-mcp -- npx -y @mozilla/firefox-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.firefox-mcp]
command = "npx"
args = ["-y", "@mozilla/firefox-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "firefox-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mozilla/firefox-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "firefox-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mozilla/firefox-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "firefox-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mozilla/firefox-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "firefox-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mozilla/firefox-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "firefox-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mozilla/firefox-mcp"
      ]
    }
  }
}
```

## Tools

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_pages` (name 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_requests` (name suggests: reads): Lists captured network requests.
- `get_network_request` (name suggests: reads): Returns details of a captured network request.
- `list_downloads` (name suggests: reads): Lists captured downloads.
- `set_download_behavior` (name suggests: changes): Sets how downloads are handled.
- `screenshot_page`: Takes a screenshot of the page.
- `list_console_messages` (name suggests: reads): Lists console messages from the page.

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

## Alternatives

- [FoxMCP](https://ai-powered.com/mcp/foxmcp): FoxMCP is an open-source MCP server for browser automation.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Selenium MCP](https://ai-powered.com/mcp/selenium-mcp-2): Selenium MCP is an open-source MCP server for browser automation.
- [Selenium Webdriver MCP](https://ai-powered.com/mcp/selenium-webdriver-mcp): Selenium Webdriver MCP is an open-source MCP server for browser automation.
- [Camoufox MCP](https://ai-powered.com/mcp/camoufox-mcp): Camoufox MCP is an open-source MCP server for browser automation.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-4): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Agent Browser](https://ai-powered.com/mcp/agent-browser-3): Agent Browser is an open-source MCP server for browser automation.

---
Source: https://ai-powered.com/mcp/firefox-mcp
