Skip to main content
Glama
claude-for-firefox

claude-for-firefox

by d7omdev

Claude for Firefox

Let Claude use your own Firefox. Open tabs, read pages, click, type, fill forms, drag, upload files and take screenshots, in the browser you already use, with your existing sign-ins. You always see what Claude is doing, and you can stop it with one click.

Works with Firefox, Zen, LibreWolf, Floorp and Waterfox, and with Claude Code or any MCP client.

Unofficial project. Not affiliated with Anthropic or Mozilla.

Claude searching Wikipedia in Firefox: an arrow cursor with a "Claude" tag, a soft orange glow around the page, and the "Claude is using this tab · Stop" bar at the bottom

Why

  • Your real browser. No separate profile, no headless Chrome. Claude works in the Firefox you're signed in to, with your extensions and cookies.

  • You can see it. A cursor with a Claude tag glides like a person's to every click and drag, a soft glow marks the tab Claude is working in, and a bar at the bottom says so.

  • You stay in charge. Claude can read any tab, but asks before acting in one you opened. One click on Stop freezes it everywhere.

  • Nothing leaves your computer except what Claude reads, which goes to your own Claude app. There's no server, no account and no tracking.

Related MCP server: claude-in-firefox

Install

  1. Install the add-on from addons.mozilla.org.

  2. Install the helper (needs Node.js 18 or newer):

    npx claude-for-firefox install

    This registers the helper with Firefox (and Zen, LibreWolf, Floorp and Waterfox, if you have them) and adds it to Claude Code. There are no codes to copy and no ports to open.

  3. Restart Claude Code. The add-on's toolbar icon turns green ON. Then ask something like "Open Wikipedia in Firefox and summarise today's featured article."

The setup page opens by itself after you install the add-on. It shows live whether things are connected, and has a message you can paste into Claude Code so Claude runs the install for you.

Using Claude Desktop or another MCP app? The install command prints the exact settings to paste into that app's MCP config.

Uninstall: npx claude-for-firefox uninstall, then remove the add-on from about:addons.

You stay in control

The bar

While Claude works in a tab, a bar rises out of the bottom edge: "Claude is using this tab" with a Stop button. Minimise it to just the Claude logo whenever you like.

Stop

Press Stop and Claude is frozen in every tab immediately. That includes an action already halfway through. Claude is told you stopped it and to ask you how to continue. The toolbar icon shows a red STOP badge until you press Resume. Only a real click counts: Claude can't press Stop or Resume itself.

Permission per tab

Claude can always read your tabs. To act in a tab you opened, it needs your OK first: the bar asks "Claude wants to use this tab" with Allow and Don't allow. Tabs Claude opens itself need no question. A permission lasts while the tab stays on the same site, and the toolbar popup lists every tab Claude may use, each with Revoke.

Built-in limits

  • Claude can't type into password, payment or one-time-code fields. You fill those in.

  • It can only open web addresses, never links that launch apps or open local files.

  • If a page jumps to another site in the middle of an action, the action is stopped.

  • Pop-up questions ("Delete this item?") are answered Cancel by default, and only for two minutes after Claude acts. You can change this, or have them shown to you.

  • Secrets that look like tokens and passwords are blanked out in console and network logs. This is best effort.

  • If you allow the add-on in private windows, nothing about them is logged.

What Claude can do

Tools

Tabs

tabs_list, tab_open, tab_select, tab_close, navigate, resize_window

Read

screenshot, zoom (sharp close-up of a region), read_page, get_page_text, find

Act

click, type, key, scroll, hover, drag, form_input, file_upload

Debug

read_console_messages, read_network_requests

Local files

open_local: open a page from a folder you approved, such as a site you built

Speed

batch: up to 20 of the above in one go, checked before any of them runs

Status

connection_status, wait

Clicks and typing are simulated inside the page, so CSS-only hover menus don't open, and a few sites ignore simulated input.

Settings

Most people never need these. Approved folders are a list you add to and remove from. File uploads are a separate switch, off by default.

How it works

Claude Code ── MCP (stdio) ──▶ helper ── private local socket ──▶ helper ── native messaging ──▶ add-on
              (started by Claude)                          (started by Firefox)
  • The add-on does the work in the page: the cursor, the bar, clicks and screenshots.

  • The helper is the claude-for-firefox npm package. It has no dependencies and runs twice: once started by Claude as an MCP server, and once started by Firefox through native messaging.

  • The two copies of the helper talk over a socket that only your user account can open, and they also check a private key. Firefox only lets this add-on start the helper.

  • Installing again restarts the helper by itself, with no browser restart needed.

Repository

Folder

What

extension/

The add-on (Manifest V2). TypeScript in src/, pages, styles and icons in static/.

connector/

The claude-for-firefox npm package: MCP server, native messaging host, installer. TypeScript in src/.

Build from source

Needs Bun and Node.js 18+.

bun install
bun run check      # typecheck, build, tests, web-ext lint
  • Load extension/build/manifest.json from about:debugging → This Firefox → Load Temporary Add-on. bun run dev in extension/ rebuilds it when a file changes.

  • Install your local helper with node connector/dist/index.js install.

  • The add-on in extension/build/ is bundled one file per entry with bun build, not minified. To package it for upload, run bunx web-ext build --source-dir extension/build from extension/.

Known limits

  • Snap and Flatpak builds of Firefox look for native messaging in a different place, and aren't supported yet.

  • Windows and macOS support is written, but so far it's only been tested on Linux.

Thanks

License

MIT

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables an MCP client such as Claude Code to read and operate your real, everyday Firefox profile — reading pages, clicking, typing, navigating, switching tabs and taking screenshots — with per-action human approval and masking of password, one-time-code and credit card fields.
      1
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables Claude Code to drive a real Firefox browser through a local MCP server using synthetic DOM events for clicks and typing. Supports tab management, navigation, page reading, form interaction, screenshots, and per-site consent with no network port opened.
      4 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude Code to control the user's real Firefox browser through a local MCP server, with tools for tabs, navigation, page reading, clicking, typing, forms, screenshots, and file uploads under per-site consent.
      MIT