Skip to main content
Glama
DuckDuckGo Web Search MCP Server

DuckDuckGo Web Search MCP Server

by kouui

Servidor MCP de búsqueda web de DuckDuckGo

Este proyecto proporciona un servidor MCP (Protocolo de contexto de modelo) que le permite buscar en la web utilizando el motor de búsqueda DuckDuckGo y, opcionalmente, obtener y resumir el contenido de las URL encontradas.

Características

  • Búsqueda web: busque en la web utilizando DuckDuckGo.

  • Extracción de resultados: extrae títulos, URL y fragmentos de los resultados de búsqueda.

  • Obtención de contenido (opcional): obtiene el contenido de las URL encontradas en los resultados de búsqueda y lo convierte a formato Markdown mediante la API de Jina.

  • Obtención paralela: obtiene varias URL simultáneamente para un procesamiento más rápido.

  • Manejo de errores: maneja con elegancia los tiempos de espera y otros errores potenciales durante la búsqueda y la obtención.

  • Configurable: le permite establecer el número máximo de resultados de búsqueda que se devolverán.

  • API de Jina : uso de la API de Jina para convertir HTML a Markdown.

  • Compatible con MCP : este servidor está diseñado para usarse con cualquier cliente compatible con MCP.

Related MCP server: DuckDuckGo MCP Server

Uso

  1. Prerrequisitos:

    • gestor de paquetes uvx

  2. Configuración del escritorio de Claude

    • Si está utilizando Claude Desktop, puede agregar el servidor al archivo claude_desktop_config.json .

    {
        "mcpServers": {
            "web-search-duckduckgo": {
                "command": "uvx",
                "args": [
                    "--from",
                    "git+https://github.com/kouui/web-search-duckduckgo.git@main",
                    "main.py"
                ]
            }
        }
    }

    La configuración anterior no funciona, es posible que deba clonar el repositorio en la PC local y usar la siguiente configuración

    {
        "mcpServers": {
            "web-search-duckduckgo": {
                "command": "uv",
                "args": [
                    "--directory",
                    "/path/to/web-search-duckduckgo",
                    "run",
                    "main.py"
                ]
            }
        }
    }
  3. Herramienta

    • En su cliente MCP (por ejemplo, Claude), ahora puede utilizar las siguientes herramientas:

    • search_and_fetch : busca en la web y recupera el contenido de las URL.

      • query : La cadena de consulta de búsqueda.

      • limit : el número máximo de resultados a devolver (predeterminado: 3, máximo: 10).

    • fetch : obtiene el contenido de una URL específica.

      • url : La URL a buscar.

Licencia

Este proyecto está licenciado bajo la licencia MIT. (Agregue un archivo de licencia si desea especificar una licencia).

Available Tools

2 tools
fetchC
scrape the html content and return the markdown format using jina api.

Args:
    url: The search query string

Returns:
    text : html in markdown format 

Inputs: url (required).

search_and_fetchA
Search the web using DuckDuckGo and return results.

Args:
    query: The search query string
    limit: Maximum number of results to return (default: 3, maximum 10)

Returns:
    List of dictionaries containing 
    - title
    - url
    - snippet 
    - summary markdown (empty if not available)

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 2 tools

    Disambiguation4/5

    The two tools have distinct primary purposes: 'search_and_fetch' performs web searches and returns results, while 'fetch' scrapes HTML content from a given URL. However, there is some potential for confusion because 'fetch' accepts a 'url' argument but its description mentions 'search query string' (likely a documentation error), which could blur the boundary between searching and fetching.

    Naming Consistency4/5

    The tool names follow a consistent verb-based pattern ('fetch' and 'search_and_fetch'), with clear action-oriented naming. The minor deviation is that 'search_and_fetch' uses an 'and' conjunction, but overall the naming is readable and predictable.

    Tool Count3/5

    With only 2 tools, the server feels thin for a web search and scraping domain. While it covers basic search and fetch operations, more tools (e.g., for advanced search filtering, caching, or handling different content types) would provide better scope. It's borderline but not severely lacking.

    Completeness3/5

    The server covers core web search and content fetching workflows, but there are notable gaps. For example, it lacks tools for managing search history, refining queries, handling pagination, or supporting different output formats beyond markdown. Agents can work around these, but the surface is not fully comprehensive.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables web search through DuckDuckGo and webpage content fetching with intelligent text extraction. Features built-in rate limiting and LLM-optimized result formatting for seamless integration with language models.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables web searching through Google, DuckDuckGo, and Bing using a headless Chrome browser, returning structured results with titles, URLs, and snippets. Also supports fetching and extracting text content from any webpage.
      17
      MIT