Pilotfish MCP README

The full upstream README, mirrored for reference. Install config, tool schemas, adoption signals and our own overview live on the Pilotfish MCP listing page.

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 gAI-ventures/pilotfish-ai MCP server

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 taskpilotfishPlaywright MCP
Input tokens24.1k (72% fewer)85.5k
Tool calls4.5 (55% fewer)10
Time95 s (11% faster)107 s
Answers judged correct6663

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

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:

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

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

text
/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.

config.json
{
  "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:

server.ts
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:

server.ts
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

FolderWhat
packages/mcpThe 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-managedA stdio relay to pilotfish's hosted MCP, for clients that only speak stdio. Published as @gaiventures/pilotfish-mcp-managed.
packages/sdkThe TypeScript SDK: Pilotfish (the hosted REST API) and LocalBrowser (this repository's MCP over stdio). Published as @gaiventures/pilotfish.
sdks/pythonThe Python SDK, the same clients with the same names, sync and async. Published as pilotfish-ai on PyPI.
packages/cdpA thin, typed Chrome DevTools Protocol client.
packages/browserLaunching Chrome and driving pages over raw CDP: frames, hit-tested input, settling after an action.
packages/perceptionStructure-first page snapshots, element handles, and the evidence diff after each action.
packages/interruptsCookie banners and ads handled deterministically, with maintained rule sets.
packages/agentThe executor every tool runs through: policy before page-affecting actions, secrets typed as {{name}} and never shown to the model, evidence after.
plugins/pilotfish-browserThe 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.jsonThe 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 workYour agent's model, one step at a time.pilotfish runs the whole task and returns the result (the browser_task tool).
Browser and IPA 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 botsYou clear each check yourself.Handled by the managed service. See the managed docs and pricing page for what is included.
Sign-insYou 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 costThe browser window.Live view, replays, per-task cost and monthly spending limits.
ComplianceRuns on your machine, under your own controls.SOC 2 Type II compliant; how to get the report is on the security page.
PriceFree.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.

Terminal
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.

Acceptable use

pilotfish's open MCP is free software under the MIT License, but the license governs copyright only - it doesn't authorize what you automate. By using pilotfish you agree to:

  • automate only sites and accounts you're authorized to use, in line with each site's terms and applicable law;
  • never use it for spam, bulk account creation, collecting personal data you have no right to, credential harvesting or phishing, or getting around blocks, bans, paywalls or rate limits a site has placed on you.

Abuse of the managed service is covered by the pilotfish Terms of Service (https://pilotfish.gai.ventures/terms). Report security issues privately as SECURITY.md describes.

License

MIT, see LICENSE.