DDGS MCP Server
Enables DuckDuckGo search capabilities with full content extraction for AI agents, supporting text and news searches across multiple engines.
README
DDGS MCP Server
A Model Context Protocol (MCP) server that provides DuckDuckGo Search capabilities to AI agents.
Features
- search_text: Advanced metasearch using
bing,brave,duckduckgo,google,mojeek,yahoo,yandex,wikipedia.- Full Content Extraction: Optionally fetch complete page content (not just snippets) for comprehensive context.
- search_news: Find latest updates, releases, and tech news.
Full Content Extraction
For coding agents that need complete context from search results, enable full page content fetching:
Usage
{
"query": "python async programming tutorial",
"fetch_full_content": true,
"max_content_length": 50000,
"max_results": 5
}
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
fetch_full_content |
boolean | false |
Enable full page content extraction |
max_content_length |
integer | 50000 |
Maximum characters per page (when fetch_full_content is true) |
Response Structure
When fetch_full_content is enabled, each result includes a full_content field:
[
{
"title": "Python Async Programming Guide",
"href": "https://example.com/python-async",
"body": "Brief snippet from search results...",
"full_content": "Complete extracted article text with all paragraphs, code examples, and detailed explanations..."
}
]
Performance Notes
- Content extraction adds ~1-3 seconds latency per page
- Up to 5 pages are fetched concurrently to minimize total time
- Failed fetches return
[Content extraction failed or blocked]without breaking the search - Uses Trafilatura for high-quality text extraction
Installation & Usage
You can run this server directly using uvx without installing it globally.
VS Code (Claude Desktop / Cline)
Add this to your MCP settings file (e.g., cline_mcp_settings.json or claude_desktop_config.json):
{
"mcpServers": {
"ddgs-search": {
"command": "uvx",
"args": [
"ddgs-mcp-server"
],
"disabled": false,
"alwaysAllow": []
}
}
}
Manual Execution
uvx ddgs-mcp-server
Secrets & Configuration
This project technically does not require API keys to run locally, as it scrapes DuckDuckGo. However, for publishing or proxy usage, you should configure your environment.
1. Set up Secrets
Copy the example file:
cp .env.example .env
2. Required Tokens
| Token | Purpose | How to Get It |
|---|---|---|
| PyPI API Token | Publishing to PyPI | 1. Go to PyPI Account Settings<br>2. Select "Add API Token"<br>3. Scope to "Entire account" (for first publish)<br>4. Set as TWINE_PASSWORD in .env |
| Proxy URL | Bypassing Blocks (Optional) | Use any HTTP/SOCKS5 proxy provider if you encounter rate limits. |
Development / Publishing
To build and publish this package to PyPI (using the secrets from above):
-
Build:
pip install build twine python -m build -
Publish (loads secrets from .env if you export them, or prompts you):
# If using .env variables (PowerShell) # $env:TWINE_USERNAME = "__token__" # $env:TWINE_PASSWORD = "pypi-..." python -m twine upload dist/*
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.