Token导航 LogoToken导航TokenDH.com
MCP Chrome Server logo
浏览器工具stdio官方级别未说明来源级核验

MCP Chrome Server

MCP Server

@smithery/cli

基于MCP(模型-控制器-提示)架构的Chrome浏览器自动化服务器,提供网页导航、登录、元素操作等功能。

工具数

36

提示词数

0

GitHub Stars

3

资源数

0
浏览器自动化PythonClaude自动化测试Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

dlwjdtn535

提供方

dlwjdtn535

最后核验

2026/5/17 20:19

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx -y @smithery/cli install @dlwjdtn535/mcp-chrome-server --client claude

详细介绍

MCP Chrome服务器

](https://smithery.ai/server/@dlwjdtn535/mcp-chrome-server) ![Buy Me A Coffee](https://buymeacoffee.com/dlwjdtn535)

基于MCP(模型控制器提示符)的Chrome服务器,用于浏览器自动化。

安装

先决条件

  • Python 3.12
  • 已安装谷歌Chrome浏览器
  • uv(Python包安装程序)或Docker

通过Smithery安装

npx -y @smithery/cli install @dlwjdtn535/mcp-chrome-server --client claude

配置设置

根据您的环境选择以下设置方法之一:

1.使用紫外线(推荐)

Windows安装程序:

{
  "mcpServers": {
    "mcp-chrome-server": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "%LOCALAPPDATA%\\Programs\\mcp-chrome-server\\src",
        "mcp-chrome-server"
      ],
      "env": {
        "CHROME_PROFILE_PATH": "%LOCALAPPDATA%\\Google\\Chrome\\User Data"
      }
    }
  }
}

macOS设置:

{
  "mcpServers": {
    "mcp-chrome-server": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/usr/local/bin/mcp-chrome-server/src",
        "mcp-chrome-server"
      ],
      "env": {
        "CHROME_PROFILE_PATH": "$HOME/Library/Application Support/Google/Chrome"
      }
    }
  }
}

Linux设置:

{
  "mcpServers": {
    "mcp-chrome-server": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/usr/local/bin/mcp-chrome-server/src",
        "mcp-chrome-server"
      ],
      "env": {
        "CHROME_PROFILE_PATH": "$HOME/.config/google-chrome"
      }
    }
  }
}

配置

Chrome配置文件路径

每个操作系统的默认Chrome配置文件路径:

操作系统路径
窗户%LOCALAPPDATA%\Google\Chrome\User Data
macOS~/Library/Application Support/Google/Chrome
Linux~/.config/google-chrome

重要提示

  • 启动自动化服务器之前,关闭所有正在运行的Chrome实例
  • 确保Chrome配置文件目录的权限正确
  • 对于Docker设置,请确保卷装载路径与系统的Chrome配置文件路径匹配

凭据管理

使用系统钥匙链安全地存储和管理登录信息:

# Save credentials
result = tool_save_credentials(
    site="example.com",
    username="your_username",
    password="your_password"
)

# Retrieve saved credentials
result = tool_get_credentials(
    site="example.com",
    username="your_username"
)

主要特点

浏览器控件

# Open browser
result = tool_open_browser()

# Navigate to URL
result = tool_navigate(url="https://example.com")

# Close browser
result = tool_close_browser()

Web登录

result = tool_web_login(
    url="https://example.com/login",
    credentials={
        "username": "your_username",
        "password": "your_password"
    },
    selectors={
        "username": "#id",
        "password": "#pw",
        "submit": ".login-button"
    }
)

特殊处理:

  • 检测到时等待用户解决验证码
  • 自动检测双因素身份验证
  • 登录失败场景的详细分析

元素操作

# Click element
result = tool_click(selector=".button")

# Type text
result = tool_type(
    selector="#input-field",
    text="Hello, World!"
)

# Get text
result = tool_get_text(selector=".content")

# Get multiple elements
result = tool_get_elements(selector=".items")

重要注意事项

  1. Chrome配置文件使用情况

- 验证配置文件路径配置是否正确 - 使用配置文件关闭所有其他Chrome窗口

  1. 自动化检测预防

- 模拟自然用户行为 - 在登录尝试之间保持适当的延迟

  1. 安全

- 重要凭据始终使用系统密钥链 - 切勿在环境变量或配置文件中直接公开凭据

目录标签

目录标签

浏览器自动化PythonClaude自动化测试本地部署网页控制MCP架构Chrome扩展

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

session

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

@smithery/cli

工具数量(toolCount,工具数)

36

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiosession部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP