skillfed

duckduckgo-mcp-server

MCP Server for searching via DuckDuckGo

duckduckgo-mcp-server v0.6.1 170.8K downloads/30d#10,387 on PyPI1,413
Permissive license Active released

What it is and what it does

This package implements a Model Context Protocol (MCP) server that exposes DuckDuckGo web search and content fetching as tools for large language models and MCP clients. It wraps DuckDuckGo's search endpoint and provides intelligent webpage content extraction, with built-in rate limiting, error handling, and result formatting optimized for LLM consumption. The server supports multiple transport protocols (stdio for Claude Desktop, SSE and streamable HTTP for custom clients) and includes configurable SafeSearch filtering and regional settings via environment variables.

The package depends on httpx for HTTP requests, beautifulsoup4 for HTML parsing, httpcore for low-level networking, and the mcp library for protocol implementation. It includes an optional browser backend using curl_cffi to bypass TLS-fingerprint-based bot detection on sites like DuckDuckGo's own search endpoint and Cloudflare-protected targets. The server defaults to httpx for search but automatically falls back to curl when it detects blocking (HTTP 202/403), provided the optional browser extra is installed.

Use it for:

  • Integrate live web search into Claude Desktop or Claude Code workflows without leaving the chat interface.
  • Build custom MCP clients that need real-time search and webpage content retrieval for AI-assisted research or fact-checking.
  • Fetch and parse webpage content programmatically with intelligent text extraction for LLM-friendly output formatting.
  • Deploy behind a reverse proxy or in Docker with configurable DNS-rebinding protection and TLS certificate handling.
  • Bypass bot detection on restricted endpoints by switching between httpx and curl backends on a per-request basis.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides web search and content fetching through DuckDuckGo as a Model Context Protocol server for integration with Claude and other MCP clients.

Yes, if you are building or using an MCP client (especially Claude Desktop or Claude Code) and need web search capabilities. The package is actively maintained, has low install friction, carries a permissive MIT license, and includes thoughtful features like rate limiting and bot-detection fallbacks. No known vulnerabilities. Install the base package for standard search; add the [browser] extra only if you encounter TLS-fingerprint blocking.

Install

duckduckgo-mcp-server on PyPI

pip

pip install duckduckgo-mcp-server

uv

uv add duckduckgo-mcp-server

poetry

poetry add duckduckgo-mcp-server

Installing duckduckgo-mcp-server

Before you install

Low install friction with a pure-Python wheel. Active maintenance with recent releases; last commit 2026-07-28 and 1413 repository stars indicate ongoing development. Requires Python 3.10 or later.

License in practice

MIT license (permissive) allows unrestricted use, modification, and distribution with minimal obligations.

Quickstart

# Install
uv pip install duckduckgo-mcp-server

# Run as MCP server
uvx duckduckgo-mcp-server

# Or with Claude Desktop config:
# Add to claude_desktop_config.json:
# {
#   "mcpServers": {
#     "ddg-search": {
#       "command": "uvx",
#       "args": ["duckduckgo-mcp-server"]
#     }
#   }
# }

Requires Python 3.10 or later. Intended for use with MCP-compatible clients (Claude Desktop, Claude Code, or custom MCP clients via stdio, SSE, or streamable HTTP transports).

Verify before relying

  • Whether the curl backend with TLS impersonation reliably bypasses Cloudflare and similar bot detection in production use.
  • Performance characteristics under sustained rate-limited search and content-fetch workloads.
  • Actual compliance with DuckDuckGo's terms of service for automated access patterns.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 4 — beautifulsoup4, httpcore, httpx, mcp
Maintenance actively maintained — 17 days since the last release
Last repo commit
First released
Downloads 170,812/month — #10,387 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: duckduckgo_mcp_server-0.6.1-py3-none-any.whl

Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

duckduckgo search mcp serverweb search integration claudemcp server web content fetchingllm web search toolduckduckgo api wrapper
mcp-serverllm-integrationweb-search

More WWW/HTTP packages