DuckDuckGo Web Search MCP Server
DuckDuckGo 网络搜索 MCP 服务器
该项目提供了一个 MCP(模型上下文协议)服务器,允许您使用 DuckDuckGo 搜索引擎搜索网络,并可选择获取和汇总找到的 URL 的内容。
特征
**网络搜索:**使用 DuckDuckGo 搜索网络。
**结果提取:**从搜索结果中提取标题、URL 和片段。
**内容获取(可选):**获取搜索结果中找到的 URL 的内容,并使用 jina api 将其转换为 markdown 格式。
**并行获取:**同时获取多个 URL 以加快处理速度。
**错误处理:**优雅地处理搜索和获取过程中的超时和其他潜在错误。
**可配置:**允许您设置返回的最大搜索结果数。
Jina API :使用 jina api 将 html 转换为 markdown。
符合 MCP :此服务器设计用于与任何兼容 MCP 的客户端一起使用。
Related MCP server: DuckDuckGo MCP Server
用法
先决条件:
uvx包管理器
Claude桌面配置
如果您正在使用 Claude Desktop,则可以将服务器添加到
claude_desktop_config.json文件中。
{ "mcpServers": { "web-search-duckduckgo": { "command": "uvx", "args": [ "--from", "git+https://github.com/kouui/web-search-duckduckgo.git@main", "main.py" ] } } }上述配置不起作用,您可能需要将存储库克隆到本地电脑并使用以下配置
{ "mcpServers": { "web-search-duckduckgo": { "command": "uv", "args": [ "--directory", "/path/to/web-search-duckduckgo", "run", "main.py" ] } } }工具
在您的 MCP 客户端(例如 Claude)中,您现在可以使用以下工具:
**
search_and_fetch:**搜索网络并获取 URL 的内容。query:搜索查询字符串。limit:返回的最大结果数(默认值:3,最大值:10)。
**
fetch:**获取特定 URL 的内容。url:要获取的 URL。
执照
该项目采用 MIT 许可证。(如果您想指定许可证,请添加许可证文件)。
Available Tools
2 toolsfetchC
scrape the html content and return the markdown format using jina api.
Args:
url: The search query string
Returns:
text : html in markdown format
Inputs: url (required).
search_and_fetchA
Search the web using DuckDuckGo and return results.
Args:
query: The search query string
limit: Maximum number of results to return (default: 3, maximum 10)
Returns:
List of dictionaries containing
- title
- url
- snippet
- summary markdown (empty if not available)
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have distinct primary purposes: 'search_and_fetch' performs web searches and returns results, while 'fetch' scrapes HTML content from a given URL. However, there is some potential for confusion because 'fetch' accepts a 'url' argument but its description mentions 'search query string' (likely a documentation error), which could blur the boundary between searching and fetching.
The tool names follow a consistent verb-based pattern ('fetch' and 'search_and_fetch'), with clear action-oriented naming. The minor deviation is that 'search_and_fetch' uses an 'and' conjunction, but overall the naming is readable and predictable.
With only 2 tools, the server feels thin for a web search and scraping domain. While it covers basic search and fetch operations, more tools (e.g., for advanced search filtering, caching, or handling different content types) would provide better scope. It's borderline but not severely lacking.
The server covers core web search and content fetching workflows, but there are notable gaps. For example, it lacks tools for managing search history, refining queries, handling pagination, or supporting different output formats beyond markdown. Agents can work around these, but the surface is not fully comprehensive.
Maintenance
Related MCP Connectors
Web search, fetch, extract, and research for AI agents. Markdown output + AI-synthesized answers.
LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.
Web knowledge fetching tools for your agent.
Search the web, fetch any URL and map a site as clean, LLM-ready Markdown.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables web searching through DuckDuckGo and fetching content from webpages. Provides search capabilities with configurable result limits and webpage content extraction for AI assistants.-
- AlicenseBqualityDmaintenanceEnables web search through DuckDuckGo and webpage content fetching with intelligent text extraction. Features built-in rate limiting and LLM-optimized result formatting for seamless integration with language models.2MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform real-time web searches, fetch webpage content, and get search suggestions using DuckDuckGo's privacy-focused search engine.-
- AlicenseNot gradedqualityDmaintenanceEnables web searching through Google, DuckDuckGo, and Bing using a headless Chrome browser, returning structured results with titles, URLs, and snippets. Also supports fetching and extracting text content from any webpage.17MIT