duckduckgo-mcp-server
MCP Server for searching via DuckDuckGo
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-serveruv
uv add duckduckgo-mcp-serverpoetry
poetry add duckduckgo-mcp-serverInstalling 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
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
duckduckgo-searchRetrieves search results from DuckDuckGo for…
permissive · top 5,000 on PyPI
wikipedia-mcpExposes Wikipedia search, article retrieval,…
permissive · top 15,000 on PyPI
duckduckgo-mcpThis package is deprecated; install web-forager…
permissive · top 15,000 on PyPI
mcp-server-odooAn MCP server that bridges AI assistants like…
copyleft · top 5,000 on PyPI
ddgsAggregates web search results from multiple…
permissive · top 5,000 on PyPI
mcp-server-fetchProvides a Model Context Protocol server that…
permissive · top 5,000 on PyPI
markitdown-mcpExposes MarkItDown's document-to-markdown…
permissive · top 15,000 on PyPI
web-foragerWeb Forager is a search-and-fetch toolkit for…
permissive · top 15,000 on PyPI
minimax-coding-plan-mcpAn MCP server that connects MiniMax's AI APIs…
permissive · top 15,000 on PyPI
pagerduty-mcpAn MCP (Model Context Protocol) server that…
unclear · top 15,000 on PyPI