DuckDuckGo Search API – Overview | MCP Marketplace

✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

UBOS Asset Marketplace: Unleash the Power of DuckDuckGo Search with the ddg-mcp MCP Server

In the rapidly evolving landscape of AI-driven applications, access to reliable and comprehensive information is paramount. The UBOS Asset Marketplace offers a powerful solution: the ddg-mcp MCP server, a seamless integration of DuckDuckGo search capabilities into the Model Context Protocol (MCP) ecosystem. This asset empowers AI Agents and Large Language Models (LLMs) with the ability to directly leverage DuckDuckGo’s search engine for enhanced context, real-time data retrieval, and improved decision-making.

What is the ddg-mcp MCP Server?

The ddg-mcp MCP server acts as a bridge, connecting AI models to the DuckDuckGo search engine via the Model Context Protocol. MCP is an open protocol designed to standardize how applications provide context to LLMs. This allows AI agents to dynamically access and utilize external information, significantly expanding their capabilities and relevance. Instead of relying solely on their pre-trained knowledge, AI agents can now perform real-time searches, gather up-to-date information, and incorporate diverse perspectives into their reasoning processes.

Key Features of the ddg-mcp MCP Server

  • Comprehensive Search Capabilities: The server provides a suite of tools for various search types, including:
    • Text Search (ddg-text-search): Conduct general web searches for text-based results. Refine searches with keywords, region specifications, safe search settings, time limits, and maximum result counts.
    • Image Search (ddg-image-search): Find images based on keywords, with options to filter by size, color, type, layout, and license.
    • News Search (ddg-news-search): Stay up-to-date with current events by searching for news articles based on keywords, region, safe search settings, and time limits.
    • Video Search (ddg-video-search): Locate relevant videos with filters for resolution, duration, and license.
    • AI Chat (ddg-ai-chat): Enables direct interaction with DuckDuckGo AI, offering a conversational interface powered by various models like gpt-4o-mini, llama-3.3-70b, claude-3-haiku, o3-mini, and mistral-small-3.
  • search-results-summary Prompt: Generate concise summaries of DuckDuckGo search results, providing a high-level overview of the information landscape for a given query.
  • Flexible Configuration: Customize search parameters such as region, safe search, and time limits to tailor results to specific needs.
  • Easy Installation: Simple installation process using uv or pip package managers.
  • Integration with Claude: Seamless integration with Claude, allowing AI agents to leverage DuckDuckGo search directly within the Claude environment. Detailed configuration instructions provided for both development and published servers.

Use Cases

The ddg-mcp MCP server unlocks a wide range of possibilities for AI applications:

  • Enhanced AI Agent Performance: Equip AI Agents with the ability to access real-time information, improving their accuracy, relevance, and decision-making capabilities.
  • Contextualized Content Generation: Generate more informed and relevant content by incorporating up-to-date search results.
  • Automated Research: Automate research tasks by programmatically querying DuckDuckGo and summarizing the findings.
  • Improved Customer Service: Provide AI-powered customer service agents with the ability to quickly find answers to customer queries.
  • Real-time Data Analysis: Analyze real-time search trends to gain insights into emerging topics and customer behavior.
  • Content Moderation: Utilize search results to identify and flag inappropriate content.
  • Fact Verification: Verify information and detect misinformation by cross-referencing with DuckDuckGo search results.
  • Personalized Recommendations: Provide more accurate and personalized recommendations based on real-time search data and user preferences.

Detailed Examination of Components

Prompts

The ddg-mcp server utilizes prompts, specifically the search-results-summary prompt, to distill the essence of search results into a digestible format. This is invaluable for AI agents that need quick context without sifting through numerous links. The prompt requires a query argument, which defines the search term, and an optional style argument, which allows users to control the level of detail (brief/detailed) in the summary.

Tools

The arsenal of tools provided by the ddg-mcp server is its greatest strength. Each tool is designed for a specific search modality, allowing for precise information retrieval:

  • ddg-text-search: This is the workhorse for general web searches. It requires a keywords argument, allowing users to specify the search query. Optional parameters like region, safesearch, timelimit, and max_results further refine the search.
  • ddg-image-search: For visual data, this tool enables searches for images based on keywords. Additional parameters allow filtering by size, color, type_image, layout, and license_image, providing fine-grained control over the image search results.
  • ddg-news-search: Keeping abreast of current events is crucial, and this tool delivers news articles based on specified keywords. Users can also refine their search with region, safesearch, and timelimit parameters.
  • ddg-video-search: With the increasing importance of video content, this tool allows users to search for videos based on keywords, with filtering options for resolution, duration, and license_videos.
  • ddg-ai-chat: A powerful interface for direct interaction with DuckDuckGo AI. It requires a keywords argument, which represents the message or question to send to the AI. The optional model parameter allows users to select from various AI models, including gpt-4o-mini, llama-3.3-70b, claude-3-haiku, o3-mini, and mistral-small-3, each offering unique capabilities.

