Logo Agent Web Interface

Agent Web Interface

Tổ chức
drisplabs

Token-efficient browser automation MCP for AI agents, with semantic page snapshots and stable element IDs.

Nhà phát hànhdrisplabs
Kho mãbrowser-mcp
Ngôn ngữTypeScript
Bản fork
1
Sao
17
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Agent Web Interface cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    17 sao và 1 bản fork từ kho mã được liên kết.

Drisp Browser

Drisp Browser is an MCP server that gives AI agents a compact, semantic interface to the browser.

Website · npm · vs. Playwright MCP

Instead of exposing the full DOM or accessibility tree, it returns structured page snapshots: visible regions, readable content, interactive elements, stable element IDs, form context, screenshots, canvas inspection, and network activity. Agents can then navigate and act on pages using semantic IDs instead of brittle selectors or massive context dumps.

It is built for coding agents, browser agents, QA agents, research agents, and automation workflows that need reliable web interaction without wasting tokens on low-signal browser internals.


Why this exists

Browser automation is easy for scripts and hard for LLM agents.

Traditional browser tools expose either raw DOM, full accessibility trees, screenshots, or low-level selectors. That works for deterministic code, but it is inefficient for language models. The model has to spend context and reasoning budget separating useful UI intent from implementation noise.

Drisp Browser changes the interface boundary.

The browser still runs through Puppeteer and Chrome DevTools Protocol, but the agent sees a smaller, more semantic representation of the page:

  • What regions exist on the page
  • What the user can read
  • What the user can interact with
  • Which elements are visible, enabled, selected, expanded, or required
  • Which stable eid should be used for the next action
  • What changed after the previous action

The goal is not to mirror the browser. The goal is to expose the page in the shape an agent can reason about.


The core abstraction

Drisp Browser turns a browser page into an agent-readable snapshot.

A snapshot contains compact semantic information such as:

  • Page regions: header, navigation, main content, footer
  • Interactive elements: buttons, links, textboxes, checkboxes, radios, comboboxes
  • Readable content: headings, paragraphs, alerts, labels
  • Element state: visible, enabled, checked, selected, expanded, focused
  • Layout hints: bounding boxes and screen zones
  • Stable element IDs: eid values that can be reused by action tools

Agents act on these IDs:

json
{
  "eid": "btn-sign-in"
}

rather than reasoning from fragile CSS selectors or repeatedly scanning a large DOM tree.

This makes browser use more predictable for agents because observation and action are connected through a stable semantic contract.


What it is

Drisp Browser is:

  • An MCP server for browser automation
  • A semantic observation layer over Puppeteer and CDP
  • A compact page representation for LLM agents
  • A stable eid-based action interface
  • A toolset for navigation, interaction, forms, screenshots, canvas, readability, and network inspection

Drisp Browser is not:

  • A replacement for Puppeteer
  • A general-purpose browser
  • A visual testing framework
  • A scraping framework
  • A CAPTCHA or anti-bot bypass tool

Puppeteer and CDP remain the execution layer. Drisp Browser changes what the agent sees and how it decides what to do next.


How it works

At a high level:

  1. The agent calls a browser tool through MCP.
  2. Drisp Browser controls Chrome through Puppeteer and CDP.
  3. The current page is reduced into semantic regions, readable content, and actionable elements.
  4. The agent receives a compact snapshot instead of a raw browser dump.
  5. The agent acts using stable element IDs.
  6. Drisp Browser waits for the page to stabilize and returns the updated state.

This keeps browser lifecycle, page representation, and action execution separated.

text
AI Agent
   ↓ MCP
Drisp Browser
   ↓ semantic snapshots + stable eids
Puppeteer / Chrome DevTools Protocol
   ↓
Chrome / Chromium

Example agent loop

A typical browser-agent loop looks like this:

  1. The agent calls navigate with a URL.
  2. Drisp Browser returns a compact page snapshot.
  3. The agent calls find to locate a semantic element, such as a “Sign in” button or an email field.
  4. The agent calls click, type, select, or press using the returned eid.
  5. Drisp Browser waits for the page to stabilize and returns the updated snapshot.
  6. The agent continues from the changed page state instead of re-reading the entire DOM.

