MCP Web Research Server

by chuanmingliu
Verified

Integrations

  • Enables Google search integration to perform web searches and extract search results for research purposes

MCP 网络研究服务器

用于网络研究的模型上下文协议 (MCP) 服务器。

将实时信息带入 Claude 并轻松研究任何主题。

特征

  • Google 搜索集成
  • 网页内容提取
  • 研究会话跟踪(访问过的页面列表、搜索查询等)
  • 屏幕截图

先决条件

安装

首先,确保您已经下载并安装了Claude Desktop 应用程序,并且已经安装了 npm。

接下来,将此条目添加到您的claude_desktop_config.json中(在 Mac 上,位于~/Library/Application\ Support/Claude/claude_desktop_config.json ):

{ "mcpServers": { "webresearch": { "command": "npx", "args": ["-y", "@mzxrai/mcp-webresearch@latest"] } } }

此配置允许 Claude Desktop 在需要时自动启动网络研究 MCP 服务器。

用法

只需与 Claude 开始聊天,并发送一个有助于进行网络研究的提示即可。如果您想要一个预先构建的、针对更深入的网络研究而定制的提示,可以使用我们通过此包提供的agentic-research提示。在 Claude Desktop 中,点击聊天输入框中的回形针图标,然后选择Choose an integrationwebresearch研究”→ agentic-research即可访问该提示。

工具

  1. search_google
    • 执行 Google 搜索并提取结果
    • 参数: { query: string }
  2. visit_page
    • 访问网页并提取其内容
    • 参数: { url: string, takeScreenshot?: boolean }
  3. take_screenshot
    • 截取当前页面的屏幕截图
    • 无需任何参数

提示

agentic-research

引导式研究提示,帮助 Claude 进行深入的网络研究。该提示指导 Claude 执行以下操作:

  • 从广泛的搜索开始,了解主题概况
  • 优先考虑高质量、权威的来源
  • 根据研究结果反复完善研究方向
  • 让您随时了解情况,并让您以交互方式指导研究
  • 始终引用带有 URL 的来源

资源

我们将两件事作为 MCP 资源公开:(1)捕获的网页截图,以及(2)研究会话。

截图

截取的屏幕截图会被保存为 MCP 资源。您可以通过 Claude Desktop 中的回形针图标访问截取的屏幕截图。

研究会议

服务器维护一个研究会话,其中包括:

  • 搜索查询
  • 访问过的页面
  • 提取的内容
  • 截图
  • 时间戳

建议

为了获得最佳效果,如果您选择在研究时不使用agentic-research提示,建议 Claude 在研究一般主题时使用高质量的来源可能会有所帮助。例如,您可以提示news today from reuters or AP ,而不是news today

问题

这基本上是 pre-alpha 代码。而且它也是 AIGC,所以可能会有 bug。

如果您遇到问题,检查 Claude Desktop 的 MCP 日志可能会有所帮助:

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

发展

# Install dependencies pnpm install # Build the project pnpm build # Watch for changes pnpm watch # Run in development mode pnpm dev

要求

  • Node.js >= 18
  • Playwright(作为依赖项自动安装)

已验证的平台

  • [x] macOS
  • Linux

执照

麻省理工学院

作者

mzxrai

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

模型上下文协议服务器,使 Claude 能够通过集成 Google 搜索、提取网页内容和捕获屏幕截图来执行网络研究。

  1. Features
    1. Prerequisites
      1. Installation
        1. Usage
          1. Tools
          2. Prompts
          3. Resources
          4. Suggestions
        2. Problems
          1. Development
            1. Requirements
              1. Verified Platforms
                1. License
                  1. Author
                    ID: 5xrmmk1vhi