Web Browser MCP Server 借助简单的 MCP 接口,让 AI 助手能够浏览网页并提取其中的内容。它支持 AI 模型通过 Message Control Protocol (MCP) 浏览网站、提取内容和理解网页,具备智能内容抽取能力,可使用 CSS 选择器精准定位目标,还提供强大的错误处理功能。
通过 Smithery 可自动安装 Claude Desktop 的 Web Browser Server:
npx -y @smithery/cli install web-browser-mcp-server --client claude
使用 uv 进行安装:
uv tool install web-browser-mcp-server
# 克隆仓库并设置开发环境
git clone https://github.com/blazickjp/web-browser-mcp-server.git
cd web-browser-mcp-server
# 创建并激活虚拟环境
uv venv
source .venv/bin/activate
# 安装测试依赖项
uv pip install -e ".[test]"
将以下配置添加到您的 MCP 客户端配置文件中:
{
"mcpServers": {
"web-browser-mcp-server": {
"command": "uv",
"args": [
"tool",
"run",
"web-browser-mcp-server"
],
"env": {
"REQUEST_TIMEOUT": "30"
}
}
}
}
{
"mcpServers": {
"web-browser-mcp-server": {
"command": "uv",
"args": [
"--directory",
"path/to/cloned/web-browser-mcp-server",
"run",
"web-browser-mcp-server"
],
"env": {
"REQUEST_TIMEOUT": "30"
}
}
}
}
本项目以 MIT License 发布。详见 LICENSE 文件。