基本能力
产品定位
DuckDuckGo Search MCP 是一个隐私友好的网络搜索和内容提取工具,适用于需要快速获取网页内容或进行网络搜索的场景。
核心功能
- 🌐 使用 DuckDuckGo HTML 进行网页搜索
- 📄 带有智能过滤的 URL 内容提取
- 📊 URL 元数据提取(标题、描述、图片)
- ⚡ 通过缓存优化性能
- 🛡️ 安全功能,包括速率限制和轮换用户代理
- 🔌 符合 MCP 标准的服务器实现
- 🆓 无需 API 密钥,开箱即用
适用场景
- 需要快速获取网页内容的开发者
- 需要集成网络搜索功能的 AI 助手
- 需要提取网页元数据的应用程序
工具列表
- 🔍 Web Search Tool (
web-search
) - 功能:执行网络搜索
-
参数:
query
(string, required): 搜索查询page
(integer, optional, default: 1): 页码numResults
(integer, optional, default: 10): 结果数量 (1-20)
-
📄 Fetch URL Tool (
fetch-url
) - 功能:提取 URL 内容
-
参数:
url
(string, required): 要提取的 URLmaxLength
(integer, optional, default: 10000): 最大内容长度extractMainContent
(boolean, optional, default: true): 提取主要内容includeLinks
(boolean, optional, default: true): 包含链接文本includeImages
(boolean, optional, default: true): 包含图片 alt 文本excludeTags
(array, optional): 要排除的标签
-
📊 URL Metadata Tool (
url-metadata
) - 功能:提取 URL 元数据
- 参数:
url
(string, required): 要提取元数据的 URL
常见问题解答
- Q: 是否需要 API 密钥?
A: 不需要,该工具开箱即用。 - Q: 如何与 MCP 客户端集成?
A: 在 MCP 客户端配置中添加服务器信息即可。
使用教程
使用依赖
- Node.js 环境
安装教程
-
全局安装
bash
npm install -g @oevortex/ddg_search
运行:
bash
ddg-search-mcp -
本地安装(开发)
bash
git clone https://github.com/OEvortex/ddg_search.git
cd ddg_search
npm install
npm start -
快速启动(无需安装)
bash
npx -y @oevortex/ddg_search
调试方式
- 检查版本:
bash
npx -y @oevortex/ddg_search --version - 查看帮助:
bash
npx -y @oevortex/ddg_search --help
与 MCP 客户端集成
在 MCP 客户端配置中添加:
json
{
"mcpServers": {
"ddg-search": {
"command": "npx",
"args": ["-y", "@oevortex/ddg_search"]
}
}
}
或(全局安装时):
json
{
"mcpServers": {
"ddg-search": {
"command": "ddg-search-mcp"
}
}
}