Skip to content
← All MCP servers

Is the DuckDuckGo MCP server safe? What it can reach

What the DuckDuckGo MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Community serverChecked

This is a community server from the nickclyde GitHub account, not a DuckDuckGo product. It runs locally over stdio, needs no account or key, and has three tools: search the web, fetch a page as text, and expand a shortened link. It cannot change anything on an account, but every fetched page is untrusted text. Its fetch guard blocks private addresses by default.

Who maintains it

ImplementationKindStatus
nickclyde/duckduckgo-mcp-server (community)Communityactive

It runs as a local process on your machine.

How it signs in

No account or API key. The server sends searches to DuckDuckGo and fetches pages from your machine, so requests carry your network identity.

What its tools can do

KindTools
Readsearch, fetch_content, expand_link
Writenone documented
Can’t be undonenone documented

fetch_content makes outbound GET requests to any public URL the agent names. By default it refuses loopback, private, link-local and cloud metadata addresses.

Built-in limits

OptionWhat it does
DDG_ALLOW_PRIVATE_URLS / --allow-private-urlsOff by default. Leave it off so fetch_content cannot reach internal hosts. Turning it on removes the private-address guard.
DDG_SEARCH_RPM and DDG_FETCH_RPMCaps search requests (default 30 per minute) and fetch_content requests (default 20 per minute).
DDG_FETCH_HOST_RPMOptional per-host fetch cap. Off by default.
DDG_SAFE_SEARCHSets SafeSearch to STRICT, MODERATE (default) or OFF.
--transport, --host, --allowed-hosts, --allowed-originsStdio is the default. The HTTP transports bind to 127.0.0.1:8000 and allow only localhost Host and Origin headers unless you list others.
DDG_SSL_VERIFY=0 / --no-ssl-verifyTurns off TLS certificate checks. The README says to use DDG_CA_CERTS with your proxy’s CA bundle instead.

The risks

  • A page the agent fetches can carry instructions, and the agent may read them as if you wrote them. The tool returns that page text straight into the session.
  • fetch_content sends a GET request to any public URL, so an injected instruction can make the agent request a URL that encodes text from your session in its query string.
  • Search queries leave your machine for DuckDuckGo, so anything the agent puts in a query is disclosed to that service.
  • If you start an HTTP transport with --host 0.0.0.0 or disable DNS-rebinding protection, anyone who can reach the port can run searches and fetches from your network.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add duckduckgo -- uvx duckduckgo-mcp-server

Claude Code names MCP tools mcp__duckduckgo__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "ask": [
      "mcp__duckduckgo__fetch_content"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.duckduckgo]
command = "uvx"
args = ["duckduckgo-mcp-server"]

Checklist

  • Keep stdio transport. If you use HTTP, leave the host on 127.0.0.1.
  • Leave DDG_ALLOW_PRIVATE_URLS unset so fetch_content cannot reach internal addresses.
  • Ask before fetch_content runs on a URL you did not choose.
  • Treat search results and fetched pages as untrusted text.

Checked against the vendor documentation on November 25, 2026. nickclyde/duckduckgo-mcp-server README · Repository metadata (GitHub API)

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing