Skip to main content
Glama

Kitsune

Kitsune: an orange fox in a browser window, connecting your browser and your AI agent

kitsune-browser-mcp on PyPI kitsune-browser on PyPI Python Release License: MIT Website Docs

Delegate browser tasks. Keep your browser yours.

Kitsune is an MCP server and browser extension that connects Claude Code, Codex, Pi and other MCP clients to the Firefox, Zen or LibreWolf browser you already use. It's built for personal browser tasks—researching products, comparing pages, and drafting forms—rather than cross-browser testing. Your agent opens its own background tabs while you keep working in yours.

Claude Code asks for the user's Wikipedia tab after researching in background tabs; the user approves in Kitsune's toolbar popup, the agent jumps the tab to the right section, and the user takes the tab back and closes the agent's tabs from the popup

Your agent asks for a tab. You approve, then take it back. Watch the 45-second demo →

Why Kitsune?

I built Kitsune after getting tired of switching back to my tab whenever my Playwright setup took focus, and opening Chrome for my agent when I already used a Firefox-based browser. I wanted browser automation that worked alongside me, not in my way.

  • Keep working while the agent works. Agent-created tabs open in the background. Selecting a tab for the agent doesn't switch the tab you see.

  • Your tabs stay yours. By default, the agent can read your tabs but cannot type, navigate, scroll or close them. It must request a handoff before changing one; you approve and can take it back.

  • Stay in Firefox, Zen or LibreWolf. Reuse your existing sessions without opening a separate Chrome browser or installing WebDriver.

  • A small tool surface. Six tools: Python for browser actions, plus direct controls for user help and recovery.

Kitsune is designed to reduce interruptions, not eliminate them: site-opened popups and OS-level trusted input can still move focus. See the shared-browser limits.

Related MCP server: Browser Control MCP

Tied on success. Least input.

On 26 realistic web tasks Kitsune passed as many as Playwright MCP under Claude Code and Codex, and used the least input of four browser tools. Aside, EgoLite, Playwright MCP and Kitsune on 26 WebArena-Pro tasks: 208 attempts, graded by the sites' backend state and the agent's answer. How much less input depends on the agent: on the tasks every tool passed, Kitsune used 39% of Playwright MCP's input under Claude Code and 87% under Codex, with about half its tool calls under both.

Four-way benchmark, 26 WebArena-Pro tasks, 208 attempts. Passed, Claude Code / Codex: Kitsune 13/26 and 12/26; Playwright MCP 13/26 and 12/26; Aside 12/26 and 12/26; EgoLite 12/26 and 12/26. Mean input tokens per attempt: Kitsune 283k / 414k; Aside 463k / 512k; EgoLite 360k / 622k; Playwright MCP 660k / 809k. Mean tool calls: Kitsune 14.0 / 15.8; Aside 16.1 / 15.6; EgoLite 12.8 / 17.5; Playwright MCP 29.8 / 35.1.

claude-opus-5-5 and gpt-6.1-sol, one attempt per task (19 test, 7 dev). Input includes cache, not billed cost. Grading has no LLM judge, so it is stricter than the WebArena-Pro paper's and not comparable to its scores. Aside and EgoLite used the operator's browsers; Playwright MCP and Kitsune ran an isolated Firefox. EgoLite (under Claude Code) and Aside (under Codex) made slightly fewer tool calls than Kitsune. Results, methodology and limitations →

Get started

  1. Install uv.

  2. Install the browser extension in Firefox, Zen or LibreWolf.

  3. Add Kitsune to your agent. For Claude Code:

    claude mcp add --scope user kitsune -- uvx --from kitsune-browser-mcp kitsune

    Codex, Pi, OpenCode, Claude Desktop and Cursor are in Installation.

  4. Keep the browser open and ask in plain language:

    Research these three products in background tabs and compare them with links. Leave my current tab alone.

    Fill in a draft of this form. Don't submit it.

Trust note: Python runs locally, not in a sandbox; set KITSUNE_SCRIPTING=0 to disable it. Approvals do not prevent prompt injection. Use a separate profile for sensitive accounts and read the security guide.

Documentation

The website, junyeong-nero.github.io/kitsune, has an interactive demo of background tabs and handoff. The full documentation is at junyeong-nero.github.io/kitsune/docs:

Available Tools

6 tools
browser_ask_userA
Read-only

Ask the user to do what you cannot: sign in, pass a CAPTCHA (human_check), click a control that ignores your clicks (trusted_input), or choose (other).

Inputs: reason (required), message (required), tab_id.

browser_resumeA
Destructive

Continue a call whose result has call and resume_token (a needs_user stop, batch, parallel or workflow); nothing that ran ok is sent again.

Inputs: call (required), resume_token (required), wait, observed.

browser_run_pythonA
Destructive

