Skip to main content
Glama

pilotfish: browser automation MCP and SDKs for AI agents

npm: @gaiventures/pilotfish-mcp npm: @gaiventures/pilotfish npm: @gaiventures/pilotfish-mcp-managed MCP Registry: io.github.gAI-ventures/pilotfish License: MIT Ask DeepWiki

pilotfish is an AI browser agent and a browser automation MCP server: a real Chrome for AI agents and for your own code, with 72% fewer tokens and 55% fewer tool calls than Playwright MCP. Pages go out as compact outlines with refs, and after the first look only what changed, so an agent pays for each screen once.

  • Open MCP (@gaiventures/pilotfish-mcp): give any MCP agent (Claude Code, Codex CLI, Cursor, ...) a real Chrome on your own computer. Free, no account, no API key: your agent's own model reads each page and decides every step through the browser_* tools, and this server makes no model calls. A page that offers its own tools through WebMCP gets them listed with its snapshot, callable with browser_page_tool.

  • SDKs for TypeScript (@gaiventures/pilotfish on npm) and Python (pilotfish-ai on PyPI, imported as pilotfish): drive Chrome on your machine from code with the same tools, or send whole tasks to pilotfish's cloud browser over its REST API (tasks, batches, identities, saved tasks and schedules, webhooks), with the same names in both languages.

  • Install the MCP: npx -y @gaiventures/pilotfish-mcp (npm)

  • Install an SDK: npm install @gaiventures/pilotfish · pip install pilotfish-ai

  • Docs: https://pilotfish.gai.ventures/docs/open (the MCP), https://pilotfish.gai.ventures/docs/sdk (the SDKs), https://pilotfish.gai.ventures/docs/api (the REST API)

  • MCP Registry: io.github.gAI-ventures/pilotfish (listing)

  • Issues: https://github.com/gAI-ventures/pilotfish-ai/issues

Measured against Playwright MCP

On LangChain's 100 WebVoyager tasks (11 Nov 2026), both servers driven by the same model (GPT-6 Luna) on the same pages at the same time, with the same judge:

Median per task

pilotfish

Playwright MCP

Input tokens

24.1k (72% fewer)

85.5k

Tool calls

4.5 (55% fewer)

10

Time

95 s (11% faster)

107 s

Answers judged correct

66

63

The runner, task file and every result row are in benchmarks/. Method and other comparisons: pilotfish.gai.ventures/benchmarks and pilotfish.gai.ventures/compare.

Related MCP server: huashu-chrome

Install

Install in Cursor Install in VS Code Install in VS Code Insiders

Each button opens the app with the server filled in, for you to review and add.

Claude Code, in a terminal:

claude mcp add pilotfish -- npx -y @gaiventures/pilotfish-mcp

or as a plugin, from this repository's plugin marketplace, inside Claude Code:

/plugin marketplace add gAI-ventures/pilotfish-ai
/plugin install pilotfish-browser@pilotfish

Any other MCP client (Codex CLI, Cline, Windsurf, ...): add this to its MCP settings.

{
  "mcpServers": {
    "pilotfish": { "command": "npx", "args": ["-y", "@gaiventures/pilotfish-mcp"] }
  }
}

Node 22 or later and Google Chrome (or Chromium) on the same computer. Setup per client: https://pilotfish.gai.ventures/docs/open.

SDKs

TypeScript:

import { LocalBrowser, Pilotfish } from "@gaiventures/pilotfish";

// Chrome on your machine, through this repository's MCP: no key, no model calls.
const browser = await LocalBrowser.start();
await browser.navigate("https://news.ycombinator.com");
console.log((await browser.query("document.title")).value);
await browser.close();

// A whole task in pilotfish's cloud browser (an API key from Org settings → API keys).
const pf = new Pilotfish({ apiKey: process.env.PILOTFISH_API_KEY });
const task = await pf.tasks.run("Top story on Hacker News right now, with its points");
console.log(task.result?.result);

Python:

from pilotfish import LocalBrowser, Pilotfish

with LocalBrowser.start() as browser:
    browser.navigate("https://news.ycombinator.com")
    print(browser.query("document.title").value)

