ducksearch
网页搜索和内容提取工具,
快速使用
搜索网络
bashnpx -y ducksearch search "搜索关键词" npx -y ducksearch search "Claude AI" -n 5 # 限制结果数量 npx -y ducksearch search "Claude AI" -o # 自动打开第一个结果
获取网页内容
bashnpx -y ducksearch fetch https://example.com npx -y ducksearch fetch https://example.com --raw # 原始 HTML npx -y ducksearch fetch https://example.com -o out.txt # 保存到文件 npx -y ducksearch fetch https://example.com --json # JSON 格式
MCP 服务器配置
在 Claude Code 中使用 ducksearch 作为 MCP 服务器:
json{ "mcpServers": { "ducksearch": { "command": "npx", "args": ["-y", "ducksearch", "mcp"] } } }
MCP 工具
- DuckDuckGoWebSearch: 搜索网络内容,返回标题、链接、摘要
- UrlContentExtractor: 提取网页纯文本内容
全局安装(可选)
bashnpm install -g ducksearch ducksearch search "关键词" ducksearch fetch https://example.com


