mcp-duckduckgo-搜索
⚠️ 通知
此存储库不再维护。
该工具的功能现已在mcp-omnisearch中提供,它将多个 MCP 工具组合在一个统一的包中。
请改用mcp-omnisearch 。
一个模型上下文协议 (MCP) 服务器,用于将 DuckDuckGo 搜索功能与 LLM 集成。该服务器提供全面的 Web 搜索功能,支持各种结果类型和过滤选项。
特征
- 🔍 使用 DuckDuckGo 的搜索引擎进行全面的网络搜索
- 📊 丰富的结果类型包括:
- 知识图谱信息
- 自然搜索结果
- 新闻文章
- 视频内容
- 图像结果
- 相关搜索
- 🌍 特定区域搜索支持
- 🛡️可配置的安全搜索级别
- 📅 基于日期的过滤选项
- 📄 分页支持
- 💾 内置结果缓存
- 🔒 安全搜索选项(关闭、中等、严格)
配置
此服务器需要通过您的 MCP 客户端进行配置。以下是不同环境的示例:
克莱恩配置
将其添加到您的 Cline MCP 设置中:
带有 WSL 配置的 Claude 桌面
对于 WSL 环境,将其添加到您的 Claude Desktop 配置中:
环境变量
服务器需要以下环境变量:
SERPAPI_KEY
:您的 SerpAPI 密钥(必需)
API
服务器实现了具有可配置参数的单个 MCP 工具:
ddg_搜索
使用 DuckDuckGo 搜索引擎执行网络搜索。
参数:
query
(字符串,必需):搜索查询region
(字符串,可选):区域代码(例如,us-en,uk-en)(默认值:us-en)safe_search
(字符串,可选):安全搜索级别(关闭,中等,严格)(默认值:中等)date_filter
(字符串,可选):按日期过滤结果:- ‘d’:过去一天
- 'w':过去一周
- ‘m’:上个月
- ‘y’:去年
- 自定义范围:'2023-01-01..2023-12-31'
start
(数字,可选):分页的结果偏移量no_cache
(布尔值,可选):绕过缓存获取新结果(默认值:false)
响应包括:
- 知识图谱数据(可用时)
- 自然搜索结果
- 新闻文章
- 视频内容
- 图像结果
- 相关搜索
- 搜索元数据
发展
设置
- 克隆存储库
- 安装依赖项:
- 构建项目:
- 以开发模式运行:
出版
该项目使用变更集进行版本管理。要发布:
- 创建变更集:
- 对包进行版本控制:
- 发布到 npm:
贡献
欢迎贡献代码!欢迎提交 Pull 请求。
执照
MIT 许可证 - 有关详细信息,请参阅LICENSE文件。
致谢
- 基于模型上下文协议
- 由DuckDuckGo通过SerpAPI提供支持
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
支持与 LLM 的 DuckDuckGo 搜索功能集成,支持全面的网络搜索、区域过滤、结果类型以及具有缓存和可自定义搜索参数的安全浏览。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityIntegrates Tavily's search API with LLMs to provide advanced web search capabilities, including intelligent result summaries, domain filtering for quality control, and configurable search parameters.Last updated -36689JavaScriptMIT License
- AsecurityAlicenseAqualityEnables efficient web search integration with Jina.ai's Search API, offering clean, LLM-optimized content retrieval with support for various content types and configurable caching.Last updated -16644JavaScriptMIT License
- -securityFlicense-qualityEnables LLMs to interact with DataForSEO and other SEO APIs through natural language, allowing for keyword research, SERP analysis, backlink analysis, and local SEO tasks.Last updated -60047TypeScript
- -securityFlicense-qualityConnects to Cursor and enables deep web searches via Linkup and RAG capabilities using LlamaIndex.Last updated -1Python