Logo von BrowserMCP

BrowserMCP

Community
jackwener

Connect MCP agents to your logged-in Chrome. Persistent JavaScript workspace, browser automation, and reusable site adapters.

Herausgeberjackwener
RepositoryBrowserMCP
SpracheTypeScript
Forks
12
Sterne
109
Verfügbare Tools
0
Transporttypstdio
LizenzApache-2.0
Links
  • Tools mit KI-Workflows verbinden

    BrowserMCP stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 0 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    109 Sterne und 12 Forks im verlinkten Repository.

BrowserMCP

A browser service for MCP agents, connected to the Chrome you're already logged into.

BrowserMCP lets MCP clients observe and operate your Chrome tabs through a local extension and host. Optional site adapters package verified workflows as reusable tools.

npm Chrome Web Store Node.js License: Apache-2.0

Quick start · Usage · Documentation · 中文指南

What you can do

  • Work with logged-in websites. Search, read pages, fill forms, and navigate through your existing browser session.
  • Use optional site commands. Discover built-in adapters for Twitter/X, Bilibili, and Reddit when a site-specific command helps.
  • Add site adapters. Inspect a site's requests, verify an API, and define an explicit reusable MCP tool.
  • Keep browser work organized. Agent-created tabs live in named groups and are cleaned up after use. Tabs borrowed from the user are never closed by session cleanup.

Works with MCP clients including Claude Code, Codex, OpenCode, Cursor, Claude Desktop, DeepSeek Harness (dsh), and Pi (with pi-mcp-adapter). Agents use a persistent JavaScript REPL for browser work and structured site tools for verified workflows.

The npm package is @jackwener/browsermcp; the command is browsermcp.

Quick start

You need Node.js 22 or newer, Google Chrome, and an MCP client. The local host also supports Chromium-based browsers such as Edge and Brave; see installation details.

1. Install the Chrome extension

Install BrowserMCP Connector from the Chrome Web Store →

For an extension version ahead of the Web Store, download the manual-install zip from GitHub Releases and follow the manual installation steps.

2. Install the npm package and set up the connection

bash
npm install -g @jackwener/browsermcp
browsermcp setup

Keep Chrome open. setup connects the extension to the local program, asks which MCP clients to configure, registers only your selection, and checks the browser connection. If you have not installed the extension yet, it opens the Chrome Web Store for you.

For Cursor, Claude Desktop, and other MCP clients, choose manual and copy the configuration printed by setup into your client's MCP settings. It uses absolute paths so desktop apps can find the program.

For OpenCode, run browsermcp setup --clients opencode. It adds a global MCP entry while preserving your other settings.

For DeepSeek Harness (dsh), run browsermcp setup --clients none, then add the same npm package to your dsh profile:

bash
dsh plugin --profile web add @jackwener/browsermcp

Restart dsh web. The package's dsh bundle uses dsh's MCP client to connect to the browser service. See the dsh setup details.

For Pi, install pi-mcp-adapter, then run browsermcp setup --clients pi. See the Pi setup steps.

3. Start using it

Restart or reconnect your MCP client, then ask:

Use BrowserMCP to read the top five Hacker News stories and summarize them with links.

You can rerun browsermcp setup to repair the browser registration or select newly installed clients to configure. Selected clients have their browsermcp entry updated to a stable launcher; other server entries are preserved. The launcher follows Homebrew upgrades within the same formula. If Node or the package moves, rerun setup. For a read-only startup and connection check, run browsermcp doctor.

Connection issues? See troubleshooting.

Local configuration

Data, configuration, and user adapters live in ~/.browsermcp. The launcher is ~/.browsermcp/bin/browsermcp-launcher (.cmd on Windows). Run browsermcp setup to register it with Chrome and your selected MCP clients.

This is a fresh configuration: old directories, environment variables, and adapter import aliases are not used. Remove obsolete MCP client entries manually. User adapters import @jackwener/browsermcp/adapter-sdk.

Usage

Tell your agent what you want to do; it discovers and calls the MCP tools. For example:

  • “Open Hacker News, read the newest stories, and keep the most useful page open for me.”
  • “Search for site commands that work with Bilibili.”
  • “Explore this website's search, then create a reusable tool for the same query workflow.”

For integrations and custom workflows, the main tools are:

TaskTools
Browser workspacejs, js_reset
Discover and run site commandssites_search, site_run
Learn the APIdocs_get (quickstart, topics, or an exact API member)
Diagnose connection and executiondoctor
Finish a browser sessionsession_finalize

The browser workflow is observe → act → verify → finalize, expressed in js using the same object model as adapters:

js
let tab = await browser.tabs.new('https://example.com/');
await tab.observe();

Variables, functions, classes and Tab handles persist across calls. After inspecting the result, use await tab.act(...) and await tab.expect(...) or observe again. Keep working data in variables and return only relevant evidence. docs_get {} provides a compact quickstart; {name:"api-reference",member:"Tab.act"} provides exact types. No repository documentation access is required.

