Duckduckgo
A Model Context Protocol (MCP) server that provides web search capabilities through DuckDuckGo, with additional features for content fetching and parsing.
A Model Context Protocol (MCP) server that provides web search capabilities through DuckDuckGo, with additional features for content fetching and parsing.
{
"mcpServers": {
"ddg-search": {
"command": "uvx",
"args": [
"duckduckgo-mcp-server"
]
}
}
}
# DuckDuckGo Search MCP Server [](https://pypi.org/project/duckduckgo-mcp-server/) [](https://pypi.org/project/duckduckgo-mcp-server/) [](https://pypi.org/project/duckduckgo-mcp-server/) A Model Context Protocol (MCP) server that provides web search capabilities through DuckDuckGo, with additional features for content fetching and parsing. ## Quick Start ```bash uvx duckduckgo-mcp-server ``` ## Features - **Web Search**: Search DuckDuckGo with advanced rate limiting and result formatting - **Content Fetching**: Retrieve and parse webpage content with intelligent text extraction - **Rate Limiting**: Built-in protection against rate limits for both search and content fetching - **Error Handling**: Comprehensive error handling and logging - **LLM-Friendly Output**: Results formatted specifically for large language model consumption ## Installation Install from PyPI using `uv`: ```bash uv pip install duckduckgo-mcp-server ``` ## Usage ### Running with Claude Desktop 1. Download [Claude Desktop](https://claude.ai/download) 2. Create or edit your Claude Desktop configuration: - On macOS: `~/Library/Application Support/Claude/claude_desktop_config.json` - On Windows: `%APPDATA%\Claude\claude_desktop_config.json` Add the following configuration: **Basic Configuration (No SafeSearch, No Default Region):** ```json { "mcpServers": { "ddg-search": { "command": "uvx", "args": ["duckduckgo-mcp-server"] } } } ``` **With SafeSearch and Region Configuration:** ```json { "mcpServers": { "ddg-search": { "command": "uvx", "args": ["duckduckgo-mcp-server"], "env": { "DDG_SAFE_SEARCH": "STRICT", "DDG_REGION": "cn-zh" } } } } ``` **Configuration Options:** - `DDG_SAFE_SEARCH`: SafeSearch filtering level (optional) - `STRICT`: Maximum content filtering (kp=1) - `MODERATE`: Balanced filtering (kp=-1, default if not specified) - `OFF`: No content filtering (kp=-2) - `DDG_REGION`: Default region/language code (optional, examples below) - `us-en`: United States (English) - `cn-zh`: China (Chinese) - `jp-ja`: Japan (Japanese) - `wt-wt`: No specific region - Leave empty for DuckDuckGo's default behavior 3. Restart Claude Desktop ### Running with Claude Code 1. Download [Claude Code](https://github.com/anthropics/claude-code) 2. Ensure [`uvenv`](https://github.com/robinvandernoord/uvenv) is installed and the `uvx` command is available 3. Add the MCP server: `claude mcp add ddg-search uvx duckduckgo-mcp-server` ### Running with SSE or Streamable HTTP The server supports alternative transports for use with other MCP clients: ```bash # SSE transport uvx duckduckgo-mcp-server --transport sse # Streamable HTTP transport uvx duckduckgo-mcp-server --transport streamable-http ``` The default transport is `stdio`, which is used by Claude Desktop and Claude Code. When running with `sse` or `streamable-http`, override the default bind address (`127.0.0.1:8000`) with the `--host` and `--port` flags: ```bash uvx duckduckgo-mcp-server --transport streamable-http --host 0.0.0.0 --port 7070 ``` ### Fetch Backend (bypassing bot detection) Some sites block the default `ht...
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
Chrome MCP Server is a Chrome extension-based Model Context Protocol (MCP) server that exposes your Chrome browser funct...
面向 AWS 文档和云服务知识查询的 MCP 服务,适合架构设计和云产品检索。
Unity MCP acts as a bridge, allowing AI assistants (like Claude, Cursor) to interact directly with your Unity Editor via...
A Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and exte...
Build effective agents using Model Context Protocol and simple workflow patterns