Duckduckgo MCP Server

# duckduckgo-search MCP Server English | [中文](README_zh.md) A Model Context Protocol server for DuckDuckGo Search This is a TypeScript-based MCP

Local serverstdioTypeScript

What is the Duckduckgo MCP server?

Most developer tooling work still happens through a UI a human drives. Duckduckgo MCP server moves it into the conversation instead. # duckduckgo-search MCP Server English | 中文 A Model Context Protocol server for DuckDuckGo Search This is a TypeScript-based MCP server that provides DuckDuckGo search functionality. It demonstrates core MCP concepts.

The tools it exposes

The server publishes 5 tools. What each one is for:

  • Easy-to — use search tool interface
  • duckduckgo_search — Perform web searches using DuckDuckGo API
  • Prerequisites — The Prerequisites tool exposed by this server
  • Installation — The Installation tool exposed by this server
  • Debugging — Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP

Getting it running

Installation goes through your MCP client rather than a global install: point it at pnpm on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What it needs from you

  • Node.js >= 18 - pnpm >= 8.0.0

How it compares

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Duckduckgo's toolset — Easy-to, duckduckgo_search, Prerequisites and 2 more — is a fair guide to whether it matches your workflow. It is maintained by zhsama; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Duckduckgo's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
Easy-touse search tool interface
duckduckgo_searchPerform web searches using DuckDuckGo API
PrerequisitesThe Prerequisites tool exposed by this server.
InstallationThe Installation tool exposed by this server.
DebuggingSince MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector), which is available as a package script:

How to install the Duckduckgo MCP server

{
  "mcpServers": {
    "duckduckgo-mcp-server-zhsama": {
      "command": "npx",
      "args": ["-y", "pnpm"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js >= 18 - pnpm >= 8.0.0

Example prompts to try

  • Use Duckduckgo to Easy-to.
  • Use Duckduckgo to duckduckgo search.
  • Use Duckduckgo to Prerequisites.

Frequently asked questions

The tool requires a `query` string (search term, up to 400 characters). You may optionally set `count` (integer 1–20, default 10) and `safeSearch` (one of `strict`, `moderate`, or `off`, default `moderate`).