Skip to main content
Glama

Auto Browser

CI License: MIT MCP Server Local First Glama Open in GitHub Codespaces

Auto Browser demo

Geben Sie Ihrem KI-Agenten einen echten Browser, mit einem Menschen in der Schleife.

Auto Browser ist eine MCP-native Browser-Steuerungsebene für autorisierte Workflows. Sie bietet MCP-Clients, LLM-Agenten und Operatoren einen gemeinsam genutzten Playwright-Browser mit menschlicher Übernahme, wiederverwendbaren Authentifizierungsprofilen, Genehmigungen, Audit-Protokollen und Local-First-Bereitstellung.

Funktioniert mit:

  • Claude Desktop

  • Cursor

  • jedem MCP-Client, der HTTP oder stdio unterstützt

  • direkten REST-Aufrufen, wenn Sie eine curl-first-Steuerung bevorzugen

Warum Auto Browser

  • Von Anfang an MCP-nativ. Die Browser-Oberfläche ist bereits als MCP-Server verpackt, anstatt nachträglich hinzugefügt zu werden.

  • Menschliche Übernahme, wenn das Web spröde wird. noVNC hält dieselbe Live-Sitzung verfügbar, wenn eine Person eingreifen muss.

  • Einmal einloggen, später wiederverwenden. Speichern Sie benannte Authentifizierungsprofile und öffnen Sie neue Sitzungen, die bereits angemeldet sind.

  • Standardmäßig Local-First. Führen Sie den gesamten Stack auf Ihrem eigenen Rechner mit Docker Compose aus oder nutzen Sie Codespaces für eine schnelle gehostete Demo.

  • Integrierte Sicherheitsvorkehrungen. Genehmigungen, Identität des Operators, PII-Bereinigung, Witness-Belege und Compliance-Vorlagen sind Teil der Produktoberfläche.

Related MCP server: Browser-Use MCP Server

Release-Highlights (v1.0.2)

  • Framework-Sicherheitsupdates mit FastAPI und Starlette, die auf die aktuelle gepatchte Linie festgelegt sind

  • Sicherere Fehlergrenzen über Browser-Aktionen, CDP, OCR, Mesh, Workflow, Tunnel, Social und Share-Token-Oberflächen

  • Ratenbegrenzungs-Härtung mit begrenzten Buckets und gehashten Operator-Identifikatoren

  • Verschärfung der Host- und Pfadrichtlinien für produktive ALLOWED_HOSTS, Authentifizierungsprofilpfade und Upload-Roots

  • 1.0 Plattform-Oberfläche einschließlich signierter Mesh-Delegierung, Workflow-Routen, /dashboard, noVNC-Übernahme, MCP-Transport, Audit-Protokollen und Bereitschaftsprüfungen

Siehe CHANGELOG.md für die vollständige Release-Historie.

Gute Einsatzmöglichkeiten

  • interne Dashboards und Admin-Tools

  • operator-unterstützte Qualitätssicherung und Browser-Debugging

  • Einmal-Login, später wiederverwenden von Account-Workflows

  • spröde Websites, bei denen ein Mensch den Ablauf wiederherstellen muss

  • MCP-gestützte Agenten-Workflows, die einen echten Browser benötigen, nicht nur HTML-Abrufe

Nicht das Ziel

  • Stealth- oder Anti-Bot-Arbeit

  • CAPTCHA-Lösung

  • unbefugtes Scraping oder Account-Automatisierung

  • täuschende Identitätsgestaltung oder Umgehungstools

Was Sie bekommen

Browser-Steuerung

Sicherheit für Operatoren

Bereitstellung und Integration

Playwright-gestützte Sitzungen mit Screenshots, DOM-Zusammenfassungen, OCR-Auszügen, Tab-Steuerung, Downloads und Netzwerk-Inspektion

Genehmigungsgates, Operator-Identitäts-Header, Audit-Ereignisse, PII-Bereinigung, Witness-Belege und Schutzprofile

MCP über HTTP, gebündelte stdio-Brücke, REST-API, Docker Compose, Codespaces, Authentifizierungsprofile und optionale Isolierung pro Sitzung

Schnellstart

git clone https://github.com/LvcidPsyche/auto-browser.git
cd auto-browser
docker compose up --build

Das reicht für die lokale Entwicklung mit den Standardeinstellungen.

Optional:

cp .env.example .env
make doctor

Führen Sie make doctor von einem normalen Terminal mit lokalem Docker-Zugriff und Berechtigung zum Öffnen von Localhost-Sockets aus.

