MCP Web Research Server

MCP Web Research Server

site icon
2024.12.18 0
网页研究实时数据AI辅助搜索工具浏览器自动化
MCP Web Research Server 是一个基于Model Context Protocol (MCP)的服务器,专注于网页研究功能。它能够将实时信息引入Claude,方便用户进行各种主题的研究。该服务器集成了Google搜索、网页内容提取、研究会话跟踪和截图捕获等功能,适用于需要实时网络数据支持的AI对话和研究场景。
View on GitHub

Overview

基本能力

产品定位

MCP Web Research Server 是一个专为网页研究设计的MCP服务器,旨在为Claude等AI工具提供实时网络数据支持。

核心功能

  • Google搜索集成
  • 网页内容提取
  • 研究会话跟踪(包括访问页面列表、搜索查询等)
  • 截图捕获

适用场景

  • AI辅助的实时网络研究
  • 需要引用最新网络信息的对话场景
  • 自动化网页内容收集和分析

工具列表

  1. search_google
  2. 执行Google搜索并提取结果
  3. 参数: { query: string }

  4. visit_page

  5. 访问网页并提取其内容
  6. 参数: { url: string, takeScreenshot?: boolean }

  7. take_screenshot

  8. 对当前页面进行截图
  9. 无需参数

常见问题解答

  • 这是一个预发布阶段的代码,可能存在bug
  • 遇到问题时可以检查Claude Desktop的MCP日志
  • 目前仅验证了macOS平台

使用教程

使用依赖

  • Node.js >= 18(包含npm和npx)
  • Claude Desktop应用

安装教程

  1. 确保已安装Claude Desktop应用和npm
  2. claude_desktop_config.json中添加以下配置(Mac上位于~/Library/Application\ Support/Claude/claude_desktop_config.json):
{
  "mcpServers": {
    "webresearch": {
      "command": "npx",
      "args": ["-y", "@mzxrai/mcp-webresearch@latest"]
    }
  }
}

调试方式

检查MCP日志:

tail -n 20 -f ~/Library/Logs/Claude/mcp*.log

开发模式命令:

# 安装依赖
pnpm install

# 构建项目
pnpm build

# 监听变化
pnpm watch

# 开发模式运行
pnpm dev

许可证

该项目遵循 MIT 开源许可条款,请参阅 MIT 了解完整条款。