DuckDuckGo Search
STDIOMCP server integrating DuckDuckGo search capabilities with LLMs for comprehensive web search.
MCP server integrating DuckDuckGo search capabilities with LLMs for comprehensive web search.
This repository is no longer maintained.
The functionality of this tool is now available in mcp-omnisearch, which combines multiple MCP tools in one unified package.
Please use mcp-omnisearch instead.
A Model Context Protocol (MCP) server for integrating DuckDuckGo search capabilities with LLMs. This server provides comprehensive web search functionality with support for various result types and filtering options.
This server requires configuration through your MCP client. Here are examples for different environments:
Add this to your Cline MCP settings:
{ "mcpServers": { "mcp-duckduckgo-search": { "command": "npx", "args": ["-y", "mcp-duckduckgo-search"], "env": { "SERPAPI_KEY": "your-serpapi-api-key" } } } }
For WSL environments, add this to your Claude Desktop configuration:
{ "mcpServers": { "mcp-duckduckgo-search": { "command": "wsl.exe", "args": [ "bash", "-c", "source ~/.nvm/nvm.sh && SERPAPI_KEY=your-serpapi-api-key /home/username/.nvm/versions/node/v20.12.1/bin/npx mcp-duckduckgo-search" ] } } }
The server requires the following environment variable:
SERPAPI_KEY
: Your SerpAPI key (required)The server implements a single MCP tool with configurable parameters:
Perform web searches using the DuckDuckGo search engine.
Parameters:
query
(string, required): Search queryregion
(string, optional): Region code (e.g., us-en, uk-en)
(default: us-en)safe_search
(string, optional): Safe search level (off, moderate,
strict) (default: moderate)date_filter
(string, optional): Filter results by date:
start
(number, optional): Result offset for paginationno_cache
(boolean, optional): Bypass cache for fresh results
(default: false)Response includes:
pnpm install
pnpm build
pnpm dev
The project uses changesets for version management. To publish:
pnpm changeset
pnpm changeset version
pnpm release
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see the LICENSE file for details.