DuckDuckGo MCP Server
A free and unlimited web search server that enables AI models to search, crawl, and research web content using DuckDuckGo without requiring API keys. It features parallel crawling and a smart ranking system to prioritize the most relevant information for complex queries.
README
DuckDuckGo MCP Server 🦆
A fast, free, and unlimited web search MCP server using DuckDuckGo. No API keys required!
Why This MCP?
- ✅ 100% Free - No API keys, no subscriptions, no rate limits
- ✅ Works Everywhere - DuckDuckGo HTML endpoint bypasses CAPTCHA
- ✅ 3 Powerful Tools - Search, crawl, and research with AI ranking
- ✅ Parallel Crawling - Fetch multiple pages simultaneously
- ✅ Smart Ranking - Research tool ranks results by relevance to your question
Installation
For Claude Desktop / 100xprompt / Cursor / Windsurf
Add to your MCP config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"duckduckgo": {
"command": "npx",
"args": ["-y", "duckduckgo-mcp"]
}
}
}
From Source
git clone https://github.com/yourusername/duckduckgo-mcp.git
cd duckduckgo-mcp
npm install
npm run build
Then add to config:
{
"mcpServers": {
"duckduckgo": {
"command": "node",
"args": ["/path/to/duckduckgo-mcp/build/index.js"]
}
}
}
Tools
1. search
Quick web search. Returns titles, URLs, and descriptions.
{
"name": "search",
"arguments": {
"query": "latest AI news 2026",
"count": 10
}
}
Parameters:
| Parameter | Type | Default | Max | Description |
|---|---|---|---|---|
query |
string | required | - | Search query |
count |
number | 10 | 20 | Number of results |
2. search_and_crawl
Search + crawl all result pages in parallel. Get full content from each source.
{
"name": "search_and_crawl",
"arguments": {
"query": "best JavaScript frameworks 2026",
"count": 5,
"maxContentLength": 3000
}
}
Parameters:
| Parameter | Type | Default | Max | Description |
|---|---|---|---|---|
query |
string | required | - | Search query |
count |
number | 5 | 10 | Number of results to crawl |
maxContentLength |
number | 3000 | 10000 | Max characters per page |
3. research ⭐
Best for answering questions. Searches, crawls in parallel, then ranks results by relevance to your question using:
| Scoring Factor | Weight | Description |
|---|---|---|
| Keywords | 30% | How many question keywords appear in content |
| Content Quality | 25% | Length, structure, no paywalls |
| Source Authority | 20% | Domain reputation (Wikipedia=10, Reuters=9, etc.) |
| Relevance | 25% | Question type matching (how-to, what, why, etc.) |
{
"name": "research",
"arguments": {
"question": "How does Starlink help Ukraine in the war?",
"count": 5,
"maxContentLength": 3000
}
}
Example Output:
[1] Wikipedia - Score: 6.4/10
Keywords: 10 | Quality: 5 | Authority: 10 | Relevance: 0.6
[2] Defense Magazine - Score: 5.8/10
Keywords: 10 | Quality: 7.5 | Authority: 3 | Relevance: 1.2
Usage Examples
With Claude / 100xprompt
Just ask naturally:
- "Search for the latest news about Tesla"
- "Research how quantum computing works"
- "Find and compare React vs Vue performance"
Programmatic
// Search
const results = await mcp.callTool("search", {
query: "TypeScript best practices",
count: 10,
});
// Research with ranking
const research = await mcp.callTool("research", {
question: "What are the best practices for securing REST APIs?",
count: 5,
});
How It Works
- DuckDuckGo HTML Endpoint - Uses
html.duckduckgo.comwhich returns static HTML - No CAPTCHA - Unlike Google, DuckDuckGo doesn't block automated requests
- Parallel Crawling - All URLs fetched simultaneously for speed
- Smart Extraction - Removes nav, ads, sidebars; extracts main content
Source Authority Scores
High-authority domains get better rankings:
| Domain | Score |
|---|---|
| Wikipedia | 10 |
| Reuters, AP News, BBC | 9 |
| NYT, WSJ, Bloomberg | 8 |
| .gov sites | 8 |
| .edu sites | 7 |
| TechCrunch, Wired, Ars | 6 |
| Medium, Reddit | 3-4 |
Comparison
| Feature | DuckDuckGo MCP | Tavily | Google Search API |
|---|---|---|---|
| Free | ✅ Yes | ❌ No | ❌ No |
| API Key | ❌ Not needed | ✅ Required | ✅ Required |
| Rate Limits | ❌ None | ✅ Yes | ✅ Yes |
| CAPTCHA Issues | ❌ No | ❌ No | ✅ Yes |
| Parallel Crawl | ✅ Yes | ✅ Yes | ❌ No |
| Result Ranking | ✅ Yes | ✅ Yes | ❌ No |
Limitations
- Some sites block scrapers (403 errors) - this is normal
- Content quality varies by source
- Not suitable for JavaScript-heavy SPA pages
Development
# Install dependencies
npm install
# Build
npm run build
# Test
echo '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"search","arguments":{"query":"test"}},"id":1}' | node build/index.js
Contributing
PRs welcome! Ideas:
- Add more authority domains
- Improve content extraction
- Add caching layer
- Support for images/news search
License
MIT © 2026
Star History
If you find this useful, please ⭐ star the repo!
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。