This gives the model a browser interaction loop based on semantic state transitions rather than raw page internals.


Example user journey

The following example shows how an agent might use Drisp Browser inside a dashboard-style web app.

Task:

Find the failed payment from client@example.com, open it, add an internal note saying “Customer contacted. Waiting for bank confirmation.”, and confirm the note was saved.

1. Agent navigates to the payments dashboard

Tool call:

json
{
  "tool": "navigate",
  "input": {
    "url": "https://dashboard.example.com/payments"
  }
}

Tool response:

xml
<state step="1" title="Payments · Dashboard" url="https://dashboard.example.com/payments">
  <meta view="1440x900" scroll="0,0" layer="main" />
  <baseline reason="first" />

  <region name="nav">
    <link id="lnk-home" href="/dashboard">Home</link>
    <link id="lnk-payments" selected="true" href="/payments">Payments</link>
    <link id="lnk-customers" href="/customers">Customers</link>
    <link id="lnk-reports" href="/reports">Reports</link>
  </region>

  <region name="main">
    <h id="hd-payments">Payments</h>
    <btn id="btn-create-payment">Create payment</btn>
    <btn id="btn-export">Export</btn>
    <inp id="inp-search-payments" type="search">Search payments</inp>
    <btn id="btn-filter-status">Status</btn>
    <btn id="btn-filter-date">Date</btn>

    <elt id="payment-row-1" kind="row">₹12,500 succeeded nadeem@example.com Jun 6</elt>
    <elt id="payment-row-2" kind="row">₹8,999 failed client@example.com Jun 6</elt>
    <elt id="payment-row-3" kind="row">₹2,400 refunded test@example.com Jun 5</elt>
  </region>
</state>

The agent does not need to inspect a DOM table. It sees the relevant row directly as semantic state.

2. Agent opens the failed payment

Tool call:

json
{
  "tool": "click",
  "input": {
    "eid": "payment-row-2"
  }
}

Tool response:

xml
<state step="2" title="Payment ₹8,999 · Dashboard" url="https://dashboard.example.com/payments/pay_8x91">
  <meta view="1440x900" scroll="0,0" layer="main" />
  <baseline reason="navigation" />

  <region name="main">
    <h id="hd-payment-detail">Payment ₹8,999</h>
    <alert id="payment-status" kind="status">Failed</alert>

    <elt id="payment-customer" kind="row">Customer client@example.com</elt>
    <elt id="payment-method" kind="row">Payment method UPI</elt>
    <elt id="payment-failure-reason" kind="row">Failure reason Bank declined transaction</elt>

    <h id="hd-timeline">Timeline</h>
    <elt id="timeline-row-1" kind="row">Payment created Jun 6, 10:42 AM</elt>
    <elt id="timeline-row-2" kind="row">Payment failed Jun 6, 10:43 AM</elt>

    <h id="hd-internal-notes">Internal notes</h>
    <inp id="inp-internal-note" type="textarea">Add an internal note</inp>
    <btn id="btn-save-note">Save note</btn>
  </region>

  <region name="aside">
    <btn id="btn-refund" enabled="false">Refund</btn>
    <btn id="btn-retry-payment">Retry payment</btn>
    <btn id="btn-copy-payment-id">Copy payment ID</btn>
  </region>
</state>

Because this is a navigation, the response is a new baseline. The previous row IDs are no longer assumed valid.

3. Agent types the internal note

Tool call:

json
{
  "tool": "type",
  "input": {
    "eid": "inp-internal-note",
    "text": "Customer contacted. Waiting for bank confirmation.",
    "clear": true
  }
}

Tool response:

xml
<state step="3" title="Payment ₹8,999 · Dashboard" url="https://dashboard.example.com/payments/pay_8x91">
  <meta view="1440x900" scroll="0,0" layer="main" />
  <diff type="mutation" />

  <region name="main">
    <inp id="inp-internal-note" focused="true" val="Customer contacted. Waiting for bank confirmation." type="textarea">Add an internal note</inp>
  </region>
</state>

The agent receives only the changed field, not the whole page again.

4. Agent saves the note

Tool call:

json
{
  "tool": "click",
  "input": {
    "eid": "btn-save-note"
  }
}