Öffnen:

  • API-Dokumentation: http://127.0.0.1:8000/docs

  • Operator-Dashboard: http://127.0.0.1:8000/dashboard

  • Visuelle Übernahme: http://127.0.0.1:6080/vnc.html?autoconnect=true&resize=scale

Alle veröffentlichten Ports binden standardmäßig an 127.0.0.1.

In Codespaces ausprobieren

Open in GitHub Codespaces

Codespaces stellt den Stack automatisch bereit. Das Dashboard und die noVNC-Tabs sind normalerweise in etwa 90 Sekunden bereit.

Erste nützliche Demo

Der Ablauf mit der höchsten Signalwirkung in diesem Repo ist:

  1. eine Sitzung erstellen

  2. manuell einloggen, falls die Website einen Menschen benötigt

  3. die Sitzung als benanntes Authentifizierungsprofil speichern

  4. eine neue Sitzung aus diesem Authentifizierungsprofil öffnen

  5. Arbeit fortsetzen, ohne sich erneut authentifizieren zu müssen

Starten Sie hier:

Minimale Sitzungserstellung:

curl -s http://127.0.0.1:8000/sessions \
  -X POST \
  -H 'content-type: application/json' \
  -d '{"name":"demo","start_url":"https://example.com"}' | jq

Minimale Beobachtung:

curl -s http://127.0.0.1:8000/sessions/<session-id>/observe | jq

MCP-Clients

Auto Browser bietet:

  • einen HTTP-MCP-Endpunkt unter http://127.0.0.1:8000/mcp

  • Komfort-Endpunkte unter http://127.0.0.1:8000/mcp/tools und http://127.0.0.1:8000/mcp/tools/call

  • eine gebündelte stdio-Brücke unter scripts/mcp_stdio_bridge.py

Das Standard-MCP-Toolprofil ist curated, was die Browser-Oberfläche kompakt hält, um eine bessere Tool-Auswahl zu ermöglichen. Wenn Sie die vollständige interne Tool-Oberfläche wünschen, setzen Sie:

MCP_TOOL_PROFILE=full

Beispiel für einen rohen Tool-Aufruf:

curl -s http://127.0.0.1:8000/mcp/tools/call \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
    "name":"browser.create_session",
    "arguments":{
      "name":"demo",
      "start_url":"https://example.com"
    }
  }' | jq

Anleitungen zur Client-Einrichtung:

Sicherheit und Compliance

Für eine echte private Bereitstellung setzen Sie mindestens:

APP_ENV=production
API_BEARER_TOKEN=<strong-random-secret>
REQUIRE_OPERATOR_ID=true
AUTH_STATE_ENCRYPTION_KEY=<44-char-fernet-key>
REQUIRE_AUTH_STATE_ENCRYPTION=true
REQUEST_RATE_LIMIT_ENABLED=true
METRICS_ENABLED=true

COMPLIANCE_TEMPLATE kann beim Start eine vorkonfigurierte Haltung anwenden:

Vorlage

Auth-Verschlüsselung

Operator-ID

PII-Bereinigung

Isolierung

Max. Sitzungsdauer

HIPAA

erforderlich

erforderlich

alle Ebenen

docker_ephemeral

4h

PCI-DSS

erforderlich

erforderlich

alle Ebenen

docker_ephemeral

1h

SOC2

-

erforderlich

Netzwerk + Text

geteilt

24h

GDPR

-

-

alle Ebenen

geteilt

24h

Alle Vorlagen erfordern Upload-Genehmigungen. HIPAA, SOC2 und PCI-DSS aktivieren zusätzlich Witness-Belege. Beim Start wird die angewendete Richtlinie in /data/compliance-manifest.json geschrieben.

Beispiel:

COMPLIANCE_TEMPLATE=HIPAA docker compose up

Details zur Bereitstellung, gehostete Witness-Hinweise, CLI-Auth-Modi und Anleitungen für Reverse-SSH finden Sie unter:

Architektur auf einen Blick

flowchart LR
    User[Human operator] -->|watch / takeover| noVNC[noVNC]
    LLM[OpenAI / Claude / Gemini] -->|shared tools| Controller[Controller API]
    Controller -->|Playwright protocol| Browser[Browser node]
    noVNC --> Browser
    Browser --> Artifacts[(screenshots / traces / auth state)]
    Controller --> Artifacts
    Controller --> Policy[Allowlist + approval gates]

Kernkomponenten:

  • browser-node/ führt Chromium, Xvfb, x11vnc und noVNC aus

  • controller/ stellt den FastAPI-Controller, MCP-Transport, Richtlinien-Schienen und Orchestrierungs-Endpunkte bereit

  • data/ enthält Laufzeit-Artefakte, Auth-Status, Genehmigungen, Audit-Protokolle und optionale CLI-Caches

  • scripts/ enthält lokale Helfer für Doctor, Smoke-Tests, Brücken und Release-Prüfungen

