Data as of
DuckDuckGo Search MCP Server for Claude Code: Setup & Config
Claude Code: Give MCP assistants DuckDuckGo search and webpage text retrieval.
What you can do with DuckDuckGo Search in Claude Code
Choose it for DuckDuckGo discovery plus controlled page extraction in one MCP server.
- Find sources for an assistant-led research task.
- Apply administrator-controlled SafeSearch filtering.
Before you start: DuckDuckGo Search in Claude Code
- uvx available to the MCP client
- An MCP-compatible client
The README documents this default stdio launch. SSE and streamable HTTP are alternatives. Install the browser extra to enable curl-based fallback when search endpoints block httpx.
DuckDuckGo Search Claude Code configuration
Choose Claude Code configuration scope
For DuckDuckGo Search MCP Server, open Project scope: .mcp.json at the repository root. Project JSON: merge into mcpServers; user scope: use the CLI.
Add DuckDuckGo Search MCP Server to Claude Code
Use the duckduckgo-mcp-server entry below in mcpServers. Keep DuckDuckGo Search MCP Server's documented stdio connection fields and your other Claude Code entries.
Check DuckDuckGo Search MCP Server in Claude Code
DuckDuckGo Search MCP Server: Inspect claude mcp list and /mcp status.
Config file · Project scope: .mcp.json at the repository root
{
"mcpServers": {
"duckduckgo-mcp-server": {
"type": "stdio",
"command": "uvx",
"args": [
"duckduckgo-mcp-server"
],
"env": {
"DDG_SAFE_SEARCH": "<optional STRICT, MODERATE, or OFF filtering level>",
"DDG_REGION": "<optional default region and language code>"
}
}
}
}claude mcp add-json --scope project 'duckduckgo-mcp-server' '{"type":"stdio","command":"uvx","args":["duckduckgo-mcp-server"],"env":{"DDG_SAFE_SEARCH":"<optional STRICT, MODERATE, or OFF filtering level>","DDG_REGION":"<optional default region and language code>"}}'DuckDuckGo Search tools available to Claude Code
DuckDuckGo Search's stored tool list documents 2 tools; compare it with Claude Code's connected tool list, because the stored list is not a live check.
- search
For DuckDuckGo Search's search, review the permission request and arguments in Claude Code before approval.
Query DuckDuckGo for titles, links, and snippets, with result-count and regional controls.
- fetch_content
For DuckDuckGo Search's fetch_content, review the permission request and arguments in Claude Code before approval.
Troubleshooting DuckDuckGo Search in Claude Code
- If DuckDuckGo Search MCP Server fails to start, check uvx duckduckgo-mcp-server (from uv, for Python tools), the working directory, and Claude Code's selected scope; inspect claude mcp list and /mcp.
- DuckDuckGo Search MCP Server: check DDG_REGION, DDG_SAFE_SEARCH; keep credentials out of shared .mcp.json.
- DuckDuckGo Search MCP Server uses stdio here: Claude Code must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
- Known limitation: Browser fallback requires an additional dependency.
- Known limitation: Search and fetch operations have separate rate limits.
- Known limitation: Some sites block the default HTTP backend.
- General Claude Code troubleshooting lives in the /clients/claude-code guide.
DuckDuckGo Search MCP Server — details. Claude Code guide