Tool response:

xml
<state step="4" title="Payment ₹8,999 · Dashboard" url="https://dashboard.example.com/payments/pay_8x91">
  <meta view="1440x900" scroll="0,0" layer="main" />
  <diff type="mutation" added="1">
    <status id="rd-note-status" role="status">Note saved.</status>
  </diff>

  <observations>
    <appeared when="action" eid="toast-note-saved" role="status" delay_ms="180" transient="true">Note saved.</appeared>
  </observations>

  <region name="main">
    <elt id="note-row-1" kind="row">Customer contacted. Waiting for bank confirmation.</elt>
    <btn id="btn-save-note" enabled="false">Save note</btn>
  </region>

  <region name="alert">
    <alert id="toast-note-saved" kind="status">Note saved.</alert>
  </region>
</state>

The agent can now conclude that the note was saved because both signals are present:

  1. A status appeared: Note saved.
  2. A new note row appeared with the submitted text.

5. Agent final answer to the user

text
Done. I opened the failed ₹8,999 payment for client@example.com, added the internal note, and confirmed that the dashboard showed “Note saved.”

This journey demonstrates the core interaction model:

text
navigate → baseline state
click row → new page baseline
type note → small diff
click save → diff + observation + confirmation state

The agent does not receive raw DOM, brittle selectors, or a massive accessibility tree. It receives a compact state transition after every browser action.


Tool response format

Most browser interaction tools return a compact XML state response.

The response is designed for LLM agents, not for humans reading browser internals. It favors stable semantic IDs, short tags, page regions, and incremental diffs over full DOM dumps.

A typical response contains:

  • <state>: current page state, title, URL, and step number
  • <meta>: viewport, scroll position, and active interaction layer
  • <baseline> or <diff>: whether this is a full page state or an incremental update
  • <observations>: important transient UI changes such as dialogs, alerts, and toasts
  • <region>: grouped actionable elements by semantic page region
  • Short element tags such as <btn>, <inp>, <link>, <chk>, <sel>, and <alert>

Agents should use the id attributes, not CSS selectors, when performing follow-up actions.

Baseline response

This is the shape after navigate when the agent has no previous state.

xml
<state step="1" title="Sign in | Acme" url="https://app.example.com/login">
  <meta view="1280x720" scroll="0,0" layer="main" />
  <baseline reason="first" />

  <region name="header">
    <link id="lnk-home" href="/">Acme</link>
    <link id="lnk-docs" href="/docs">Docs</link>
  </region>

  <region name="main">
    <h id="hd-sign-in">Sign in</h>
    <inp id="inp-email" type="email">Email</inp>
    <inp id="inp-password" type="password">Password</inp>
    <chk id="chk-remember">Remember me</chk>
    <btn id="btn-submit">Sign in</btn>
  </region>
</state>

Diff response

For same-page interactions, Drisp Browser returns only the meaningful change.

xml
<state step="3" title="Sign in | Acme" url="https://app.example.com/login">
  <meta view="1280x720" scroll="0,0" layer="main" />
  <diff type="mutation" />

  <region name="main">
    <inp id="inp-email" focused="true" val="nadeem@example.com" type="email">Email</inp>
  </region>
</state>

Validation error

Readable mutations are rendered inline inside <diff>.

xml
<state step="4" title="Sign in | Acme" url="https://app.example.com/login">
  <meta view="1280x720" scroll="0,0" layer="main" />
  <diff type="mutation">
    <status id="rd-alert-login" role="alert">Invalid email or password.</status>
  </diff>

  <region name="main">
    <inp id="inp-password" focused="true" type="password">Password</inp>
    <btn id="btn-submit">Sign in</btn>
  </region>

  <region name="alert">
    <alert id="rd-alert-login">Invalid email or password.</alert>
  </region>
</state>

Modal response

Overlay layers such as modals, popovers, and drawers show the complete active overlay so the agent can reason about available actions.

