Skip to content
LangChain

duckduckgo for LangChain

io.github.johnisanerd/duckduckgo

DuckDuckGo web search results, news and related searches. Paid, on Apify's hosted MCP.

client:LangChain transport:streamable-http

Install duckduckgo in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "duckduckgo": {
            "transport": "streamable_http",
            "url": "https://mcp.apify.com/?tools=johnvc/DuckDuckGo-Scraper-for-serp-rankings",
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

duckduckgo in other clients