Back to MCP directory
publicPublicdnsLocal runtime

web-browser-mcp-server

Web Browser MCP Server是一个基于Python的MCP协议服务器,为AI助手提供网页浏览和内容提取功能。

article

README

🚀 🌟 Web Browser MCP Server

Web Browser MCP Server 借助简单的 MCP 接口,让 AI 助手能够浏览网页并提取其中的内容。它支持 AI 模型通过 Message Control Protocol (MCP) 浏览网站、提取内容和理解网页,具备智能内容抽取能力,可使用 CSS 选择器精准定位目标,还提供强大的错误处理功能。

🚀 快速开始

使用 Smithery 安装

通过 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 集成

将以下配置添加到您的 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"
            }
        }
    }
}

✨ 主要特性

  • 🎯 智能内容提取:使用 CSS 选择器精准定位所需内容
  • 快速高效:基于异步处理实现最优性能
  • 📊 丰富元数据:捕获标题、链接和结构化内容
  • 🛡️ 稳定可靠:内置错误处理和超时管理
  • 🌍 跨平台支持:在所有支持 Python 的平台上运行

📄 许可证

本项目以 MIT License 发布。详见 LICENSE 文件。

🤝 参与贡献 • 📝 报告问题

由 Pear Labs 团队 ❤️ 制作
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client