xml
<state step="6" title="Products | Acme" url="https://app.example.com/products">
  <meta view="1280x720" scroll="0,0" layer="modal" />
  <diff type="mutation" added="3" />

  <observations>
    <appeared when="action" eid="dlg-delete-product" role="dialog" delay_ms="120">
      <heading eid="dlg-title">Delete product?</heading>
      <text>This action cannot be undone.</text>
      <button eid="btn-confirm-delete">Delete</button>
    </appeared>
  </observations>

  <region name="dialog">
    <h id="dlg-title">Delete product?</h>
    <btn id="btn-cancel">Cancel</btn>
    <btn id="btn-confirm-delete">Delete</btn>
  </region>
</state>

Trimmed large region

When a page has many repeated elements, large regions may be trimmed. The agent can call find with the region to retrieve more.

xml
<state step="9" title="Search results | Acme" url="https://app.example.com/search?q=invoice">
  <meta view="1280x720" scroll="0,420" layer="main" />
  <baseline reason="navigation" />

  <region name="main">
    <link id="result-1" href="/invoice/1001">Invoice 1001</link>
    <link id="result-2" href="/invoice/1002">Invoice 1002</link>
    <link id="result-3" href="/invoice/1003">Invoice 1003</link>
    <link id="result-4" href="/invoice/1004">Invoice 1004</link>
    <link id="result-5" href="/invoice/1005">Invoice 1005</link>
    <!-- trimmed 42 items. Use find with region=main to see all -->
    <link id="result-48" href="/invoice/1048">Invoice 1048</link>
    <link id="result-49" href="/invoice/1049">Invoice 1049</link>
    <link id="result-50" href="/invoice/1050">Invoice 1050</link>
  </region>
</state>

Real-world response examples

These examples are illustrative, but shaped according to the actual response contract: <state>, <meta>, <baseline> or <diff>, optional <observations>, and region-grouped short element tags.

GitHub-style issue page

xml
<state step="1" title="Issue #42 · acme/platform" url="https://github.com/acme/platform/issues/42">
  <meta view="1440x900" scroll="0,0" layer="main" />
  <baseline reason="first" />

  <region name="header">
    <link id="lnk-github-logo" href="/">GitHub</link>
    <inp id="inp-global-search" type="search">Search or jump to...</inp>
    <link id="lnk-pulls" href="/pulls">Pull requests</link>
    <link id="lnk-issues" href="/issues">Issues</link>
    <btn id="btn-create-new">Create new...</btn>
  </region>

  <region name="nav">
    <link id="repo-code" href="/acme/platform">Code</link>
    <link id="repo-issues" selected="true" href="/acme/platform/issues">Issues</link>
    <link id="repo-pulls" href="/acme/platform/pulls">Pull requests</link>
    <link id="repo-actions" href="/acme/platform/actions">Actions</link>
  </region>

  <region name="main">
    <h id="issue-title">Checkout flow fails on Safari</h>
    <btn id="btn-issue-state">Open</btn>
    <link id="lnk-author" href="/nadeem">nadeem</link>
    <btn id="btn-edit-title">Edit</btn>
    <btn id="btn-copy-link">Copy link</btn>

    <h id="comment-1-author">nadeem commented</h>
    <elt id="comment-1-body">Safari users cannot complete checkout after selecting Apple Pay.</elt>
    <btn id="btn-add-reaction">Add reaction</btn>
    <btn id="btn-comment-menu">Comment options</btn>

    <inp id="comment-box" type="textarea">Leave a comment</inp>
    <btn id="btn-comment">Comment</btn>
    <btn id="btn-close-issue">Close issue</btn>
  </region>

  <region name="aside">
    <btn id="btn-assignees">Assignees</btn>
    <btn id="btn-labels">Labels</btn>
    <btn id="btn-projects">Projects</btn>
    <btn id="btn-milestone">Milestone</btn>
  </region>
</state>

Linear-style issue list