Common Parameters Deep Dive

Understanding the common parameters is essential for effective utilization of the ddg-mcp server:

  • region: This parameter localizes search results. Using region codes like “us-en” (US English) or “uk-en” (UK English), users can tailor search results to specific geographic areas. A comprehensive list of DuckDuckGo regions can be found at DuckDuckGo regions.
  • safesearch: Content filtering is crucial, especially in sensitive applications. The safesearch parameter offers three levels: “on” (strict filtering), “moderate” (moderate filtering), and “off” (no filtering).
  • timelimit: Time sensitivity is often a critical factor. The timelimit parameter allows users to restrict results to specific time ranges: “d” (last day), “w” (last week), “m” (last month), and “y” (last year).
  • max_results: Controlling the volume of results is essential for efficient processing. The max_results parameter limits the maximum number of results returned (default: 10).

Advanced Search Operators

DuckDuckGo’s search operators provide advanced control over search queries. Mastering these operators can significantly improve the precision and relevance of search results:

  • cats dogs: Searches for results about cats or dogs.
  • "cats and dogs": Searches for the exact term “cats and dogs.”
  • cats -dogs: Returns results with fewer dogs.
  • cats +dogs: Returns results with more dogs.
  • cats filetype:pdf: Finds PDFs about cats (supported file types: pdf, doc(x), xls(x), ppt(x), html).
  • dogs site:example.com: Searches for pages about dogs from example.com.
  • cats -site:example.com: Searches for pages about cats, excluding example.com.
  • intitle:dogs: Returns pages where the title includes the word “dogs.”
  • inurl:cats: Returns pages where the URL includes the word “cats.”

Specific Parameters for Image and Video Searches

Image and video searches offer unique parameters for further refinement:

Image Search:

  • size: Specifies the size of the image (“Small”, “Medium”, “Large”, “Wallpaper”).
  • color: Filters images by color (e.g., “color”, “Monochrome”, “Red”, “Blue”).
  • type_image: Specifies the type of image (e.g., “photo”, “clipart”, “gif”).
  • layout: Filters images by layout (“Square”, “Tall”, “Wide”).
  • license_image: Filters images by license (e.g., “any”, “Public”, “Share”).

Video Search:

  • resolution: Specifies the video resolution (“high”, “standard”).
  • duration: Filters videos by duration (“short”, “medium”, “long”).
  • license_videos: Filters videos by license (“creativeCommon”, “youtube”).

AI Chat Models: A Detailed Comparison

The ddg-ai-chat tool supports various AI models, each with distinct strengths:

  • gpt-4o-mini: OpenAI’s GPT-4o mini model is known for its speed and efficiency, making it ideal for quick responses and real-time interactions.
  • llama-3.3-70b: Meta’s Llama 3.3 70B model is a powerful and versatile model suitable for a wide range of tasks, including complex reasoning and creative content generation.
  • claude-3-haiku: Anthropic’s Claude 3 Haiku model excels in its ability to generate concise and articulate responses, making it perfect for summarization and efficient communication.
  • o3-mini: OpenAI’s O3 mini model offers a balance between performance and resource consumption, making it a good choice for applications with limited computational resources.
  • mistral-small-3: Mistral AI’s small model is designed for efficiency and speed, making it suitable for real-time applications and resource-constrained environments.

Why Choose the ddg-mcp MCP Server on the UBOS Asset Marketplace?

The UBOS Asset Marketplace provides a curated selection of high-quality assets designed to accelerate AI agent development. The ddg-mcp MCP server stands out due to its reliability, ease of use, and comprehensive feature set. By integrating DuckDuckGo search directly into your AI workflows, you can unlock new levels of intelligence and automation. Furthermore, UBOS provides a full-stack AI Agent Development Platform that complements the ddg-mcp server. UBOS simplifies the orchestration of AI Agents, seamlessly connecting them to enterprise data. The platform allows users to build custom AI Agents using their own LLM models and create sophisticated Multi-Agent Systems. UBOS empowers businesses to deploy AI Agents across various departments, driving innovation and efficiency. The UBOS platform offers a comprehensive set of tools and resources to streamline the development, deployment, and management of AI Agents.

Getting Started

Ready to integrate DuckDuckGo search into your AI applications? Explore the ddg-mcp MCP server on the UBOS Asset Marketplace today and unlock the power of real-time information access for your AI Agents.

Featured Templates

View More
AI Engineering
Python Bug Fixer
119 1080
Data Analysis
Pharmacy Admin Panel
238 1704
Verified Icon
AI Assistants
Speech to Text
134 1510
Customer service
Multi-language AI Translator
135 646
AI Characters
Sarcastic AI Chat Bot
128 1440

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.