OEvortex

DuckDuckGo Search MCP ๐Ÿ”

Community OEvortex
Updated

A powerful Model Context Protocol (MCP) server for web search and URL content extraction using DuckDuckGo.

DuckDuckGo Search MCP ๐Ÿ”

A blazing-fast, privacy-friendly Model Context Protocol (MCP) server for web search and URL content extraction using DuckDuckGo.

Subscribe for updates & tutorials

[!IMPORTANT]DuckDuckGo Search MCP supports the Model Context Protocol (MCP) standard, making it compatible with various AI assistants and tools.

โœจ Features

๐ŸŒ Web search using DuckDuckGo HTML
๐Ÿ“„ URL content extraction with smart filtering
๐Ÿ“Š URL metadata extraction (title, description, images)
โšก Performance optimized with caching
๐Ÿ›ก๏ธ Security features including rate limiting and rotating user agents
๐Ÿ”Œ MCP-compliant server implementation
๐Ÿ†“ No API keys required - works out of the box

[!IMPORTANT]Unlike many search tools, this package performs actual web scraping rather than using limited APIs, giving you more comprehensive results.

๐Ÿš€ Quick Start

Run instantly with npx:
npx -y @oevortex/ddg_search

[!TIP]This will download and run the MCP server directly without installation โ€“ perfect for quick use with AI assistants.

๐Ÿ› ๏ธ Installation Options

Global Installation
npm install -g @oevortex/ddg_search

Run globally:

ddg-search-mcp
Local Installation (Development)
git clone https://github.com/OEvortex/ddg_search.git
cd ddg_search
npm install
npm start

๐Ÿง‘โ€๐Ÿ’ป Command Line Options

npx -y @oevortex/ddg_search --help

[!TIP]Use the --version flag to check which version you're running.

๐Ÿค– Using with MCP Clients

[!IMPORTANT]The most common way to use this tool is by integrating it with MCP-compatible AI assistants.

Add the server to your MCP client configuration:

{
  "mcpServers": {
    "ddg-search": {
      "command": "npx",
      "args": ["-y", "@oevortex/ddg_search"]
    }
  }
}

Or if installed globally:

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

[!TIP]After configuring, restart your MCP client to apply the changes.

๐Ÿงฐ Tools Overview

๐Ÿ” Web Search Tool web-search
  • query (string, required): The search query
  • page (integer, optional, default: 1): Page number
  • numResults (integer, optional, default: 10): Number of results (1-20)
Example: Search the web for "climate change solutions"
๐Ÿ“„ Fetch URL Tool fetch-url
  • url (string, required): The URL to fetch
  • maxLength (integer, optional, default: 10000): Max content length
  • extractMainContent (boolean, optional, default: true): Extract main content
  • includeLinks (boolean, optional, default: true): Include link text
  • includeImages (boolean, optional, default: true): Include image alt text
  • excludeTags (array, optional): Tags to exclude
Example: Fetch the content from "https://example.com"
๐Ÿ“Š URL Metadata Tool url-metadata
  • url (string, required): The URL to extract metadata from
Example: Get metadata for "https://example.com"

๐Ÿ“ Project Structure

bin/              # Command-line interface
src/
  index.js        # Main entry point
  tools/          # Tool definitions and handlers
    searchTool.js
    fetchUrlTool.js
    metadataTool.js
  utils/
    search.js     # Search and URL utilities
package.json
README.md

๐Ÿค Contributing

Contributions are welcome! Please open issues or submit pull requests.

[!NOTE]Please follow the existing code style and add tests for new features.

๐Ÿ“บ YouTube Channel

๐Ÿ“„ License

Apache License 2.0

[!NOTE]This project is licensed under the Apache License 2.0 โ€“ see the LICENSE file for details.

Made with โค๏ธ by @OEvortex

MCP Server ยท Populars

MCP Server ยท New