MCP Web Research Server 安装与配置指南
mcp-webresearch MCP web research server (give Claude real-time info from the web) 项目地址: https://gitcode.com/gh_mirrors/mcpw/mcp-webresearch
1. 项目基础介绍
MCP Web Research Server 是一个基于 Model Context Protocol (MCP) 的服务器,旨在为 web 研究提供实时信息。它能够集成到 Claude Desktop 应用中,帮助用户在聊天过程中进行深入的 web 研究。
主要编程语言:JavaScript
2. 项目使用的关键技术和框架
- Node.js:服务器的运行环境。
- Playwright:用于网页自动化和内容提取。
- Model Context Protocol (MCP):用于与 Claude Desktop 应用进行通信的协议。
3. 项目安装和配置准备工作
在开始安装之前,请确保您的系统中已经安装了以下软件:
- Node.js(版本 >= 18)
- npm 或 pnpm(Node.js 的包管理器)
- Claude Desktop 应用
安装步骤
步骤 1:克隆项目
首先,您需要从 GitHub 上克隆项目到本地计算机。打开命令行工具,执行以下命令:
git clone https://github.com/mzxrai/mcp-webresearch.git
步骤 2:安装依赖
进入项目目录,安装项目所需的依赖:
cd mcp-webresearch
pnpm install
或者如果您使用 npm:
npm install
步骤 3:配置 Claude Desktop
为了使 MCP Web Research Server 与 Claude Desktop 应用集成,您需要在 Claude 的配置文件中添加服务器条目。
找到 Claude Desktop 应用的配置文件 claude_desktop_config.json
(在 macOS 系统中通常位于 ~/Library/Application Support/Claude/claude_desktop_config.json
),然后添加以下内容:
{"mcpServers": {"webresearch": {"command": "npx","args": ["-y", "@mzxrai/mcp-webresearch@latest"]}}
}
步骤 4:启动服务器
在项目目录中,运行以下命令以启动 MCP Web Research Server:
pnpm dev
或者如果您使用 npm:
npm run dev
现在,您的 MCP Web Research Server 已经启动并运行,可以与 Claude Desktop 应用进行通信了。
请按照上述步骤操作,确保每一步都正确执行。如果遇到任何问题,可以检查 Claude Desktop 的 MCP 日志以获取更多信息。
mcp-webresearch MCP web research server (give Claude real-time info from the web) 项目地址: https://gitcode.com/gh_mirrors/mcpw/mcp-webresearch
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考