Skip to main content

DuckDuckGo search plugin for Model Context Protocol

Project description

MCP DuckDuckGo

A Model Context Protocol (MCP) server that provides web search capabilities using DuckDuckGo. This server enables LLMs to search the web and retrieve detailed content from websites through structured data extraction.

Key Features

  • Fast and reliable. Uses DuckDuckGo's web interface with robust HTML parsing
  • LLM-friendly. Returns structured data optimized for AI consumption
  • Content extraction. Intelligently extracts and summarizes webpage content
  • Related searches. Generates contextual search suggestions

Requirements

  • Python 3.10 or newer
  • VS Code, Cursor, Windsurf, Claude Desktop, Goose or any other MCP client

Getting started

First, install the DuckDuckGo MCP server with your client.

Standard config works in most of the tools:

{
  "mcpServers": {
    "duckduckgo-search": {
      "command": "mcp-duckduckgo"
    }
  }
}

Claude Code

Use the Claude Code CLI to add the DuckDuckGo MCP server:

claude mcp add duckduckgo-search mcp-duckduckgo

For global configuration (available in all projects):

claude mcp add duckduckgo-search --scope user mcp-duckduckgo

Claude Desktop

Follow the MCP install guide, use the standard config above.

Cursor

Go to Cursor Settings -> MCP .

Click the button to install:

Install in Cursor

Or install manually:

Go to Cursor Settings -> MCP -> Add new MCP Server. Name to your liking, use command type with the command mcp-duckduckgo.

VS Code

Click the button to install:

Install in VS Code

Or install manually:

Follow the MCP install guide, use the standard config above.

You can also install the DuckDuckGo MCP server using the VS Code CLI:

code --add-mcp '{"name":"duckduckgo-search","command":"mcp-duckduckgo"}'

After installation, the DuckDuckGo MCP server will be available for use with your GitHub Copilot agent in VS Code.

Windsurf

Follow Windsurf MCP documentation. Use the standard config above.

Goose

Click the button to install:

Install in Goose

Or install manually:

Go to Advanced settings -> Extensions -> Add custom extension. Name to your liking, use type STDIO, and set the command to mcp-duckduckgo. Click "Add Extension".

LM Studio

Click the button to install:

Add MCP Server duckduckgo to LM Studio

Or install manually:

Go to Program in the right sidebar -> Install -> Edit mcp.json. Use the standard config above.

Configuration

DuckDuckGo MCP server supports following arguments:

mcp-duckduckgo --help

Available options:

--port PORT        Port number for the MCP server (default: 3000)
--version          Show program's version number and exit
--help             Show help message and exit

Environment Variables

  • MCP_PORT: Set the port number for the server (default: 3000)

Example usage:

# Set port via environment variable
export MCP_PORT=8080
mcp-duckduckgo

# Or set it inline
MCP_PORT=8080 mcp-duckduckgo

Available Tools

web_search

  • Title: Web Search
  • Description: Search the web using DuckDuckGo
  • Parameters:
    • query (string): Search query (max 400 characters)
    • max_results (number, optional): Maximum number of results to return (1-20, default 10)
  • Read-only: false

get_page_content

  • Title: Get Page Content
  • Description: Retrieve and extract content from a web page
  • Parameters:
    • url (string): URL to fetch content from
  • Read-only: false

suggest_related_searches

  • Title: Suggest Related Searches
  • Description: Generate contextual search suggestions based on a query
  • Parameters:
    • query (string): Original search query
    • max_suggestions (number, optional): Maximum suggestions to return (1-10, default 5)
  • Read-only: true

Installation from Source

If you need to install from source or development:

Using uv (Recommended)

uv is a fast Python package manager:

# Install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install from GitHub
uv tool install git+https://github.com/gianlucamazza/mcp-duckduckgo.git

Using pip

# Clone and install
git clone https://github.com/gianlucamazza/mcp-duckduckgo.git
cd mcp-duckduckgo
pip install -e .

Development Installation

git clone https://github.com/gianlucamazza/mcp-duckduckgo.git
cd mcp-duckduckgo

# Install in development mode
pip install -e .

# Run tests
pip install -e ".[test]"
pytest

License

MIT

Repository

GitHub Repository

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

iflow_mcp_mcp_duckduckgo-0.2.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

iflow_mcp_mcp_duckduckgo-0.2.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_mcp_duckduckgo-0.2.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_mcp_duckduckgo-0.2.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_mcp_duckduckgo-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3890f931c0ba3998f4f795ae47d76d8898b46bea4e2e7cafbb59cf1ab3400c87
MD5 00bed50dc3d9aa5fbfa97a5850ef891f
BLAKE2b-256 14ea8caa3e81bdc60b020d65fbd2360c7c5c69e0326b4ea61ce844f2efea0f0e

See more details on using hashes here.

File details

Details for the file iflow_mcp_mcp_duckduckgo-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_mcp_duckduckgo-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_mcp_duckduckgo-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 877cde36f699c81012f47e38ac34499898e16cf86f4e685d629e20d5831737ae
MD5 0eae3693eb48c554da57459f88bb05ec
BLAKE2b-256 1342edaca9359de6d7f1b7925786d3cb3a231ac4b7e2db049eef7ee356d287f4

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