DuckDuckGo MCP Server
DuckDuckGo MCP Server
A Model Context Protocol (MCP) server that enables AI assistants to perform real-time web searches using DuckDuckGo.
Features
Web Search: Search the web with DuckDuckGo
Content Fetching: Extract clean content from web pages
Search Suggestions: Get related search suggestions
Dual Mode: stdio (local) and HTTP (remote) support
Rate Limiting: Built-in protection against abuse
Quick Start
Local Setup (Claude Desktop)
Install dependencies:
python -m venv venv
source venv/bin/activate
pip install -r requirements.txtConfigure Claude Desktop (
~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"duckduckgo-search": {
"command": "/path/to/venv/bin/python",
"args": ["/path/to/run_mcp_server.py"]
}
}
}Configuration
Option | Default | Description |
| "http" | "stdio" for local, "http" for remote |
| 3000 | HTTP port (http mode only) |
| 30 | Max searches per minute |
| 10 | Default number of results |
⚠️ Legal Notice
This software uses an DuckDuckGo scraping library.
For Educational Use Only:
✅ Personal learning and research
✅ Local development and testing
❌ Commercial use or production deployments
❌ High-volume automated searches
No Warranty: Use at your own risk. The author assumes no liability.
Commercial Alternatives:
Bing Search API - 1,000 free queries/month
Google Custom Search API - 100 free queries/day
License
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rkampani/duckduckgo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server