Home / Servers

@ericthered926/duckduckgo-mcp-server

by ericthered926

DuckDuckGo MCP Server

A Model Context Protocol (MCP) server that provides DuckDuckGo search functionality for AI assistants.

npm version

Attribution: This project is a fork of zhsama/duckduckgo-mcp-server, originally created by zhsama. This fork adds English localization, news search, region support, time filtering, and modern tooling.

Features

  • Web Search - Search the web with region-specific and time-filtered results
  • News Search - Search recent news articles with source and date information
  • Token Optimization - Configurable result limits, snippet truncation, and formatting for low-VRAM LLMs
  • SafeSearch - Content filtering (strict, moderate, off)
  • Region Support - Localized results for different countries
  • Time Filtering - Filter results by day, week, month, year
  • Rate Limiting - Configurable rate limits to prevent abuse
  • Configurable Logging - Debug, info, warn, error, or none

Installation

Prerequisites

  • Node.js >= 18.0.0 (tested with Node 24)
  • npm

Install & Build

npm install
npm run build

Available Tools

duckduckgo_web_search

Performs a web search using DuckDuckGo.

ParameterTypeRequiredDefaultDescription
querystringYes-Search query (max 400 characters)
limitnumberNoDDG_MAX_RESULTSOverride default result limit (1-20)
countnumberNoDDG_MAX_RESULTS[Deprecated: use limit] Number of results
safeSearchstringNo"moderate"Filter: "strict", "moderate", or "off"
regionstringNo"wt-wt"Region code (e.g., "us-en", "uk-en", "de-de")
timestringNo"all"Time range: "day", "week", "month", "year", "all"

Example:

{
  "query": "TypeScript best practices",
  "count": 5,
  "region": "us-en",
  "time": "month"
}

duckduckgo_news_search

Search for recent news articles.

ParameterTypeRequiredDefaultDescription
querystringYes-News search query (max 400 characters)
limitnumberNoDDG_MAX_RESULTSOverride default result limit (1-20)
countnumberNoDDG_MAX_RESULTS[Deprecated: use limit] Number of results
safeSearchstringNo"moderate"Filter: "strict", "moderate", or "off"
timestringNo"all"Time range: "day", "week", "month", "year", "all"

Example:

{
  "query": "artificial intelligence",
  "count": 10,
  "time": "week"
}

Supported Regions

CodeRegion
wt-wtWorldwide
us-enUnited States
uk-enUnited Kingdom
ca-enCanada (English)
au-enAustralia
de-deGermany
fr-frFrance
es-esSpain
it-itItaly
jp-jpJapan
br-ptBrazil
mx-esMexico
in-enIndia

Other region codes following the xx-xx format may also work.

Configuration

Environment Variables

Token Optimization (for low-VRAM LLMs)

| Variable

Related servers

n8n

by n8n-io

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

NOASSERTION198,904

@modelcontextprotocol/server-everything

Official

by modelcontextprotocol

MCP server that exercises all the features of the MCP protocol

89,105

@modelcontextprotocol/server-filesystem

Official

by modelcontextprotocol

MCP server for filesystem access

SEE LICENSE IN LICENSE89,105

mcp-server-fetch

Official

by modelcontextprotocol

A Model Context Protocol server providing tools to fetch and convert web content for usage by LLMs

89,105