Skip to main content
Glama

Agent Browser MCP Server

一个封装了 agent-browser 的 MCP(Model Context Protocol)服务器,为 AI 助手提供浏览器自动化工具。支持 stdio 和 HTTP/SSE 两种传输方式。

功能特性

40 多个浏览器自动化工具,包括:

类别

工具

导航

browser_open, browser_navigate, browser_close

交互

browser_click, browser_fill, browser_type, browser_press, browser_hover, browser_select, browser_scroll

检查

browser_snapshot, browser_screenshot, browser_read, browser_get, browser_find

执行

browser_eval, browser_batch, browser_wait

状态

browser_cookie, browser_storage, browser_state, browser_session, browser_tab

开发者工具

browser_console, browser_trace, browser_network, browser_react, browser_vitals, browser_a11y

高级

browser_frame, browser_stream, browser_dialog, browser_diff, browser_chat, browser_profile

系统

browser_install, browser_doctor, browser_skills, browser_set

Related MCP server: selenium-mcp

安装

npm install
npm run build

使用

Stdio 模式(适用于本地 MCP 客户端)

npm run dev

HTTP/SSE 模式(适用于远程访问)

node server.js

服务器默认监听 5888 端口。

环境变量

变量

默认值

描述

PORT

5888

服务器端口

AGENT_BROWSER_SCREENSHOT_DIR

./screenshots

保存截图的目录

BASE_URL

/screenshots

截图的公共 URL 路径

MCP_SCRIPT_PATH

./dist/index.js

编译后 MCP 服务器的路径

ENABLE_HTTPS

false

使用 Let's Encrypt 证书启用 HTTPS

CERT_PATH

/etc/letsencrypt/live/test2.infinitrocyber.com

SSL 证书路径

Docker

docker build -t agentbrowser-mcp .
docker run -p 5888:5888 agentbrowser-mcp

部署

Render

包含 render.yaml 蓝图。可直接从仓库部署。

PM2

pm2 start ecosystem.config.cjs

API 端点

方法

路径

描述

GET

/health

健康检查

GET

/mcp

SSE 连接(创建新会话)

POST

/mcp

JSON-RPC 请求

GET

/

服务信息

客户端配置

Claude Desktop

{
  "mcpServers": {
    "agent-browser": {
      "command": "node",
      "args": ["dist/index.js"]
    }
  }
}

远程 HTTP 客户端

{
  "mcpServers": {
    "agent-browser": {
      "url": "https://your-domain.com/mcp"
    }
  }
}

许可证

MIT

Available Tools

39 tools
browser_a11yD

Accessibility audit

Inputs: url, json, tags, session, +1 more.

browser_batchC

Execute multiple commands

Inputs: commands (required), bail.

browser_chatD

Natural language browser control

Inputs: instruction (required), session.

browser_clickC

Click element by selector or @ref

Inputs: selector (required), session.

browser_closeC

Close browser

Inputs: all, session.

browser_consoleC

View/clear console logs and errors

Inputs: action (required), json, session.

browser_dialogD

Handle dialogs

Inputs: action (required), text, session.

browser_diffC

Diff snapshots/screenshots

Inputs: type (required), json, target, session, +2 more.

browser_doctorD

Diagnose install

Inputs: fix, offline.

browser_evalD

Execute JavaScript

Inputs: script (required), session.

browser_fillC

Clear and fill input

Inputs: text (required), selector (required), session.

browser_findC

Find elements semantically

Inputs: type (required), value (required), action (required), name, +1 more.

browser_frameD

Switch frame

Inputs: session, selector.

browser_getC

Get text/html/value/url/title

Inputs: property (required), session, selector.

browser_hoverD

Hover element

Inputs: selector (required), session.

browser_installC

Install Chrome

Inputs: deps.

browser_navigateC

Back/forward/reload

Inputs: direction (required), session.

browser_networkD

Network requests/routes

Inputs: action (required), url, body, type, +7 more.

browser_openC

Open URL in browser

Inputs: url (required), session.

browser_pressC

Press key (Enter, Tab, etc)

Inputs: key (required), session.

browser_profileD

Chrome profiles

Inputs: action (required), name.

browser_reactD

React devtools

Inputs: action (required), json, fiberId, session.

browser_readC

Read page content or fetch URL

Inputs: url, filter, session.

browser_screenshotD

Take screenshot

Inputs: full, path, session.

browser_scrollC

Scroll page

Inputs: direction (required), pixels, session, selector.

browser_selectC

Select dropdown option

Inputs: value (required), selector (required), session.

browser_sessionD

Session management

Inputs: action (required), scope, prefix.

browser_setC

Set viewport/device/geo/media

Inputs: value (required), setting (required), session.

browser_skillsD

List/get skills

Inputs: action (required), all, name.

browser_snapshotC

Get accessibility tree with refs

Inputs: session.

browser_stateC

Save/load auth state

Inputs: action (required), path, session.

browser_storageC

Manage localStorage/sessionStorage

Inputs: type (required), action (required), key, value, +1 more.

browser_streamD

WebSocket streaming

Inputs: action (required), port, session.

browser_tabD

Manage tabs

Inputs: action (required), url, label, target, +1 more.

browser_traceC

Record trace

Inputs: action (required), path, session.

browser_typeC

Type text into input

Inputs: text (required), selector (required), session.

browser_vitalsD

Web Vitals metrics

Inputs: url, json, session.

browser_waitC

Wait for element/text/URL

Inputs: url, text, session, timeout, +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.4/5.0

    Scored across 39 tools

    Disambiguation5/5

    Each tool targets a distinct browser operation (e.g., click, fill, hover, scroll) with no overlapping responsibilities. Even similar tools like get and read are differentiated by specific data returning or page fetching, and snapshot is distinct from screenshot.

    Naming Consistency5/5

    All tools follow a consistent 'browser_<verb>' pattern (e.g., open, click, fill, type, press), with no mixed conventions or vague names. The naming is predictable and clearly conveys each tool's action.

    Tool Count2/5

    With 39 tools, the count exceeds the typical range and feels heavy for most workflows. While the browser automation domain is broad, many tools are granular (e.g., browser_console, browser_trace), leading to potential selection overhead.

    Completeness4/5

    The tool set covers a comprehensive range of browser interactions: navigation, element actions, state management, debugging, performance monitoring, and network control. Minor gaps exist (e.g., file upload, form submission explicit handling), but most core workflows are well-supported.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to automate web tasks such as browsing, clicking, typing, and taking screenshots via the Model Context Protocol.
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI-powered browser automation controlled through natural language, integrating Playwright with the Model Context Protocol to perform web interactions like navigation, form filling, and screenshots.
      10
      MIT