xml
<state step="1" title="Drisp · Linear" url="https://linear.app/drisp/team/CORE/active">
  <meta view="1440x900" scroll="0,0" layer="main" />
  <baseline reason="first" />

  <region name="nav">
    <link id="lnk-inbox" href="/inbox">Inbox</link>
    <link id="lnk-my-issues" href="/my-issues">My issues</link>
    <link id="lnk-views" href="/views">Views</link>
    <link id="lnk-roadmaps" href="/roadmaps">Roadmaps</link>
    <link id="lnk-projects" href="/projects">Projects</link>
  </region>

  <region name="main">
    <h id="hd-active-issues">Active issues</h>
    <btn id="btn-new-issue">New issue</btn>
    <btn id="btn-display-options">Display options</btn>
    <btn id="btn-filter">Filter</btn>

    <h id="grp-in-progress">In Progress</h>
    <elt id="issue-core-61" kind="row">CORE-61 Operations console</elt>
    <elt id="issue-core-62" kind="row">CORE-62 GitHub Actions CI pipeline</elt>

    <h id="grp-todo">Todo</h>
    <elt id="issue-core-47" kind="row">CORE-47 KYB Step 2</elt>
    <elt id="issue-core-63" kind="row">CORE-63 Fix Biome config drift</elt>
  </region>
</state>

Payments dashboard

xml
<state step="1" title="Payments · Dashboard" url="https://dashboard.example.com/payments">
  <meta view="1440x900" scroll="0,0" layer="main" />
  <baseline reason="first" />

  <region name="nav">
    <link id="lnk-home" href="/dashboard">Home</link>
    <link id="lnk-payments" selected="true" href="/payments">Payments</link>
    <link id="lnk-customers" href="/customers">Customers</link>
    <link id="lnk-products" href="/products">Products</link>
    <link id="lnk-reports" href="/reports">Reports</link>
  </region>

  <region name="main">
    <h id="hd-payments">Payments</h>
    <btn id="btn-create-payment">Create payment</btn>
    <btn id="btn-export">Export</btn>
    <inp id="inp-search-payments" type="search">Search payments</inp>
    <btn id="btn-filter-status">Status</btn>
    <btn id="btn-filter-date">Date</btn>

    <elt id="payment-row-1" kind="row">₹12,500 succeeded nadeem@example.com Jun 6</elt>
    <elt id="payment-row-2" kind="row">₹8,999 failed client@example.com Jun 6</elt>
    <elt id="payment-row-3" kind="row">₹2,400 refunded test@example.com Jun 5</elt>
  </region>
</state>

Tool surface

Drisp Browser exposes MCP tools across the main phases of browser use.

Session

  • list_pages
  • close_page

Navigation

  • navigate
  • go_back
  • go_forward
  • reload

Observation

  • snapshot
  • find
  • get_element
  • screenshot

Interaction

  • click
  • type
  • press
  • select
  • hover
  • scroll_to
  • scroll
  • drag
  • wheel

Forms

  • get_form
  • get_field

File uploads

There is no upload tool. Clicking an upload control (file input, "Choose file" button, <label for>, or dropzone) returns a synthetic file-picker surface, which you drive with the same click and type tools:

js
click({ eid: '<upload-control-eid>' }); // → <non_dom kind="file-picker">
type({ eid: 'nd-picker-path', text: '/absolute/path/to/file.pdf', clear: true });
click({ eid: 'nd-picker-choose' });

Paths must be absolute and must resolve on the browser host (the machine or container running Chrome). UPLOAD_ALLOWED_ROOTS bounds which directories may be uploaded from. See Upload Files With Click and Type.

Canvas

  • inspect_canvas

Content

  • read_page

Network

  • list_network_calls
  • search_network_calls

Quickstart

Run the interactive installer — it auto-detects which AI tools you have installed and registers the MCP server and agent skill in one step:

bash
npx @drisp/browser-mcp install

Then ask your AI to use the browser:

text
Open https://example.com and summarize the main actions available to a user.

Target a specific harness

bash
# Claude Code (also installs the agent skill)
npx @drisp/browser-mcp install --harness claude-code

# Cursor
npx @drisp/browser-mcp install --harness cursor

# VS Code
npx @drisp/browser-mcp install --harness vscode

# Claude Desktop (MCP only — no skill placement)
npx @drisp/browser-mcp install --harness claude-desktop

# Multiple at once
npx @drisp/browser-mcp install --harness cursor,vscode

# All detected harnesses
npx @drisp/browser-mcp install --harness all

Install flags