Browse with Python: read, click, scroll, hover, drag, type, fill and wait in one call. Trusted local Python with host file/network access, NOT a sandbox. The supplied browser uses this client's session and permissions. time, re and json are preloaded; import other modules yourself. kitsune.connect() is not needed. Variables reset each call; tabs persist. tab is the MCP-selected Tab, else the tab the user views (None with several windows). Scripts need no browser_tabs list/select first: browser.tabs() lists tabs and browser.tab(id) reads or acts on any of them. browser.tabs() returns list[dict] (id, url, title, owned); browser.tab(id) wraps a tab ID, NOT a list index. browser.new_tab(url) returns a Tab; scripts do not change MCP selection. Return JSON via result or print selected output. Group actions whose targets are already known, then read the needed result once. Do not guess refs or replay a failed script. Refs die when an action loads a new document; only a link's ref is followed to the one same link with the same destination there (reported as remapped). Else use a selector or new snapshot. Print/result share 16,000 UTF-8 bytes: scope reads, filter locally, return evidence with coverage.

Action/scoped-snapshot targets: refs like e12 or supported selectors, not DOM ref attributes. tab.snapshot(target=None, max_depth=None, text=True) includes visible text; no depth/boxes args. tab.find(query) searches descriptions, not text/regex; filter scoped reads in Python for those. tab.query(selector, fields=['text', 'href'], limit=20) is CSS-only, current document; no refs. Its href/src are absolute URLs; tab.navigate(url) also takes a path like '/deals/48'. tab.text(); tab.forms(); tab.info(). tab.click(target); tab.double_click(target); tab.hover(target); tab.drag(source, destination). tab.scroll('down', 700, target=None) scrolls window or element; also up/left/right/top/bottom. tab.fill(target, value) replaces; tab.type(target, text): fields append, editors insert at caret. tab.fill_form({'#name': 'Ada'}); tab.check(target, True); tab.select_option(target, value, by_text=False). tab.press('Enter', target=None, modifiers={'ctrl': True}); omitted target uses focus, not the last target. tab.navigate(url); tab.back(). tab.wait_for(text='Done', timeout=10000) or target/url/text_gone (one condition, timeout in ms). wait_for(target=...) accepts CSS/refs, not :has-text or text=/role=; actions may use those. Example: tab.fill('e12', 'Ada'); r = tab.click('e15'); result = r['snapshot']. click/fill/type/check/select_option/press/hover/navigate return what changed, with refs, in r['snapshot'] (the new page after a navigation; max 4,000 chars). A script that prints nothing and sets no result returns its last action's snapshot. Call tab.snapshot() only if that is not enough. help(tab.scroll) prints a specific method's signature. Prefer this API over page evaluate.

Limits: 16 KB output/result, 100 API calls, fresh variables, no top-level await. A failed read or wait_for raises KitsuneError (TimedOut on a timeout); try/except may catch it. Any other failed call, and any needs_user or policy refusal, stops even if caught; earlier writes remain. For needs_user use the failed operation's direct tool via browser_tools_call, then run ONLY remaining work. Never put confirm/resume tokens in scripts. Use browser_tabs for handoff (request), browser_ask_user for human help, and browser_take_screenshot for images. For a page dict t from browser.tabs(), use browser.tab(t["id"]).snapshot(text=True).

Inputs: code (required), timeout.

browser_tabsC
Destructive

Manage tabs; request a handoff.

Inputs: action (required), url, index, reason, +2 more.

browser_take_screenshotA
Read-only

Take a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.

Inputs: scale (required), type, target, element, +2 more.

browser_tools_callA
Destructive

Recover one operation after a Python script stops for user approval/help. Pass an existing direct tool name alone to inspect its schema; pass arguments ({} for no args) to execute it with normal validation, approvals and error handling. Never replay completed script work. Use browser_run_python for ordinary reads, actions and waits.

Inputs: name (required), arguments.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct role: Python execution for browsing, human assistance, resuming stopped calls, tab/handoff management, screenshots, and recovery of direct tool operations. Although browser_run_python is broad, the descriptions explicitly route tab handoff, human help, screenshots, and recovery to the other tools.

    Naming Consistency4/5

    All names use a consistent browser_ prefix and snake_case, making the set predictable. A few names are noun-only or verb-only (browser_tabs, browser_resume), so it is not a strict verb_noun pattern throughout.

    Tool Count5/5

    Six tools is well-scoped for a browser automation server: one broad execution surface plus focused support tools for user interaction, resumption, tabs, screenshots, and recovery. No tool appears redundant or excessive.

    Completeness4/5

    The set covers the core browser workflow: executing page actions, reading results, managing tabs, handling human interrupts, resuming calls, and capturing screenshots. Minor direct-operation gaps are handled through browser_run_python or browser_tools_call rather than standalone primitives.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      B
      maintenance
      Enables AI agents to control existing Chrome and Firefox browser sessions locally, including tab management, navigation, form filling, screenshots, and persistent scripts, without remote relays or debugging ports.
      36
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to operate a real, logged-in Firefox session through an extension, including tab and history management, page reading, screenshots, and clicking, typing, or scrolling on domains the user approves.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables coding agents to control the user's real Chrome or Firefox tabs, with their existing logins, to read pages, click, type, fill forms, take screenshots, inspect network traffic and run JavaScript. It works through a paired browser extension over a local WebSocket connection, so automation happens in the browser the user is actually looking at, including shadow DOM, cross-origin iframes, dialogs and single-page apps.
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI agents to automate and control a real Firefox instance over WebDriver BiDi through 177 browser_* tools spanning web pages, tabs, windows, bookmarks and history, settings, extensions, DevTools, translation, certificates, and more across 17 domains.
      178
      MIT