pf = Pilotfish()  # reads PILOTFISH_API_KEY
task = pf.tasks.run("Top story on Hacker News right now, with its points")
print(task["result"]["result"])

Docs: https://pilotfish.gai.ventures/docs/sdk. Sources: packages/sdk (TypeScript) and sdks/python (Python).

What is here

Folder

What

packages/mcp

The local MCP server (stdio, or Streamable HTTP with --http): the tools, settings and the hand-off to a person. Published as @gaiventures/pilotfish-mcp.

packages/mcp-managed

A stdio relay to pilotfish's hosted MCP, for clients that only speak stdio. Published as @gaiventures/pilotfish-mcp-managed.

packages/sdk

The TypeScript SDK: Pilotfish (the hosted REST API) and LocalBrowser (this repository's MCP over stdio). Published as @gaiventures/pilotfish.

sdks/python

The Python SDK, the same clients with the same names, sync and async. Published as pilotfish-ai on PyPI.

packages/cdp

A thin, typed Chrome DevTools Protocol client.

packages/browser

Launching Chrome and driving pages over raw CDP: frames, hit-tested input, settling after an action.

packages/perception

Structure-first page snapshots, element handles, and the evidence diff after each action.

packages/interrupts

Cookie banners and ads handled deterministically, with maintained rule sets.

packages/agent

The executor every tool runs through: policy before page-affecting actions, secrets typed as {{name}} and never shown to the model, evidence after.

plugins/pilotfish-browser

The server as a plugin for Claude Code (.claude-plugin/plugin.json, .mcp.json) and Cursor (.cursor-plugin/plugin.json, mcp.json), listed by the marketplace files .claude-plugin/marketplace.json and .cursor-plugin/marketplace.json.

.mcp.json

The server entry, read by directories that index this repository; opening the repository in Claude Code offers to start it too.

Local or managed?

This repository holds the local version, free and MIT licensed, and the SDKs for both. pilotfish managed is a paid service: pilotfish runs the whole task in its cloud browser and hands your agent the result.

Local (this repository)

Managed

Who does the work

Your agent's model, one step at a time.

pilotfish runs the whole task and returns the result (the browser_task tool).

Browser and IP

A fresh Chrome on your computer, on your own IP, closed when your agent disconnects.

pilotfish's cloud browser, which keeps running when your computer is off.

Sites that block bots

You clear each check yourself.

Handled by the managed service. See the managed docs and pricing page for what is included.

Sign-ins

You sign in each time and nothing is kept.

Saved logins in an encrypted vault, several accounts per site, authenticator-app codes and codes sent to your email or phone.

Watching and cost

The browser window.

Live view, replays, per-task cost and monthly spending limits.

Price

Free.

Pay as you go from $5 of credit. See the pricing page for usage charges.

Connect to managed at https://pilotfish-be.gai.ventures/mcp (sign in with your pilotfish account or use an organization API key), or over stdio with the relay: npx -y @gaiventures/pilotfish-mcp-managed. Docs: https://pilotfish.gai.ventures/docs. Pricing: https://pilotfish.gai.ventures/pricing.

Build and test

Node 22 or later.

npm ci
npm run build
npm test                                                         # unit tests
PILOTFISH_E2E=1 npx vitest run packages/mcp --testTimeout 120000 # the MCP against a real Chrome
PILOTFISH_E2E=1 npx vitest run packages/sdk --testTimeout 120000 # the TypeScript SDK's local client against a real Chrome
npm run package                                                  # the npm packages, in packages/*/npm-package
cd sdks/python && pip install -e ".[test]" && pytest              # the Python SDK (PILOTFISH_E2E=1 for its local client)

The browser tests use Google Chrome when it is installed; set PILOTFISH_CHROME to a Chromium binary to use another.

Contributing

This repository is a mirror: it is published from pilotfish's own repository, and every sync replaces its whole tree. Pull requests are welcome; see CONTRIBUTING.md. Security issues: SECURITY.md.

License

MIT, see LICENSE.

Available Tools

17 tools
browser_actionsSeveral actions in one callA
Destructive
Inspect

Several steps in order in one call, e.g. fill a form's fields and submit it; each gets the same checks as its own tool. Stops at the first that fails, after one that moves the page to another address (later refs would belong to the old page), and after one that raised a dialog, opened a new tab, had a server write refused or unanswered, left the page still loading, or left a check or sign-in on the page. Returns a line per step with what each earlier step did that must not be lost (dialogs, tab, refused writes, invalid fields, choices, field read-back), then the evidence and visible screen after the last one run (snapshot:false: the evidence only).

Inputs: actions (required), snapshot.

browser_clickClickA
Destructive
Inspect

Click an element by ref. Refuses with a reason (obscured, stale, not visible) instead of clicking the wrong thing. Returns evidence of what changed.

Inputs: ref (required), expect, escalate, snapshot.

browser_closeClose the browserA
Destructive
Inspect

Only to start over: closes the browser, and the next call starts a fresh one (cookies and logins are gone). It closes by itself when the client disconnects.

Inputs: no named parameters.

browser_findFind elementsB
Read-only
Inspect

Refs of elements anywhere on the page, outside the visible screen too, by the words they show or are labelled with, best match first. Separate several targets by commas.

Inputs: query (required).

browser_get_textPage textA
Read-only
Inspect

Readable text of the page (PDFs too), main content first, lists and tables kept as lists and rows, secrets masked, without refs. url opens that page first and reads it in the same call: use it for a page you will only read. A long page comes in parts: the reply says where the rest starts (offset). mode links lists only the links. To read a few values or a list, browser_query is far smaller.

Inputs: url, mode, offset, selector, +1 more.

browser_navigateOpen a URLA
Destructive
Inspect

Open an http(s) URL in the current tab. Returns evidence and a snapshot of the visible screen (elements carry refs like e12), with counts of what is above and below; snapshot:false returns the start of the page's text instead, for a page you will read or leave (browser_get_text reads on from where it stops). Words like cheapest, latest, highest-rated or most mean the site's own sort or tab for that order (a list's default order is usually something else, e.g. 'Best' or 'Featured'): open that tab or choose that sort (a label naming its best value is not the list), read the top, and say in the answer which sort, tab and filters it came from. The top is the answer only when that order ranks by what the task asks over everything inside its bounds; otherwise say how much was read and call the pick the best of those read, not the best. Break a tie in that order only by what the task asks; otherwise report the tie. Search, sort and filter addresses: you may build one from the task's own words (a query, a place, dates, a sort, a bound) or change a parameter this site has shown you in an address or link (browser_query gives a link's full href), its page number included. A search the site's form takes several steps for (a place, dates, guests, a sort, filters) is usually one call as such an address, where the form takes a call and a screen for each step. Before you use its results, check on the page that what you meant was applied: the heading, breadcrumb, selected sort or filter, and the results themselves (each one you count inside the bound); never the address or a search box, which can repeat a value the site ignored. When they do not match or a bound cannot be checked, use the site's own form, or say in the answer what could not be applied. Never write a sign-in, session, account, identity or tracking value yourself (tokens, ids, codes): keep one only as the site gave it, or leave it out. Over several sites, finish one and note the values the next needs before opening it. A task that names no site: search the web first with browser_search, not a search engine's own page, to pick the site, or answer from the search when that is enough; when search engines show a bot check, search inside a site that answers (its search box, or a search address it has shown you) rather than guessing addresses; open a site when the task needs one (a price for dates, a form, an account).

Inputs: url (required), expect, escalate, snapshot.

browser_pressPress a keyC
Destructive
Inspect

Press a key or shortcut on the focused element. Returns evidence.

Inputs: key (required), expect, escalate, snapshot.

browser_queryRead values with JavaScriptA
Read-only
Inspect

Read just the values you need (prices, counts, titles, a results list) with a read-only JavaScript expression returning JSON (at most 4000 characters): the cheapest way to read, far smaller than browser_get_text or a snapshot. It runs in a world of its own where clicks, typing, submits and network writes are refused.

Inputs: expression (required), schema.

browser_resumeContinue after the personA
Read-only
Inspect

When a result says NEEDS A PERSON (a sign-in, a one-time code or 2FA, a device approval, a CAPTCHA), tell the user in your reply what the page needs and that the pilotfish browser window is open on it; when they have done it there (or right after asking), call this and carry on: it waits until the page has moved on, then returns it. BLOCKED and STOP mean the site cannot be continued that way.

Inputs: timeout_s.

browser_screenshotScreenshotA
Read-only
Inspect

JPEG of the current viewport. Prefer browser_snapshot (cheaper, has refs); use this when layout or images matter.

Inputs: no named parameters.

browser_scrollScrollBInspect

Scroll about one screen. Returns evidence and the newly visible elements.

Inputs: direction (required), snapshot.

browser_selectSelect optionsB
Idempotent
Inspect

Choose option(s) of a by label or value. Returns evidence.

Inputs: ref (required), values (required), expect, escalate, +1 more.

browser_snapshotRead the pageA
Read-only
Inspect

The current page as a compact tree of headings, text and elements with refs (e12) to act on: three screens around the viewport, or everything with whole_page. Refs stay valid while their element is on the page. A tag marked @ is an element the page gave that ARIA role (<@button> is a div or span with role=button, not a native ).

Inputs: whole_page.

browser_tabsTabsAInspect

List the open tabs (the current one is marked). switch_to makes another tab current and returns its snapshot.

Inputs: switch_to.

browser_typeTypeA
Destructive
Inspect

Type into an input, textarea or editable element by ref, replacing its text. A text field is clicked first (or focused, when the click cannot reach it), so a browser_click on it just before is usually not needed; a native date, time, month, week, color or range input gets its value set directly, with no click. Returns evidence.

Inputs: ref (required), text (required), expect, submit, +2 more.

browser_waitWaitA
Read-only
Inspect

Wait 0.5-10 seconds (until/gone: up to that, returning once the text appears or goes), then return what changed. Only for a page still loading or saying it is working: actions already wait for the requests they start.

Inputs: seconds (required), in, gone, until, +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 17 tools

    Disambiguation4/5

    Most tools map to a single distinct action (click, type, select, press, scroll, navigate, tabs, close), and the descriptions explicitly rank the four read paths (browser_query vs browser_get_text vs browser_snapshot vs browser_screenshot) by cost and use case. The remaining soft spots are browser_actions overlapping with individual tools and browser_resume/browser_wait both being wait-style calls, but each is scoped clearly enough to avoid misselection.

    Naming Consistency4/5

    Every tool uses the same snake_case browser_ prefix, so the set is immediately recognizable and predictable. A few names are noun-style (browser_snapshot, browser_screenshot, browser_tabs, browser_actions) rather than verb_noun, which is a minor deviation but still readable and consistent in tone.

    Tool Count4/5

    17 tools is slightly above the comfortable band but justified for a full browser-automation surface: each covers a distinct capability (read, interact, batch, wait, tabs, search, human handoff). Nothing feels like padding, though browser_screenshot and browser_press are the closest to optional extras.

    Completeness4/5

    The surface covers navigation, four reading modes, all core input primitives, multi-step batching, search, human-in-the-loop resumption, and tab/window lifecycle. Gaps remain for hover-only menus, browser history (back/forward), file upload, and explicitly accepting dialogs — all workaroundable but real dead ends in some flows.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding assistants to control and inspect a live Chrome browser through Chrome DevTools. Provides browser automation, performance analysis, debugging capabilities, and network request monitoring.
      2,036,574 npm
      59,001
      Apache 2.0
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables any MCP-compatible AI agent to drive your own Chrome browser with your existing login state, filling forms, clicking elements, fetching data, and handling captchas without API keys or re-authentication.
      335 npm
      610
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to see and control the user's real Chrome/Brave/Edge profile over MCP, so they can read pages, click, type, take screenshots, audit layouts, debug CSS, and scrape paginated or infinite-scroll data. Because it drives the normal browser via the DevTools protocol with real input events, it works on modern JavaScript apps and on sites where the user is logged in.
      25
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables any MCP-capable AI client to drive the user's own Chrome or Edge browser through a set of browse_* tools — navigating, clicking, typing, extracting, and managing tabs with their existing logins on their own machine. Runs locally and self-hosted with a live viewport and pause/approve controls so every verified step stays under user watch.
      4
      MIT