要通过 Smithery 自动安装 Web Scout for Claude Desktop:
npx -y @smithery/cli install @pinkpixel-dev/web-scout-mcp --client claude
npm install -g @pinkpixel/web-scout-mcp
npm install @pinkpixel/web-scout-mcp
全局安装后运行:
web-scout-mcp
在您的 MCP 客户端的 config.json 中添加以下内容(例如 Claude Desktop、Cursor 等):
{
"mcpServers": {
"web-scout": {
"command": "npx",
"args": [
"-y",
"@pinkpixel/web-scout-mcp@latest"
]
}
}
}
当嵌入包并自己调用 createServer() 时,设置环境变量 WEB_SCOUT_DISABLE_AUTOSTART=1。默认情况下,运行发布的入口点(例如 node dist/index.js 或 npx @pinkpixel/web-scout-mcp)会自动引导 stdio 运输。
该服务器提供以下 MCP 工具:
使用 DuckDuckGo 搜索引擎发起网络搜索查询,并返回一个结构良好的发现列表。
输入:
query (字符串):搜索查询字符串maxResults (数字,可选):返回的最大结果数(默认值:10)示例:
{
"query": "最新的人工智能进展",
"maxResults": 5
}
输出: 格式化的搜索结果列表,包含标题、URL 和摘要。
抓取并从网页中提取干净、可读的内容,删除不必要的元素如脚本、样式和导航。
输入:
url:单个 URL 字符串或 URL 字符串数组示例(单个 URL):
{
"url": "https://example.com/article"
}
示例(多个 URL):
{
"url": [
"https://example.com/article1",
"https://example.com/article2"
]
}
输出: 指定 URL 的提取文本内容。
# 克隆仓库
git clone https://github.com/pinkpixel-dev/web-scout-mcp.git
cd web-scout-mcp
# 安装依赖
npm install
# 构建
npm run build
# 运行
npm start
有关项目的更多详细信息,请参阅以下资源:
该项目根据 Apache 2.0 许可证 授权。
<p align="center"> <sub>由 <a href="https://pinkpixel.dev">Pink Pixel</a> 制作 ❤️</sub> <br> <sub>✨ 梦想它,像素化它 ✨</sub> </p>