DuckDuckGo MCP Server
Provides web search capabilities through DuckDuckGo's search engine with advanced rate limiting and content fetching from webpage URLs
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DuckDuckGo MCP Serversearch for recent developments in quantum computing"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DuckDuckGo MCP Server
A Model Context Protocol (MCP) server that provides web search capabilities through DuckDuckGo with content fetching features.
Features
Web Search: Search DuckDuckGo with advanced rate limiting and result formatting
Content Fetching: Retrieve and parse webpage content with intelligent text extraction
Rate Limiting: Built-in protection against rate limits
LLM-Friendly Output: Results formatted specifically for large language model consumption
Related MCP server: Web Search MCP
Docker Build
# Build the Docker image
docker build -t duckduckgo-mcp-server:latest .
# Run the MCP server
docker run --rm -i duckduckgo-mcp-server:latestAliyun Image
The image is also available on Aliyun Container Registry:
# Pull from Aliyun
docker pull crpi-kdbkl9428esejpsc.cn-hangzhou.personal.cr.aliyuncs.com/li-personal/duckduckgo-mcp-server:latest
# Run the Aliyun image
docker run --rm -i crpi-kdbkl9428esejpsc.cn-hangzhou.personal.cr.aliyuncs.com/li-personal/duckduckgo-mcp-server:latestMCP Tools
search
Search DuckDuckGo and return formatted results.
query: Search query string
max_results: Maximum number of results (default: 10)
fetch_content
Fetch and parse content from a webpage URL.
url: The webpage URL to fetch content from
Claude Code Integration
Add to Claude Code global configuration:
claude mcp add --scope user --transport stdio duckduckgo-search -- docker run --rm -i crpi-kdbkl9428esejpsc.cn-hangzhou.personal.cr.aliyuncs.com/li-personal/duckduckgo-mcp-server:latestProject Structure
.
├── Dockerfile # Docker build configuration
├── docker-compose.yml # Docker Compose configuration
├── pyproject.toml # Python project configuration
├── .dockerignore # Docker build ignore rules
└── src/
└── duckduckgo_mcp_server/
├── __init__.py # Package initialization
└── server.py # Main MCP server implementationAvailable Tools
2 toolsfetch_contentC
Fetch and parse content from a webpage URL.
Args:
url: The webpage URL to fetch content from
ctx: MCP context for logging
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool fetches and parses content, implying network I/O and data processing, but doesn't mention error handling, rate limits, authentication needs, timeouts, or what 'parse' entails (e.g., HTML extraction, text cleaning). This leaves significant gaps for safe and effective use.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately brief and front-loaded with the core purpose in the first sentence. The Args section is structured but includes an extraneous 'ctx' parameter not in the schema, slightly reducing efficiency. Overall, it avoids unnecessary verbosity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (network operations, parsing), lack of annotations, no output schema, and incomplete parameter documentation (schema coverage 0% with a mismatched 'ctx' mention), the description is insufficient. It doesn't cover return values, error cases, or behavioral constraints needed for reliable agent use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description adds basic meaning for the 'url' parameter ('The webpage URL to fetch content from'), which is helpful since schema description coverage is 0%. However, it doesn't clarify format requirements (e.g., must be HTTP/HTTPS, encoding), and the 'ctx' parameter is mentioned in the description but absent from the input schema, creating confusion without additional context.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('fetch and parse') and resource ('content from a webpage URL'), making it immediately understandable. However, it doesn't differentiate from its sibling tool 'search', which might have overlapping functionality for web content retrieval.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided about when to use this tool versus the sibling 'search' tool. The description mentions what it does but offers no context about appropriate use cases, prerequisites, or alternatives, leaving the agent to guess about tool selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
searchB
Search DuckDuckGo and return formatted results.
Args:
query: The search query string
max_results: Maximum number of results to return (default: 10)
ctx: MCP context for logging
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| max_results | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. While it mentions 'return formatted results,' it doesn't describe what format those results take, whether there are rate limits, authentication requirements, or any side effects. The mention of 'ctx: MCP context for logging' in the description (but not in the schema) suggests logging behavior, but this isn't fully explained.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately concise with a clear purpose statement followed by parameter documentation. The structure is logical with the main functionality first. The only minor issue is the inclusion of 'ctx' parameter in the description that doesn't match the schema, which creates some confusion.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a search tool with 2 parameters, no annotations, and no output schema, the description provides basic functionality but lacks important context. It doesn't explain result format, error conditions, or how it differs from the sibling 'fetch_content' tool. The parameter documentation helps, but behavioral aspects remain underspecified.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description adds significant value beyond the input schema, which has 0% description coverage. It explains that 'query' is 'The search query string' and 'max_results' is 'Maximum number of results to return (default: 10)'. It also mentions 'ctx: MCP context for logging' which doesn't appear in the schema at all, though this parameter documentation is incomplete.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Search DuckDuckGo and return formatted results.' It specifies the verb ('Search'), resource ('DuckDuckGo'), and outcome ('return formatted results'). However, it doesn't explicitly differentiate from its sibling tool 'fetch_content' which might have overlapping functionality.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. There's no mention of when this search tool is appropriate versus 'fetch_content' or other potential search methods. The only contextual information is in the parameter documentation, not usage guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
The two tools have clearly distinct purposes: 'fetch_content' retrieves and parses content from a specific webpage URL, while 'search' queries DuckDuckGo for results. There is no overlap in functionality, and an agent can easily differentiate between fetching known content and searching for unknown information.
Both tool names follow a consistent verb-based pattern: 'fetch_content' and 'search'. They use snake_case uniformly, and the verbs ('fetch', 'search') are clear and appropriate for their actions, making the naming predictable and readable.
With only 2 tools, the server feels under-scoped for a DuckDuckGo MCP server. While the tools cover basic web content fetching and search, the domain suggests potential for more operations (e.g., image search, news search, or advanced query parameters), making the count too low for the apparent scope.
The tools cover core functionalities of fetching web content and searching, but there are notable gaps. For a DuckDuckGo server, missing operations like image search, video search, or localized searches could limit agent capabilities, though basic workflows are supported.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.
Web search, URL content extraction to Markdown, site mapping, and recursive web crawler.
Web search, fetch, extract, and research for AI agents. Markdown output + AI-synthesized answers.
Fetch pages as markdown, search web and news, extract structured data. For AI agents.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables web searching through DuckDuckGo and fetching content from webpages. Provides search capabilities with configurable result limits and webpage content extraction for AI assistants.
- AlicenseNot gradedqualityDmaintenanceEnables web searching through Google, DuckDuckGo, and Bing using a headless Chrome browser, returning structured results with titles, URLs, and snippets. Also supports fetching and extracting text content from any webpage.13MIT
- AlicenseNot gradedqualityDmaintenanceProvides web search and content fetching capabilities using DuckDuckGo, with rate limiting and clean text extraction.3MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search the internet using DuckDuckGo and extract clean, formatted content from web pages.262GPL 3.0
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/988664li-star/duckduckgo-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server