MCP browser agent server for AI-driven browser automation

MCP browser agent server for AI-driven browser automation

mcp-browser-server-yubao2000•byyubao2000

An MCP server that lets AI agents control a browser through navigation, interaction, extraction, tab management, and advanced automation tools.

License: MIT•Runtime: Awaiting documentation review•Category: browser automation

WHAT IT DOES

  • •Provides navigation and page tools such as screenshots, URL and title retrieval, HTML access, reload, back/forward, and PDF export.
  • •Offers interaction tools including clicking, filling inputs, selecting dropdowns, pressing keys, hovering, submitting forms, scrolling, and dragging.
  • •Supports content extraction, custom JavaScript evaluation, element screenshots, and cookie retrieval or deletion.
  • •Includes tab management and advanced features like waiting, iframe switching, console logs, browser reset, and page closing.

BEST FOR

  • •Automating browser tasks from Claude, Cursor, or Codex conversations.
  • •Opening pages, taking screenshots, and extracting text or links from websites.
  • •Performing login flows with form filling and clicking from an AI agent.

ABOUT MCP-BROWSER-SERVER-YUBAO2000

MCP browser agent server for AI-driven browser automation is cataloged as an MCP server attributed to yubao2000. An MCP server that lets AI agents control a browser through navigation, interaction, extraction, tab management, and advanced automation tools. It is categorized under browser automation. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP browser agent server for AI-driven browser automation are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the browser server keep cookies between restarts?

Yes, cookies are saved automatically and previously logged-in sites restore their login state after the service restarts.

Can the browser window be shown while the AI operates?

Yes, setting showBrowser or the SHOW_BROWSER environment variable makes the browser window visible for debugging or manual captcha handling.

Upstream README

View this exact version on GitHub

README.md · f13edf6931f5 · Fetched 2026-11-13 14:02:37 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

🤖 MCP Browser Agent

让 AI Agent(Claude/GPT)像人一样操作浏览器。 Let AI agents control the browser just like a human.

npm version License: MIT Node


📋 工具清单(30 个)

🧭 导航类

工具说明
browser_screenshot打开网页并截图(支持全页截图)
browser_getUrl获取当前页面 URL
browser_getTitle获取页面标题
browser_getHTML获取 HTML 源码
browser_reload刷新页面
browser_back后退
browser_forward前进
browser_pdf导出当前页面为 PDF

🖱️ 交互类

工具说明
browser_click点击元素(CSS 选择器、文本、右键)
browser_fill填写输入框(模拟真实输入)
browser_clear清空输入框
browser_select下拉列表选择(value/label/index)
browser_pressKey键盘按键(Enter/Escape/Tab/组合键)
browser_hover鼠标悬停
browser_submit提交表单
browser_scroll滚动(上/下/到顶/到底/到元素)
browser_drag拖拽元素

📝 提取类

工具说明
browser_extract提取文字内容(支持选择器和属性)
browser_evaluate执行自定义 JavaScript
browser_screenshotElement截取指定元素的截图
browser_getCookies获取 Cookie
browser_deleteCookies删除 Cookie

📑 标签页管理

工具说明
browser_newTab打开新标签页
browser_switchTab切换到指定标签页
browser_closeTab关闭标签页

⚡ 高级功能

工具说明
browser_wait等待(时间或元素出现/消失)
browser_iframe切换 iframe 上下文
browser_console获取控制台日志
browser_reset重置浏览器实例
browser_close关闭当前页面

🚀 快速开始

前提

  • Node.js >= 18
  • (推荐)Claude Desktop / Cursor / 任何支持 MCP 的客户端

快速使用

# 全局安装(推荐)
npm install -g @yubao2000/mcp-browser-agent

# 启动服务
mcp-browse-agent

在 Claude Desktop 中配置

找到配置文件 claude_desktop_config.json:

平台路径
Windows%APPDATA%\Claude\claude_desktop_config.json
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json

💡 找不到文件? 打开 Claude Desktop → 点 Developer(开发者)→ Edit MCP Config(编辑 MCP 配置),会自动打开或创建这个文件。

将以下内容填入:

