Model Context Protocol (MCP) Server for the RAG Web Browser Actor 🌐
一个用于RAG Web浏览器角色的MCP Server
✨ 功能简介
这个 MCP 服务器使 AI 代理能够:
- 执行网络搜索并获取结果
- 抓取网页内容并以 Markdown 格式返回
- 与 RAG 网页浏览器 Actor 无缝集成
🚀 安装步骤
前提条件
- MacOS 或 Windows
- Claude Desktop 或其他 MCP 客户端
- Node.js v18+
- Apify API 令牌
设置
-
安装 MCP 服务器
git clone git@github.com:apify/mcp-server-rag-web-browser.git cd mcp-server-rag-web-browser npm install npm run build
-
配置 Claude Desktop
编辑配置文件:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%/Claude/claude_desktop_config.json
"mcpServers": { "rag-web-browser": { "command": "npx", "args": [ "@apify/mcp-server-rag-web-browser" ], "env": { "APIFY_TOKEN": "your-apify-api-token" } } }
- macOS:
-
重启 Claude Desktop
- 完全退出后再重启
- 确认看到 🔌 图标表示服务器已连接
💡 使用示例
向 Claude 提问:
What is the latest news about AI advancements?
Find information about Model Context Protocol.
🔧 调试
使用 MCP Inspector:
export APIFY_TOKEN=your-apify-api-token
npx @modelcontextprotocol/inspector npx -y @apify/mcp-server-rag-web-browser
🛠️ 可用工具
search: 执行网络搜索并抓取内容
- 参数:
query
(必需): 搜索词或URLmaxResults
(可选): 抓取结果数量 (默认: 1)outputFormats
(可选): 输出格式 (默认: ['markdown'])