Skip to main content
Glama

MCP for Firefox

Lets AI agents use your own Firefox: the sites you're signed in to, in tabs of their own.

An AI agent looks up the height of Mount Everest on Wikipedia, in Firefox

Set it up

You need Node.js 20 or later and Firefox 140 or later.

1. Get the server

git clone https://github.com/dh1011/firefox-mcp
cd firefox-mcp
npm install
npm run build

2. Add the extension to Firefox

Install MCP for Firefox from addons.mozilla.org. To run your own build instead, see other ways to load the extension.

3. Add it to your AI app

In your AI app's MCP settings, add:

{
  "mcpServers": {
    "firefox": {
      "command": "node",
      "args": ["/path/to/firefox-mcp/dist/server/index.js"]
    }
  }
}

4. Approve it

The first time an agent uses the browser, the MCP for Firefox button in the toolbar shows !. Click it, check that the code matches the one your AI app shows, and click Allow. You only do this once.

Related MCP server: Cloudflare Playwright MCP

Use it

Ask your agent for something in plain words:

  • "How tall is Mount Everest? Look it up on Wikipedia."

  • "Open my GitHub notifications and tell me what's new."

  • "Find a table for two at an Italian place near me on Saturday."

Agents work in tabs of their own, grouped under the AI app's name, and leave your other tabs alone.

Stay in control

  • Click the toolbar button and press Stop to halt agents at any time.

  • Agents can do what you can on the sites you're signed in to, including uploading files from your computer. A page can try to trick an agent, so keep an eye on what it does on sites that matter.

  • It never opens Firefox's own pages, other extensions, or Mozilla's add-on and account sites.

More detail: how it works, and what it does and doesn't protect against.

License

Apache-2.0, with third-party attributions in NOTICE. Not affiliated with or endorsed by Mozilla.

Available Tools

1 tool
browserA
Destructive

Controls the user's Firefox. Runs one command per line, stopping at the first error. Actions print one ✓ line, reads print their output. Do many steps per call. goto | back | forward | reload click fill "" [--submit] type "" press select "" check | uncheck wait | wait --text "" | wait tab list | tab new [] | tab select | tab close snapshot [] [-i] [--depth N] find "" get text|value|count|url|title [] screenshot [] eval "" # runs in the page More (help ): scroll, hover, drag, upload, dialog, console, requests, request Targets: e12 (a snapshot ref), getByRole('button', { name: 'Go' }), getByLabel/getByText/getByPlaceholder('…'), or CSS. Quote text with spaces: "like this".

Inputs: commands (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 1 tool

    Disambiguation5/5

    There is only one tool, so there is no possibility of selecting the wrong tool. The internal command grammar is documented with clear, non-overlapping verbs (goto, click, fill, get, snapshot, etc.).

    Naming Consistency4/5

    The single tool is a noun ('browser'), not the typical verb_noun pattern, but as a unified dispatcher that is a reasonable and readable choice. Its subcommands are consistently lowercase verb-based (goto, click, fill, select, wait, eval), with only minor mixes like 'tab list' versus bare verbs.

    Tool Count4/5

    One consolidated command-dispatch tool is a defensible design for browser automation: it avoids an explosion of 30+ granular tools and encourages multi-step scripting. It is somewhat heavy per call, but the surface is well-organized rather than thin, so it is not a trivial single tool.

    Completeness4/5

    Covers navigation, clicking, form fill/select/check, typing, keypress, waits, tabs, snapshots, text queries, screenshots, JS eval, and more (scroll, hover, drag, upload, dialog, console, requests) via help. Minor gaps exist around storage/cookies, downloads, and explicit navigation-assertion helpers, but core automation workflows are covered.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI assistants to control a browser through a set of tools, allowing them to perform web automation tasks like navigation, typing, clicking, and taking screenshots.
      Apache 2.0
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI assistants to control a browser through a set of tools, allowing them to perform web automation tasks like navigation, typing, clicking, and taking screenshots.
      Apache 2.0
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI assistants to control a browser through a set of tools, allowing them to perform web automation tasks like navigation, typing, clicking, and taking screenshots.
      Apache 2.0
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI assistants to control a browser through a set of tools, allowing them to perform web automation tasks like navigation, typing, clicking, and taking screenshots.
      Apache 2.0