DuckDuckGo Search with MCP Agent
@alihassanml
关于 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).
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"Duckduckgo-with-MCP": {
"command": "uvx",
"args": [
"-y",
"duckduckgo-mcp-server"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
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.
搜索 分类下的更多 MCP 服务器
duckduckgo-search MCP Server
zhsamaExa MCP Server 🔍
exa-labsExa MCP for web search and web crawling!
Google Search Console MCP Server
ahonnA Model Context Protocol (MCP) server providing access to Google Search Console
SerpApi MCP Server
ilyazubSerpApi MCP Server for Google and other search engine results
Serper Search and Scrape MCP Server
marcopesaniSerper MCP Server supporting search and webpage scraping
评论