FlagDescription
--harness <id|all|csv>Target harness(es): claude-code, cursor, vscode, claude-desktop, all, or comma-separated
--scope project|userWhere to write the config (default: project)
--globalAlias for --scope global
--projectAlias for --scope project
--browser-mode <mode>Browser mode: auto (default), user, persistent, isolated
--headlessLaunch Chrome in headless mode
--cdp-url <url>Connect to an existing Chrome DevTools Protocol endpoint
--pin <version>Register an exact version instead of @latest
--dry-runPreview changes without writing files
--yesSkip interactive prompts (non-TTY mode)

Check installation status

bash
npx @drisp/browser-mcp doctor

Prints a per-harness status table showing whether the MCP server is registered and whether the agent skill is installed.

Skill-only installation (advanced)

The drisp-browser skill can also be installed independently — without the MCP server — using npx skills:

bash
npx skills add drisplabs/browser-mcp

This copies only the skill into your agent's skills/ directory. You still need to register the MCP server separately (the install command above does both). npx skills is intentionally kept as a supported alternative for skill-only workflows — see ADR-0003.


Manual setup (Claude Desktop / Cursor / VS Code)

If you prefer to edit config files manually, add the server under the appropriate key:

json
{
  "mcpServers": {
    "drisp-browser": {
      "command": "npx",
      "args": ["@drisp/browser-mcp@latest"]
    }
  }
}

VS Code uses servers instead of mcpServers and requires "type": "stdio":

json
{
  "servers": {
    "drisp-browser": {
      "type": "stdio",
      "command": "npx",
      "args": ["@drisp/browser-mcp@latest"]
    }
  }
}

To force connection to your existing Chrome session:

json
{
  "mcpServers": {
    "drisp-browser": {
      "command": "npx",
      "args": ["@drisp/browser-mcp@latest"],
      "env": {
        "DRISP_BROWSER_MODE": "user"
      }
    }
  }
}

Browser modes

Browser initialization happens automatically on the first browser tool call.

Set DRISP_BROWSER_MODE to control how Chrome is started.

ModeBehaviorProfile
unsetAuto: try user, then persistent, then isolatedDepends on fallback
userConnect to your running ChromeChrome's default profile
persistentLaunch Chrome with a dedicated persistent profile~/.cache/drisp-browser/chrome-profile
isolatedLaunch Chrome with a temporary clean profileDeleted on close

Examples:

bash
# Auto mode
npx @drisp/browser-mcp

# Always connect to existing Chrome
DRISP_BROWSER_MODE=user npx @drisp/browser-mcp

# Always launch with persistent profile
DRISP_BROWSER_MODE=persistent npx @drisp/browser-mcp

# Headless isolated browser
DRISP_BROWSER_MODE=isolated DRISP_BROWSER_HEADLESS=true npx @drisp/browser-mcp

Stealth (DRISP_BROWSER_STEALTH)

Launched browsers (persistent/isolated) carry Puppeteer's automation tells — navigator.webdriver, the "controlled by automated test software" infobar, an empty plugins list — which some sites use to false-positive a legitimate session as a bot. DRISP_BROWSER_STEALTH (default true) applies fingerprint-only patches so a launched Chrome looks like your everyday Chrome. It changes nothing about behavior (clicks and typing are untouched) and is a no-op in user mode, where the connected Chrome already has a genuine fingerprint.

bash
# Disable stealth (raw Puppeteer fingerprint)
DRISP_BROWSER_STEALTH=false DRISP_BROWSER_MODE=isolated npx @drisp/browser-mcp

This is not a CAPTCHA or anti-bot bypass tool — it only avoids false-positive blocking of ordinary, authorized use.


Using your existing Chrome

To connect Drisp Browser to your regular Chrome profile:

  1. Open Chrome.
  2. Navigate to chrome://inspect/#remote-debugging.
  3. Enable remote debugging and allow the connection.
  4. Start Drisp Browser with DRISP_BROWSER_MODE=user.
bash
DRISP_BROWSER_MODE=user npx @drisp/browser-mcp

This is useful when an agent needs access to an already authenticated browser session.


CLI arguments

The server accepts transport-level arguments only. Browser configuration is controlled through environment variables.

ArgumentDescriptionDefault
--transportTransport mode: stdio or httpstdio
--portPort for HTTP transport3000

Examples:

bash
# stdio transport
npx @drisp/browser-mcp

