Live web search and real-time news for LangChain agents
The langchain-nestdaddy package gives LangChain agents web search, news search, page reading and a news retriever for RAG, with one key.
langchain-nestdaddy is a LangChain integration for NestDaddy's own search index and real-time news collection. It gives you three tools and one retriever:
| Class | What it gives the agent |
|---|---|
NestDaddySearch |
Web search: title, url, snippet and domain of each result |
NestDaddyNewsSearch |
Real-time news by key words, with an optional country and time window |
NestDaddyReadPage |
The clean main text of any page or article |
NestDaddyNewsRetriever |
News as LangChain Documents for RAG |
Install
pip install -U langchain langchain-nestdaddy
export NESTDADDY_API_KEY="your-key"
Get a key at nestdaddy.com/mcp (free plan: 1,000 calls a month, no card).
Use the tools
from langchain_nestdaddy import NestDaddyNewsSearch, NestDaddySearch
NestDaddySearch(max_results=2).invoke({"query": "model context protocol"})
NestDaddyNewsSearch(max_results=3, days=2).invoke({"query": "AI agents"})
Give an agent live search and news
from langchain.agents import create_agent
from langchain_nestdaddy import NestDaddyNewsSearch, NestDaddyReadPage, NestDaddySearch
agent = create_agent(
"anthropic:claude-sonnet-5-5",
tools=[NestDaddySearch(max_results=5), NestDaddyNewsSearch(days=7), NestDaddyReadPage()],
system_prompt=(
"Use news search for anything recent, web search for everything else. "
"Read a page in full before you explain its details, and cite the urls you used."
),
)
result = agent.invoke({"messages": [{"role": "user", "content": "What did OpenAI announce this week?"}]})
print(result["messages"][-1].content)
Any chat model with tool calling works: swap the model string for OpenAI, Gemini or a local model through Ollama.
RAG over today's news
NestDaddyNewsRetriever returns news articles as Documents (with title, url, source and date in the metadata), so it drops into any LangChain RAG chain. The full guide shows the options and the output.
Full guide with outputs: Give your LangChain agent live web search and real-time news. Source: github.com/nestdaddy/langchain-nestdaddy.
