Skip to main content
Glama
988664li-star

DuckDuckGo MCP Server

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:latest

Aliyun 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:latest

MCP Tools

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:latest

Project 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 implementation

Available Tools

2 tools
fetch_contentC
Fetch and parse content from a webpage URL.

Args:
    url: The webpage URL to fetch content from
    ctx: MCP context for logging
ParametersJSON Schema
NameRequiredDescriptionDefault
urlYes

TDQS

C2.9/5.0
Behavior2/5

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.

Conciseness4/5

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.

Completeness2/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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.

TDQS

B3.2/5.0
Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count2/5

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.

Completeness3/5

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

ActivityInactive
ResponsivenessSyncing

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

Related MCP Servers

Latest Blog Posts

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