Skip to main content

A free, unlimited web search MCP server for LLM agents using DuckDuckGo

Project description

DuckDuckGo Search MCP Server

A free, unlimited web search MCP server for LLM agents. Uses DuckDuckGo to search the web and returns full extracted page content.

How it works

  1. Your LLM agent calls the web_search tool with a query
  2. The server searches DuckDuckGo and gets the top results
  3. It concurrently fetches each result page and extracts the main content, stripping ads, navigation, and boilerplate
  4. Clean, structured Markdown is returned — ready for the LLM to reason over and cite

Results are sorted with full page extracts first, falling back to snippets for pages that can't be fetched (paywalls, bot blocks, etc.). A summary header tells the agent how many full extracts vs snippets were returned.


Requirements


Installation

claude mcp add web-search uvx ddg-search-mcp

That's it. No virtual environments, no pip installs, no API keys. uvx handles everything automatically in an isolated environment.

Verify it's connected:

claude mcp list

You should see web-search with a ✓ connected status.


Usage

Once installed, just talk to Claude naturally:

"Search for the latest news on AI regulation"

"Find recent benchmarks comparing Claude and GPT-4"

"Look up how to configure a Next.js app router"

Claude will automatically call the web_search tool when it needs current information from the web.

You can also explicitly ask:

"Use web search to find..."

Tool parameters

Parameter Type Default Description
query string required Natural language search query
num_results int 5 Number of results to fetch (1–10)

Performance

  • Pages are fetched concurrently — 5 results take roughly the same time as 1
  • Pages that take longer than 8 seconds are dropped automatically
  • Known bot-blocking domains (YouTube, Twitter, Reddit, LinkedIn, etc.) are skipped to avoid wasting time
  • DuckDuckGo lite endpoint is used as a fallback if the main endpoint is unavailable

Privacy

All searches go through DuckDuckGo, which does not track users or build profiles. No data is sent to any third-party API.


Limitations

  • Results depend on DuckDuckGo's index — not Google
  • Some sites block automated fetching (paywalls, Cloudflare protection) and will fall back to snippet-only
  • DuckDuckGo may throttle very high-frequency automated requests

Updating

uv cache clean
claude mcp remove web-search
claude mcp add web-search uvx ddg-search-mcp

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ddg_search_mcp-0.1.2.tar.gz (85.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ddg_search_mcp-0.1.2-py3-none-any.whl (90.3 kB view details)

Uploaded Python 3

File details

Details for the file ddg_search_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: ddg_search_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 85.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ddg_search_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 61bb86d7d23341514dcc9eea61de0a6bd244f9e7554fe968e949d0d052a148c5
MD5 797b3824dc6d81110a6e9b076a6b8b36
BLAKE2b-256 7b7d7496dd3e58589dacfd4e8d2cb7d4e2544de04e11adcf64ac65f405fd89fd

See more details on using hashes here.

File details

Details for the file ddg_search_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ddg_search_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 90.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ddg_search_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef3de68ded5c9cbf20c95c59843347e753489e7b686ef932cbfa80fc92bd9c6c
MD5 6a9417dcf7214627ccab54abf6deecb2
BLAKE2b-256 02e2ce5cc133b9e4d07f98153c11111bec72bc48132ee9d0f19616e96d8a033f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page