{
  "mcpServers": {
    "browser-agent": {
      "command": "mcp-browse-agent",
      "args": []
    }
  }
}

配置完成后,直接对 Claude 说:

"帮我打开百度首页,截图给我看"

"搜索 'MCP 协议',把搜索结果提取出来"

"帮我登录 Gmail,填上用户名和密码,点击登录"

在 Cursor 中配置

打开 Cursor → 设置 → Features → MCP Servers → Add New MCP Server:

字段填什么
Namebrowser-agent
Typecommand
Commandmcp-browse-agent
Arguments留空

或者直接在项目下创建 .cursor/mcp.json 文件:

{
  "mcpServers": {
    "browser-agent": {
      "command": "mcp-browse-agent",
      "args": []
    }
  }
}

配置后在 Cursor 中使用 ⌘ . 或 Ctrl . 打开 MCP 面板,选择 browser-agent 即可:

"帮我打开百度首页,截图给我看"

"提取当前页面的所有链接"

在 OpenAI Codex 中配置

编辑 ~/.codex/config.toml:

[mcp_servers.browser-agent]
command = "mcp-browse-agent"
args = []

配置后在 Codex 会话中使用 /mcp 确认服务已加载:

"帮我打开百度首页,截图给我看"

"帮我提取当前页面的文字内容"

💡 提示: 在 Codex 中使用 /mcp 列出所有配置的 MCP 服务,/mcp verbose 查看详细状态。


🛠 配置文件

项目支持 .mcp-browser.json 配置文件(放在项目目录或用户目录 ~/.mcp-browser.json):

{
  "dataDir": "./.browser-data",
  "viewport": { "width": 1280, "height": 800 },
  "headless": true,
  "defaultTimeout": 30000,
  "chromePath": null
}

环境变量也可配置:

  • BROWSER_DATA_DIR — 数据目录(Cookie 等)
  • MCP_BROWSER_CONFIG — 配置文件路径
  • MCP_PRO_LICENSE — Pro 版 License Key

👁️ 显示浏览器窗口(调试/过验证码)

默认浏览器在后台运行(不可见)。如果需要看到浏览器窗口:

# 方式 1:环境变量
SHOW_BROWSER=true mcp-browse-agent

# 方式 2:配置文件 .mcp-browser.json
{
  "showBrowser": true
}

浏览器窗口会弹出,你可以看到 AI 的每一步操作。适用于:

  • 调试(看 AI 点了哪里、填了什么)
  • 遇到滑动验证码时手动操作
  • 演示/录屏

Cookie 自动保存在 .browser-data/cookies.json。重启服务后,之前登录的网站自动恢复登录态。对于需要频繁登录的网站(Gmail、知乎、小红书等),只需登录一次。


📦 本地开发

git clone https://github.com/yubao2000/mcp-browser-server.git
cd mcp-browser-server
npm install
npm run build
npm start

💰 Pro 版

功能免费版Pro 版 ($9.9/月)终身版 ($99)
全部 34 个工具✅✅✅
Cookie 持久化✅✅✅
标签页管理✅✅✅
批量自动化(CSV 驱动)❌✅ 100条/次✅ 100条/次
多标签页并发1个10个10个
Cookie 加密备份❌✅✅
JSON/CSV 数据导出❌✅✅
企业级技术支持❌✅✅
永久免费升级❌❌✅

Pro 版即将推出。订阅通知获取早鸟优惠!


🤝 贡献

欢迎 Star、Issue、PR!


📄 License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP browser agent server for AI-driven browser automation from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-browser-server-yubao2000)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related browser automation MCP Servers

Alternative and complementary servers in the same category

View all in browser automation →

A Model Context Protocol (MCP) server for controlling Chrome with debugging capabilities, userscript injection, and extension support.

Repository stats unavailable
Browser & Scraping
Web Browser MCP Server
web-browser-mcp-server•blazickjp

An MCP server that lets AI assistants browse websites and extract content using optional CSS selectors.

Repository stats unavailable
Browser & Scraping
Steel MCP Server
steel-mcp-server•steel-dev

An MCP server that reads pages, fills forms, takes screenshots, and hands the browser to a person for logins or CAPTCHAs.

Repository stats unavailable
Browser & Scraping