# FoxMCP

FoxMCP — an MCP server for Claude Code that hooks into your active Firefox session. Directs tabs, reads web pages, and queries history without spinning up a blank browser.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 38 repo stars
- Author: ThinkerYzu
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ThinkerYzu/foxmcp
- Updated: 2026-11-14
- Security check: automated, 2026-11-17 (text) — warning: a command downloads a script from github.com and runs it right away. Do not run such commands without an explicit yes from the human.
- HTML: https://affpapa.org/en/nevibecode/mcp/foxmcp

## What it does

FoxMCP attaches an AI assistant directly to your running Firefox session. The server grants access to currently open tabs, logged-in sites, bookmarks, containers, and navigation history. The system operates in two pieces: an extension inside Firefox and a local Python service communicating over WebSocket port `8765`.

Tools expose window control, tab grouping, DOM text extraction, JavaScript evaluation, screenshots, and local file attachment for uploads. Multiple clients can share a single browser instance using the `--single-instance` flag. Operating the server requires Python 3.10+, Firefox with the FoxMCP extension added, and the `uv` package runner.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add foxmcp -- uvx foxmcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from foxmcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add foxmcp -- uvx foxmcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from foxmcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "foxmcp": {
            "command": "uvx",
            "args": [
                "foxmcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from foxmcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "foxmcp": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "foxmcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from foxmcp <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add foxmcp uvx foxmcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from foxmcp <command>

## When to use it
- control existing tabs and windows in an active Firefox profile
- extract text and HTML from authenticated web pages
- search browser history and saved bookmarks
- attach local files to web upload forms

## Example prompts
- List the connected Firefox profiles and their open tabs
- Take a screenshot of the current tab and grab its text content
- Open https://example.org in a new tab

## Similar
- [Firefox DevTools MCP](https://affpapa.org/en/nevibecode/mcp/firefox-devtools-mcp.md) — MCP server · ★ 578 repo stars
- [invisible_playwright_mcp](https://affpapa.org/en/nevibecode/mcp/invisible-playwright-mcp.md) — MCP server · ★ 879 repo stars
- [camoufox-mcp](https://affpapa.org/en/nevibecode/mcp/camoufox-mcp.md) — MCP server · ★ 7 repo stars
- [browser-extension-builder](https://affpapa.org/en/nevibecode/skills/sickn33-browser-extension-builder.md) — skill · 2100 installs
- [awawausb-webusb-firefox](https://affpapa.org/en/nevibecode/skills/awawausb-webusb-firefox.md) — skill · 306 installs
- [ghostfox](https://affpapa.org/en/nevibecode/mcp/ghostfox.md) — MCP server · ★ 21 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
