Skip to main content
Glama

🌐 Zen Browser MCP

License: MIT Runtime: Bun Protocol: MCP Browser: Zen / Firefox

Drive your live Zen Browser (and Firefox) tabs directly from AI Agents (Claude Code, Oh My Pi, Cursor, Zed) via the Model Context Protocol (MCP).

No Chromium required. No heavy vision/screenshot models. Pure DOM-level interaction with zero token waste.


✨ Features

  • 🦊 Native Zen Browser & Firefox Support: Built specifically for Gecko using a lightweight WebExtension (Manifest V2).

  • ⚑ Lightweight & Blazing Fast: Communicates over local WebSockets (127.0.0.1:9876). Actions execute in milliseconds.

  • 🎯 Visual Feedback: When the agent clicks an element, it glows with a bright yellow outline on your screen so you can watch it work.

  • 🧠 React & Vue Reactive Input: Input values are dispatched through prototype setters, guaranteeing that modern single-page apps (SPAs) register form changes.

  • πŸ”’ 100% Private & Local: All communication stays on your machine loopback. Zero cloud tracking, zero screenshots sent to LLMs.

  • πŸ› οΈ Dual Interface: Use it as a native MCP Server for AI models or as a standalone zen-agent CLI tool in your terminal.


Related MCP server: mcp-zen

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ AI Agent                  β”‚
β”‚ (Claude Code / OMP / ...) β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
              β”‚ stdio (JSON-RPC 2.0)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ zen-browser-mcp           β”‚
β”‚ (mcp-server.ts)           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
              β”‚ HTTP REST (127.0.0.1:9876)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Zen Bridge Server         β”‚
β”‚ (Bun WebSocket server)    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–²β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
              β”‚ WebSocket (ws://127.0.0.1:9876)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Zen Agent WebExtension    β”‚
β”‚ (Zen Browser / Firefox)   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Quick Start (1 Minute)

1. Clone & Run Installer

git clone https://github.com/KadirBerkpolat1/zen-browser-mcp.git
cd zen-browser-mcp
./install.sh

(If you don't have Bun installed, the script will automatically install it for you).

2. Start the Bridge Server

Run the server in the background:

nohup bun run server/bridge.ts serve >/dev/null 2>&1 &

(Or keep it open in a terminal window: zen-agent serve).

3. Load Extension into Zen Browser

  1. Open Zen Browser and navigate to:

    about:debugging#/runtime/this-firefox
  2. Click "Load Temporary Add-on..." (Bu Firefox'a GeΓ§ici Eklenti YΓΌkle...).

  3. Select extension/manifest.json (or the packaged zen-agent.xpi) inside the cloned repo.

4. Verify Connection

In your terminal, run:

zen-agent status

You should see:

βœ… Zen Browser bağlΔ±!
   Başlık : YouTube - Home
   URL    : https://www.youtube.com

πŸ”Œ AI Agent Configuration (MCP)

Claude Code

Run the native CLI command:

claude mcp add zen-browser bun run /absolute/path/to/zen-browser-mcp/mcp-server.ts

Cursor / Oh My Pi (OMP) / Zed

Add the server to your mcp.json (~/.omp/agent/mcp.json or .cursor/mcp.json):

{
  "mcpServers": {
    "zen-browser": {
      "command": "bun",
      "args": ["run", "/absolute/path/to/zen-browser-mcp/mcp-server.ts"]
    }
  }
}

🧰 Available MCP Tools

When connected, your AI agent has direct access to these typed tools:

Tool

Parameters

Description

zen_status

(none)

Returns connection status, current tab title, and active URL.

zen_goto

url: string

Navigates the active Zen tab to the specified URL.

zen_inspect

(none)

Scans visible buttons, links, search inputs, and returns numbered #id list.

zen_click

target: string | number

Highlights and clicks an element by #id, button text, or CSS selector.

zen_type

target, text, enter?

Focuses an input, types text, and optionally triggers Enter/submit.

zen_scroll

direction?, amount?

Smoothly scrolls the active page (up or down).

zen_eval

code: string

Runs custom JavaScript in the page context and returns the result.


πŸ’» Standalone CLI Usage (zen-agent)

You can also control Zen Browser directly from your terminal:

# Check connection
zen-agent status

# Navigate to website
zen-agent goto "https://www.amazon.com"

# Inspect actionable buttons and fields
zen-agent inspect

# Click by index number or text
zen-agent click 4
zen-agent click "Add to Cart"

# Type into search field and submit
zen-agent type "input[type='search']" "mechanical keyboard" --enter

# Scroll down
zen-agent scroll down 600

πŸ‡ΉπŸ‡· TΓΌrkΓ§e Γ–zet

Bu araç, Zen Browser (veya Firefox) kullanan geliştiricilerin açık olan sekmelerini Claude Code, OMP ve Cursor gibi yapay zeka ajanlarına bağlamasını sağlar.

  • Chromium şartΔ± yok: Zen Browser'Δ±n kendi motoruyla uyumludur.

  • Ekran gΓΆrΓΌntΓΌsΓΌ Γ§ekmez: SayfayΔ± HTML kodu ΓΌzerinden okur, kotayΔ± tΓΌketmez ve anΔ±nda tΔ±klar.

  • CanlΔ± Δ°zleme: Yapay zekanΔ±n tΔ±kladığı butonlarΔ±n etrafΔ±nda sarΔ± ışık yanar, ne yaptığınΔ± canlΔ± izleyebilirsiniz.

Kurulum:

git clone https://github.com/KadirBerkpolat1/zen-browser-mcp.git
cd zen-browser-mcp
./install.sh

πŸ›‘οΈ Security & Privacy

  • Safe By Design: The extension connects strictly to 127.0.0.1:9876. No external connections are made.

  • Prompt Safety Rule: Agents are instructed never to click final payment or checkout confirmation buttons without explicit user consent.


πŸ“„ License

MIT License Β© 2026 Kadir Berk Polat

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to control the Google Chrome browser through a Node.js WebSocket bridge and a dedicated browser extension. It provides tools for capturing screenshots, executing JavaScript, managing tabs, and extracting page content via the MCP protocol.
    2
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    Lets MCP clients control a live Zen/Firefox browser to navigate, click, fill forms, screenshot, and execute JavaScript through a persistent server and browser extension.
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI to control a real browser through MCP tools for clicking, typing, navigation, screenshots, and more. It supports a follow mode that tracks the active tab, plus fixed mode for controlling specific tabs.
    153 npm
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables local opencode agents to control a live Chrome browser via MCP tools, including tab management, JavaScript execution, clicking, form filling, page reading, screenshots, and console log retrieval.
    MIT