Ddg MCP Server

DuckDuckGo search API MCP - A server that provides DuckDuckGo search capabilities through the Model Context Protocol.

Local serverstdioPython

What is the Ddg MCP MCP server?

Ddg MCP becomes available to MCP clients through the ddg mcp mcp server. DuckDuckGo search API MCP - A server that provides DuckDuckGo search capabilities through the Model Context Protocol.

What Ddg MCP does

DuckDuckGo search API MCP - A server that provides DuckDuckGo search capabilities through the Model Context Protocol.

Tools it exposes

Once connected, the assistant can call these 11 tools directly:

  • ddg-text-search — Search the web for text results using DuckDuckGo
  • Required — "keywords" - Search query keywords
  • Optional — "region", "safesearch", "timelimit", "max_results"
  • ddg-image-search — Search the web for images using DuckDuckGo
  • ddg-news-search — Search for news articles using DuckDuckGo
  • ddg-video-search — Search for videos using DuckDuckGo
  • ddg-ai-chat — Chat with DuckDuckGo AI
  • Prompts — The server provides the following prompts: - search-results-summary: Creates a summary of DuckDuckGo search results - Required "query" argument for the
  • Tools — The server implements the following DuckDuckGo search tools:
  • Prerequisites — The Prerequisites tool exposed by this server
  • Debugging — Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the [MCP

Installing the ddg mcp mcp server

The server is distributed via npm as @modelcontextprotocol/inspector, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Configuration

Before the server will start you need to supply 2 environment variables: UV_PUBLISH_TOKEN, PYPI_API_TOKEN. Keep credentials in your client's env block or a secrets manager rather than committing them.

Requirements

  • Python 3.9 or higher - uv (recommended) or pip

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. Ddg MCP sits in that group, and the shape of its toolset — ddg-text-search, Required, Optional among others — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • It will not start until its required credentials are present, so set those before wondering why the tools never appear.
  • With 11 tools exposed, expect a noticeable bump in prompt size — disable it in projects that never use Ddg MCP.
  • Maintained by misanthropic-ai, written in Python.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the ddg mcp mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
ddg-text-searchSearch the web for text results using DuckDuckGo
Required"keywords" - Search query keywords
Optional"region", "safesearch", "timelimit", "max_results"
ddg-image-searchSearch the web for images using DuckDuckGo
ddg-news-searchSearch for news articles using DuckDuckGo
ddg-video-searchSearch for videos using DuckDuckGo
ddg-ai-chatChat with DuckDuckGo AI
PromptsThe server provides the following prompts: - **search-results-summary**: Creates a summary of DuckDuckGo search results - Required "query" argument for the search term - Optional "style" argument to control detail level
ToolsThe server implements the following DuckDuckGo search tools:
PrerequisitesThe Prerequisites tool exposed by this server.
DebuggingSince MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).

How to install the Ddg MCP MCP server

"mcpServers": {
    "ddg-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/Users/shannon/Workspace/artivus/ddg-mcp",
        "run",
        "ddg-mcp"
      ]
    }
  }

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Python 3.9 or higher - uv (recommended) or pip
VariableDescriptionRequired
UV_PUBLISH_TOKENCredential the server authenticates with.Yes
PYPI_API_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Ddg MCP to ddg-text-search.
  • Use Ddg MCP to Required.
  • Use Ddg MCP to Optional.

Frequently asked questions

It connects Ddg MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 11 tools (ddg-text-search, Required, Optional, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Ddg MCP directly.