Repo-Leitfaden

Pfad

Inhalt

controller/

Controller-API, MCP-Transport, Tests und Paketierung

browser-node/

Browser-Laufzeit und Playwright-Verbindungsebene

examples/

Copy-Paste-Abläufe und MCP-Client-Einrichtung

integrations/langchain/

LangChain-, LangGraph- und CrewAI-Adapter

docs/

Architektur-, Bereitstellungs-, Härtungs- und Start-Dokumente

scripts/

Doctor, Smoke-Harnesses, stdio-Brücke und Auth-Helfer

ops/

unterstützende Service-Vorlagen und operative Assets

Häufige Befehle

Befehl

Zweck

make help

verfügbare Repo-Befehle auflisten

make lint

Ruff-Prüfungen auf App, Tests und Hilfsskripte ausführen

make test

Controller-Tests in Docker ausführen

make test-local

Controller-Tests auf Host Python 3.10+ ausführen

make doctor

lokale Bereitschafts-Smoke-Prüfung ausführen

make release-audit

den vollständigen Release-Validierungsdurchlauf ausführen

make smoke-isolation

Docker-Isolierung pro Sitzung verifizieren

make smoke-reverse-ssh

Reverse-SSH-Fernzugriff verifizieren

Dokumentationskarte

Wenn Sie...

Starten Sie hier

die Systemform verstehen möchten

docs/architecture.md

Claude Desktop oder Cursor verbinden möchten

docs/mcp-clients.md

die curl-first-Beispiele ausführen möchten

examples/README.md

auf einem vertrauenswürdigen Host bereitstellen möchten

docs/deployment.md

Produktionsbeschränkungen überprüfen möchten

docs/production-hardening.md

die Release-Historie einsehen möchten

CHANGELOG.md

sehen möchten, wohin sich das Projekt entwickelt

ROADMAP.md

Mitwirken

Wenn Sie helfen möchten, beginnen Sie mit:

Wenn Auto Browser nützlich ist, hilft ein Stern anderen dabei, es zu finden.

Available Tools

20 tools
browser.activate_tabA

Bring one tab to the foreground so subsequent observations and actions target it. Tab indexes come from browser.list_tabs. Returns the activated index, the updated session summary, and the current tab list.

Inputs: index (required), session_id.

browser.close_sessionB
Destructive

Close a session and finalize its trace/artifacts.

Inputs: session_id, approval_id, workflow_profile.

browser.close_tabB
Destructive

Close one tab index if more than one tab is open.

Inputs: index (required), session_id, approval_id, workflow_profile.

browser.create_sessionA

Create a new browser session and optionally navigate to a start URL.

Inputs: name, start_url, totp_hosts, user_agent, +9 more.

browser.eval_jsA

Execute a JavaScript expression in the current page context and return the result. Every call needs operator approval for that exact expression: the first call returns status approval_required with an approval_id; retry with approval_id once it is approved. Prefer find_elements, get_html or observe for reading the page — they need no approval.

Inputs: expression (required), session_id, timeout_ms, approval_id, +1 more.

browser.execute_actionA

Execute one browser action (navigate, click, hover, type, press, select_option, scroll, …) in a session, using the same action schema the agent planner emits. Actions are policy-checked and audited, and governed actions may require a granted approval_id. Call browser.observe first to get targetable element IDs and selectors. Returns the action's verification (what changed) and an observation of the page after it (up to 20 interactables).

Inputs: action (required), detail, session_id, approval_id, +1 more.

browser.find_elementsA

Find elements either by CSS selector or by a text/regex query across the page's text content. selector mode returns matching elements' text, href, value, bounding box, and visibility -- useful before clicking or scraping multiple items. query mode (set query, optionally regex and context) returns the matched text plus surrounding context for each hit -- a cheap way to locate a specific string on the page without a full observe.

Inputs: limit, query, regex, context, +2 more.

browser.fork_sessionA

Fork a session: snapshot its cookies, storage state, and current URL, then create a new independent session with that state. Useful for branching workflows or running parallel variants. Without start_url, a page that is no URL to open (blank, data:, Chrome's error page) forks onto a blank page. Counts as a new session: needs MAX_SESSIONS of at least 2.

Inputs: name, start_url, session_id, user_agent, +2 more.

browser.get_htmlA
Read-onlyIdempotent

Read the current page: its serialized DOM (the whole document, not just the viewport), or with text_only=true its visible text — the cheapest way to read a page's content. Returns up to max_chars (default 20,000) from offset; when truncated is true, call again with offset=next_offset for the rest. On Chrome's error page for a navigation the pre-request gate stopped, blocked_navigation says what was stopped and why.

Inputs: offset, max_chars, text_only, session_id.

browser.get_sessionA
Read-onlyIdempotent

Get the full record for one browser session by ID: the live session summary (status, current page, tabs) when the session is active, or the persisted session record when it has been closed. Use browser.list_sessions to discover session IDs.

Inputs: session_id.

browser.list_auth_profilesA
Read-onlyIdempotent

List reusable saved auth profiles that can be loaded into a new session.

Inputs: no named parameters.

browser.list_downloadsA
Read-onlyIdempotent

List files captured from browser downloads for one session.

Inputs: session_id.

browser.list_sessionsA
Read-onlyIdempotent

List live and persisted browser sessions, one reference each (id, name, status, live, current page, takeover URL). browser.get_session returns a full record.

Inputs: no named parameters.

browser.list_tabsA
Read-onlyIdempotent

List currently open tabs/pages for one session.

Inputs: session_id.

browser.observeA
Read-only

Capture the current browser observation: interactables, tabs, console, and a perception summary. Presets: 'text' — no screenshot or OCR: interactables, accessibility tree and the first 2,000 characters of page text; for text-only models. 'fast' — screenshot only, returned as an image, no text/accessibility extraction; for vision models. 'normal' (default) — text plus a screenshot URL and OCR. 'rich' — normal with twice the interactables and 4,000 characters of text. To read a whole page, use browser.get_html with text_only=true. On Chrome's error page for a navigation the pre-request gate stopped, blocked_navigation says what was stopped and why.

Inputs: limit, detail, preset, session_id.

browser.read_downloadA

Read a downloaded file as text (CSV, JSON, TXT, HTML, ...), by download_id from browser.list_downloads or, if omitted, the latest completed download. Paged like browser.get_html. Binary files (PDF, XLSX, images) are refused with their artifact URL. With PII scrubbing on, the text is scrubbed; pii_scrub says whether it was and how many redactions were made.

Inputs: offset, max_chars, session_id, download_id.

browser.request_human_takeoverC

Ask for a human to take over the shared browser desktop.

Inputs: reason, session_id, approval_id, workflow_profile.

browser.save_auth_profileB

Save the current session storage state into a reusable named auth profile.

Inputs: profile_name (required), session_id, approval_id, workflow_profile.

browser.screenshotA
Read-only

Capture the current viewport and return it as an image (plus its artifact URL), without the full observe payload.

Inputs: label, session_id.

browser.wait_for_selectorA
Read-only

Wait for a CSS selector to reach a specific state (visible, hidden, attached, detached). Returns when the condition is met or raises on timeout.

Inputs: selector (required), state, session_id, timeout_ms.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools target clearly distinct concerns (sessions, tabs, observation, downloads, auth profiles). The read-side tools (observe, screenshot, get_html, find_elements) overlap somewhat, but each description explicitly scopes itself and cross-references the alternatives, so an agent can reliably choose.

    Naming Consistency5/5

    Every tool follows a consistent verb_noun snake_case pattern under a uniform browser. namespace (list_tabs, close_tab, create_session, read_download). No mixed conventions or casing.

    Tool Count4/5

    20 tools is on the heavy side, but the server legitimately spans sessions, tabs, observation, downloads, and auth profiles, and each tool maps to a real operation. Slightly over the comfortable range but not padded.

    Completeness4/5

    The session lifecycle (create/list/get/close/fork), tab management, observation, navigation/actions, downloads, and auth profiles are all covered. Minor gaps like deleting saved auth profiles or an explicit new-tab tool are workable around via execute_action.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      F
      maintenance
      This server provides cloud browser automation capabilities using Browserbase, Puppeteer, and Stagehand. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a cloud browser environment.
      1,158 npm
      3,397
      MIT
    • A
      license
      A
      quality
      F
      maintenance
      Enables LLMs like Claude to navigate the web through Puppeteer-based tools and Steel. Based on the Web Voyager framework, it provides tools for all the standard web actions click clicking/scrolling/typing/etc and taking screenshots.
      16
      58
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      A Model Context Protocol (MCP) integration that provides Claude Desktop with autonomous browser automation capabilities. This agent enables Claude to interact with web content, manipulate DOM elements, execute JavaScript, and perform API requests.
      13
      43
      TypeScript
      Mozilla Public 2.0