Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Duckduckgo With Mcp

    This project demonstrates how to use DuckDuckGo MCP Server with a LangChain Groq LLM agent to perform intelligent search tasks via MCP (Micro Component Protocol).

    1 stars
    Python
    Updated Apr 26, 2025
    duckduckgo
    mcp-server

    Table of Contents

    • Features
    • Installation
    • Usage
    • Example Code
    • Resources
    • License

    Table of Contents

    • Features
    • Installation
    • Usage
    • Example Code
    • Resources
    • License

    Documentation

    DuckDuckGo Search with MCP Agent

    This project demonstrates how to use DuckDuckGo MCP Server with a LangChain Groq LLM agent to perform intelligent search tasks via MCP (Micro Component Protocol).

    ---

    Features

    • MCP Server Integration (DuckDuckGo search)
    • Groq LLM (deepseek-r1-distill-llama-70b) for reasoning
    • Async Python execution
    • Simple and modular

    ---

    Installation

    1. Clone the repository:

    bash
    git clone https://github.com/alihassanml/Duckduckgo-with-MCP.git
    cd Duckduckgo-with-MCP

    2. Install dependencies:

    bash
    pip install -r requirements.txt

    (Include libraries like langchain_groq, python-dotenv, etc. in your requirements.txt.)

    3. **Set up your .env file**:

    env
    GROQ_API_KEY=your_groq_api_key_here

    4. Install the MCP Server:

    bash
    uvx -y duckduckgo-mcp-server

    *(Make sure uvx is installed. If not, install it.)*

    ---

    Usage

    Run the main script:

    bash
    python main.py

    This will:

    • Start the MCP client
    • Connect to the duckduckgo-mcp-server
    • Use the Groq LLM to perform a smart search
    • Print the result

    ---

    Example Code

    python
    import asyncio
    import os
    from dotenv import load_dotenv
    from langchain_groq import ChatGroq  
    from mcp_use import MCPAgent, MCPClient
    
    async def main():
        load_dotenv()
        config = {
            "mcpServers": {
                "ddg-search": {
                    "command": "uvx",
                    "args": ["-y", "duckduckgo-mcp-server"]
                }
            }
        }
        client = MCPClient.from_dict(config)
        llm = ChatGroq(model="deepseek-r1-distill-llama-70b")
        agent = MCPAgent(llm=llm, client=client, max_steps=30)
        result = await agent.run("Find the best restaurant in San Francisco")
        print(f"\nResult: {result}")
    
    if __name__ == "__main__":
        asyncio.run(main())

    ---

    Resources

    • DuckDuckGo MCP Server
    • LangChain Groq Documentation
    • Micro Component Protocol (MCP)

    ---

    License

    This project is licensed under the MIT License.

    Similar MCP

    Based on tags & features

    • DA

      Davinci Resolve Mcp

      Python·
      327
    • BI

      Biothings Mcp

      Python·
      25
    • FH

      Fhir Mcp Server

      Python·
      55
    • OM

      Omop Mcp

      Python·
      14

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • DA

      Davinci Resolve Mcp

      Python·
      327
    • BI

      Biothings Mcp

      Python·
      25
    • FH

      Fhir Mcp Server

      Python·
      55
    • OM

      Omop Mcp

      Python·
      14

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k