# HTTP transport
npx @drisp/browser-mcp --transport http --port 8080

Environment variables

VariableDescriptionDefault
DRISP_BROWSER_MODEBrowser mode: user, persistent, or isolatedunset; auto fallback
DRISP_BROWSER_HEADLESSRun browser headless: true or falsefalse
DRISP_BROWSER_CDP_URLExplicit CDP endpoint; overrides browser modeunset
DRISP_BROWSER_TRIM_REGIONSSet to false to disable region trimming globallytrue
TRANSPORTTransport mode override, for example httpunset
HTTP_HOSTHost for HTTP transport127.0.0.1
HTTP_PORTPort for HTTP transport3000
LOG_LEVELLogging levelinfo
CEF_BRIDGE_HOSTCDP host for CEF bridge connection127.0.0.1
CEF_BRIDGE_PORTCDP port for CEF bridge connection9223
BRING_TO_FRONTSet to true to focus the Chrome tab before each actionfalse
CHROME_PATHPath to Chrome executableunset
UPLOAD_ALLOWED_ROOTSColon-separated absolute dirs uploads must stay withinunset; no restriction
DRISP_BROWSER_DOWNLOAD_DIRAbsolute path for browser downloadsunset; browser default

Directional benchmark results

Early internal comparisons against Playwright MCP show lower token usage and faster completion on representative browser-agent tasks.

Current directional results:

  • Lower token usage on multi-step navigation tasks
  • Faster task completion in common browsing workflows
  • Same or better success rates in tested scenarios

These results are not yet a formal benchmark suite. They are task-dependent and should be treated as directional until the benchmark harness, task definitions, model versions, and raw traces are published.


Architecture overview

Drisp Browser separates browser automation into three layers.

Browser lifecycle

Responsible for:

  • Launching or connecting to Chrome
  • Managing browser contexts
  • Managing pages and tabs
  • Preserving or isolating browser state depending on mode

Semantic snapshot generation

Responsible for:

  • Extracting DOM structure
  • Reading accessibility metadata
  • Resolving labels and roles
  • Detecting page regions
  • Tracking element state
  • Producing compact agent-readable output

Action resolution

Responsible for:

  • Mapping stable eid values to browser nodes
  • Executing clicks, typing, scrolling, keypresses, and selection
  • Waiting for page stabilization
  • Returning the next page state

This separation lets the browser implementation evolve while keeping the agent-visible interface stable.


Development

Clone the repository:

bash
git clone https://github.com/drisplabs/browser-mcp
cd browser-mcp
npm install

Build:

bash
npm run build

Run locally:

bash
npm start

Run in watch mode:

bash
npm run dev

Run checks:

bash
npm run check

Run tests:

bash
npm test

Inspect with the MCP inspector:

bash
npm run mcp:inspect

Requirements

  • Node.js 22.12 or newer
  • Chrome or Chromium
  • An MCP-compatible client such as Claude Code, Claude Desktop, Cursor, or VS Code

Status

Drisp Browser is under active development.

The public tool surface is intended to stay simple, but internal APIs and snapshot formats may evolve as real-world agent usage informs the design.

Feedback from practitioners building browser agents, coding agents, QA agents, and automation systems is especially welcome.


License

MIT

Cài đặt

TypingMind
{
  "mcpServers": {
    "drisplabs-browser-mcp": {
      "command": "node",
      "args": [
        "dist/src/index.js"
      ]
    }
  }
}

Dùng MCP Agent Web Interface với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Agent Web Interface, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Agent Web Interface làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Agent Web Interface.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "drisplabs-browser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "agent-web-interface"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Agent Web Interface, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Agent Web Interface.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Agent Web Interface giúp tôi làm việc này không?
Agent Web Interface
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Agent Web Interface.

Câu hỏi thường gặp

Máy chủ MCP Agent Web Interface dùng để làm gì?

Agent Web Interface là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Agent Web Interface với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Agent Web Interface với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Agent Web Interface với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Agent Web Interface, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Agent Web Interface với TypingMind?

Agent Web Interface hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Agent Web Interface cung cấp những công cụ nào trong TypingMind?

Agent Web Interface cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Agent Web Interface không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Agent Web Interface yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