Duckduckgo Search logo

Duckduckgo Search

Community
AlexAI-MCP
duckduckgo-search

Free web search via DuckDuckGo - no API key needed. Text, news, images. Use as fallback when other search tools unavailable.

Overview

PublisherAlexAI-MCP
Repositoryhermes-CCC
Skill nameduckduckgo-search
Stars
134
Forks
22
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by AlexAI-MCP on GitHub. Read the source before you install it.

Installation

Install the Duckduckgo Search AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/duckduckgo-search
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AlexAI-MCP/hermes-CCC.git /tmp/hermes-CCC
mkdir -p .claude/skills
cp -r /tmp/hermes-CCC/skills/duckduckgo-search .claude/skills/duckduckgo-search
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Duckduckgo Search in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Duckduckgo Search on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Duckduckgo Search is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

DuckDuckGo Search

Purpose

  • Use this skill for lightweight web search without an API key.
  • It is useful as a fallback when paid search APIs or first-party tools are unavailable.
  • The library supports text, news, and image search.
  • This is a pragmatic option for prototyping, research helpers, and lightweight retrieval.

Install

bash
pip install duckduckgo-search

Why Use It

  • No API key required.
  • Easy Python integration.
  • Useful CLI for quick terminal searches.
  • Supports regions and time filters for fresher results.
  • Good fallback for general web discovery.

Python API

  • The main entry point is the DDGS class.
  • Create a client and call the relevant search method.
  • Iterate the generator or cast results to a list.

Text Search Example

python
from duckduckgo_search import DDGS

with DDGS() as ddgs:
    results = ddgs.text("vector databases for rag", max_results=10)
    for item in results:
        print(item["title"])
        print(item["href"])
        print(item["body"])
        print()
  • text() is the default choice for general web results.
  • Use concise queries first, then refine.
  • Extract only the fields you actually need for downstream processing.

News Search Example

python
from duckduckgo_search import DDGS

with DDGS() as ddgs:
    results = ddgs.news(
        keywords="open source llm releases",
        max_results=10,
        region="us-en",
        timelimit="w",
    )
    for item in results:
        print(item["title"])
        print(item["date"])
        print(item["url"])
  • News search is better than general text search when recency matters.
  • Useful parameters include keywords, max_results, region, and timelimit.
  • Prefer short keyword-focused queries over verbose natural language.

Image Search Example

python
from duckduckgo_search import DDGS

with DDGS() as ddgs:
    results = ddgs.images("server rack diagram", max_results=10)
    for item in results:
        print(item["title"])
        print(item["image"])
  • ddgs.images(keywords, max_results) is the simplest path for image discovery.
  • Verify licensing and usage rights before reuse.
  • Image results are best for inspiration, references, and visual discovery rather than authoritative facts.

CLI Usage

bash
ddgs text -k "query" -m 10
  • text runs a standard web search.
  • -k sets the keywords.
  • -m 10 limits the maximum number of results.
  • This is useful for shell scripts or quick ad hoc research.

CLI Patterns

bash
ddgs text -k "python async queue patterns" -m 10
ddgs news -k "gpu inference news" -m 5
ddgs images -k "er diagram examples" -m 8
  • Use CLI mode when you want zero boilerplate.
  • Use Python mode when you need structured post-processing.

Regions

  • wt-wt for global results
  • us-en for United States English
  • kr-ko for Korea Korean
  • regional values can materially change ranking and language mix

Region examples:

python
results = ddgs.text("open banking regulation", region="wt-wt", max_results=10)
results = ddgs.text("AI policy", region="us-en", max_results=10)
results = ddgs.news("반도체 투자", region="kr-ko", max_results=10)

Time Limits

  • d for day
  • w for week
  • m for month
  • y for year

Use time limits when:

  • tracking current events
  • watching new releases
  • checking recent blog or news coverage
  • reducing stale results

Rate Limiting

  • Do not hammer the service with rapid repeated requests.
  • Add a short sleep between loops or batches.
  • Cache results locally when queries repeat.
  • If you are scraping many queries, batch slowly and keep scope tight.

Simple pattern:

python
import time
from duckduckgo_search import DDGS

queries = ["llm evals", "vector db benchmarks", "open source agents"]

with DDGS() as ddgs:
    for q in queries:
        results = list(ddgs.text(q, max_results=5))
        print(q, len(results))
        time.sleep(2)

Query Strategy

  • Start broad, then narrow.
  • Prefer keywords over long questions.
  • Use quotes only when exact phrase matching matters.
  • Switch to news mode when freshness matters more than general authority.
  • Use the region parameter intentionally rather than leaving locality to chance.

Fallback Positioning

  • No API key required means this is a practical fallback.
  • It is well suited to a WebSearch fallback path in tools or scripts.
  • When other providers fail, DDG search can still return useful retrieval candidates.
  • It should not be treated as a guaranteed enterprise-grade SLA service.

Practical Research Workflow

  1. Run a text search for broad discovery.
  2. Switch to news search for recent developments.
  3. Use images when you need visual references or diagrams.
  4. Save URLs and summarize locally.
  5. Re-run with a region or time filter when result quality is weak.

Output Handling

  • Normalize fields early because result keys can vary slightly across search modes.
  • Save title, URL, snippet, source, and date when present.
  • Store timestamps when using this for repeated monitoring.
  • Filter duplicates before passing results downstream.

Limitations

  • Search result shape may evolve with library updates.
  • Relevance is not identical to large paid search providers.
  • Image search is discovery-oriented, not rights-cleared asset sourcing.
  • Heavy automation can trigger blocking or degraded responses.

Summary

  • Install with pip install duckduckgo-search.
  • Use the DDGS class for text, news, and image search in Python.
  • Use ddgs text -k "query" -m 10 for terminal-based search.
  • For news, pass keywords, max_results, region, and timelimit.
  • For images, use ddgs.images(keywords, max_results).
  • Common regions include wt-wt, us-en, and kr-ko.
  • Common time limits are d, w, m, and y.
  • Add sleeps between batches and use it as a no-API-key WebSearch fallback.

Frequently asked questions

What does the Duckduckgo Search AI skill do?

Free web search via DuckDuckGo - no API key needed. Text, news, images. Use as fallback when other search tools unavailable.

Why use Duckduckgo Search on TypingMind?

Because you install it once and use it with any model. Duckduckgo Search is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Duckduckgo Search in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/duckduckgo-search. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Duckduckgo Search?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Duckduckgo Search?

As many as you like. As long as a model supports skills, you can use Duckduckgo Search with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Duckduckgo Search AI skill free?

Yes. It is published on GitHub by AlexAI-MCP under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