Agent Web Interface 标志

Agent Web Interface

组织
drisplabs

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

发布者drisplabs
代码仓库browser-mcp
语言TypeScript
复刻数
1
星标数
17
可用工具
0
传输类型stdio
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    Agent Web Interface 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 17 个星标和 1 个复刻。

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

安装

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

将 Agent Web Interface MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Agent Web Interface 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 Agent Web Interface 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Agent Web Interface MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "drisplabs-browser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "agent-web-interface"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Agent Web Interface MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Agent Web Interface MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Agent Web Interface 帮我完成这项任务吗?
Agent Web Interface
当然,我看过了。
以下是我使用 Agent Web Interface 得到的结果。

常见问题

Agent Web Interface MCP 服务器有什么用途?

Agent Web Interface 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Agent Web Interface MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 Agent Web Interface。

为什么在 TypingMind 中使用 Agent Web Interface MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 Agent Web Interface 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Agent Web Interface MCP 连接到 TypingMind?

Agent Web Interface 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Agent Web Interface MCP 在 TypingMind 中提供哪些工具?

Agent Web Interface 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Agent Web Interface MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 Agent Web Interface 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