DuckDuckGo Search with MCP Agent
@alihassanml
About 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).
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"Duckduckgo-with-MCP": {
"command": "uvx",
"args": [
"-y",
"duckduckgo-mcp-server"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is DuckDuckGo Search with MCP Agent?
DuckDuckGo Search with MCP Agent is a project that demonstrates how to use the DuckDuckGo MCP Server with a LangChain Groq LLM agent to perform intelligent search tasks via MCP (Micro Component Protocol). It is intended for developers building search-driven applications with agentic reasoning.
How to use DuckDuckGo Search with MCP Agent?
Clone the repository, install dependencies with pip install -r requirements.txt, set your GROQ_API_KEY in a .env file, install the MCP server via uvx -y duckduckgo-mcp-server, and run python main.py. The script starts an MCP client, connects to the DuckDuckGo MCP server, and uses the Groq LLM to perform a smart search.
Key features of DuckDuckGo Search with MCP Agent
- DuckDuckGo MCP Server integration
- Groq LLM (
deepseek-r1-distill-llama-70b) for reasoning - Async Python execution
- Simple and modular code structure
Use cases of DuckDuckGo Search with MCP Agent
- Performing intelligent web searches with an LLM agent
- Demonstrating MCP client-server integration with LangChain
- Building modular search pipelines that reason over results
FAQ from DuckDuckGo Search with MCP Agent
What dependencies are required?
The project requires libraries such as langchain_groq and python-dotenv, listed in requirements.txt. You also need uvx installed to run the DuckDuckGo MCP server.
What LLM model does the agent use?
The agent uses Groq's deepseek-r1-distill-llama-70b model for reasoning.
How do I get started quickly?
Set up your .env file with a valid GROQ_API_KEY, install all Python dependencies, and run python main.py. The script includes an example that searches for "the best restaurant in San Francisco."
What transport protocol does the server use?
The server uses MCP (Micro Component Protocol) over stdio, launched via the uvx command.
Is there a license for this project?
Yes, this project is licensed under the MIT License.
More Search MCP servers
Bing Search MCP Server
leehanchungMCP Server for Bing Search API
Brave Search MCP Server
mikechaoAn MCP Server implementation that integrates the Brave Search API, providing, Web Search, Local Points of Interest Search, Image Search, Video Search, News Search and LLM Context Search capabilities
Web Scout MCP Server
pinkpixel-devA powerful MCP server extension providing web search and content extraction capabilities. Integrates DuckDuckGo search functionality and URL content extraction into your MCP environment, enabling AI assistants to search the web and extract webpage content programmatically.
Google Search Console MCP server for SEOs
AminForouGoogle Search Console Insights with Claude AI for SEOs
Naver Search MCP Server
isnow890MCP server for Naver Search API integration. Provides comprehensive search capabilities across Naver services (web, news, blog, shopping, etc) and data trend analysis tools via DataLab API.
Comments