Use browser.user.openTabs({query,limit}) and browser.user.claimTab(...) for user tabs. The lookup returns a discovery envelope: read items, matched, totalInScope, excluded and hasMore. It returns up to 20 recent matches by default; continue with offset: nextOffset. tab.release() leaves a tab open; tab.close() closes it. session_finalize closes agent tabs not kept and releases borrowed tabs. js_reset stops JavaScript and clears bindings while leaving tabs open; already dispatched operations may still complete. All API methods are awaited.

Inside the js tool, you can also call site commands directly:

js
await sites.enable('reddit');
const posts = await sites.reddit.hot({ subreddit: 'programming', limit: 5 });
posts;

See the JavaScript guide, API reference, and tool authoring guide for complete examples.

How it works

text
MCP client → browsermcp launcher → local host ⇄ Chrome extension → website
                stdio              Native Messaging             your session

Chrome starts the local host through Native Messaging. The extension operates browser tabs using Chrome's debugger APIs and Playwright's injected locator engine. The host exposes browser operations, site commands, and tool authoring through MCP. Each MCP client connection has its own tab and JavaScript session, so one client's cleanup does not close another client's tabs.

The MCP launcher can start before Chrome. It keeps the client connection open and reconnects when the Chrome-owned host appears or restarts. Browser operations and site adapters use that host; run browsermcp doctor if it stays unavailable.

Connections are local-only: standard MCP stdio to the launcher, then Unix domain socket (macOS/Linux) or named pipe (Windows) to the host. No port or token configuration. See browser selection and configuration.

Browser access and permissions

The extension requests browser permissions including debugger, cookies, and access to all URLs so it can operate logged-in sites. Connected agents can act with the access available in your browser session.

Site commands execute directly without additional approval prompts. The read/write classification describes their effects. See configuration.

Documentation

GuideContents
Installation and configurationSource installs, browser profiles, local connections, settings, troubleshooting
中文指南Chinese project overview and detailed usage
Site commandsDiscovering, enabling, and running adapters
JavaScript guidePersistent sessions and the object API
API referenceGenerated reference for browser and tool APIs
Creating toolsDefine and verify reusable site adapters
Tab lifecycleClaiming tabs, grouping, and cleanup
ErrorsError codes and recovery

Development

bash
git clone https://github.com/jackwener/browsermcp.git browsermcp
cd browsermcp
npm install
npm run typecheck

npm install builds the project through its prepare script. To connect a development build to Chrome, follow the unpacked-extension instructions.

bash
npm run build:ext        # rebuild the extension
npm test                 # core regression tests
npm run smoke:setup      # isolated setup and Native Messaging end-to-end check
npm run smoke:browser    # end-to-end check with a connected Chrome extension

Keep the automated suite focused on MCP browser flow, REPL persistence and interruption, connection recovery, session isolation, tab cleanup, and adapter execution. Prefer these integration checks over per-adapter mapping tests and implementation-detail assertions. Run the tests relevant to your change. npm run check runs typecheck, build, and the full test suite when a broader check is needed. For browser changes, use the browser smoke test. docs/api-reference.md is generated during the build; update its TypeScript source rather than editing the generated file.

Maintainers: use the release workflow to publish the npm package and GitHub Release.

Found a bug or have a feature request? Open an issue. See CHANGELOG.md for release history.

License and credits

Apache-2.0. Some browser helpers and adapters were adapted from OpenCLI; no OpenCLI dependency or compatibility layer is required. Uses Playwright's injected locator engine. Endpoint analysis is inspired by jsluice.

Native browser APIs

The REPL also exposes browser.chrome.call(method, argsArray) for native Chrome APIs, tab.cdp.send(method, params) for an explicit Tab, and writable Main World tab.evaluate(script, {arg, timeoutMs}). Use browser.chrome.describe("tabs.query") for on-demand signatures and runtime availability. Chrome/CDP events and page/extension logs support bounded subscriptions with explicit loss/reset information. Read docs_get {name:"capabilities/chrome"} inside MCP for examples and lifecycle rules, or the native capabilities guide.

For development, npm run smoke:native runs the new flows in a disposable Chromium profile after a build. Set BROWSERMCP_SMOKE_CHROME to a Chromium executable when it is not available in the local Playwright cache. It does not modify the everyday browser profile or native-host registration.

BrowserMCP MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald BrowserMCP verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

BrowserMCP als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für BrowserMCP ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "browsermcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von BrowserMCP. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von BrowserMCP.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit BrowserMCP bei dieser Aufgabe helfen?
BrowserMCP
Gerne. Ich habe es gelesen.
Das habe ich mit BrowserMCP gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server BrowserMCP verwendet?

BrowserMCP ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich BrowserMCP MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie BrowserMCP mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum BrowserMCP MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald BrowserMCP verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich BrowserMCP MCP mit TypingMind?

BrowserMCP wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt BrowserMCP MCP in TypingMind bereit?

BrowserMCP stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um BrowserMCP MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls BrowserMCP eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