Skip to main content

langchain-nestdaddy

Give your AI today's internet. Live web search, real-time breaking news from around the world and full page reading for LangChain agents and RAG pipelines, from NestDaddy's own index.

PyPI tests

pip install -U langchain-nestdaddy
export NESTDADDY_API_KEY="your-key"   # free trial key: https://nestdaddy.com/mcp
Class What it does
NestDaddySearch Web search on NestDaddy's own index (title, url, snippet, domain)
NestDaddyNewsSearch Real-time news by key words, optional country and time window
NestDaddyReadPage Clean main text of any page or article, no menus or ads
NestDaddyNewsRetriever News as LangChain Documents for RAG, optionally with the full article text

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.",
)

result = agent.invoke({"messages": [{"role": "user", "content": "What did the Fed decide this week?"}]})
print(result["messages"][-1].content)

Any chat model that supports tool calling works the same way.

Use the tools directly

from langchain_nestdaddy import NestDaddyNewsSearch, NestDaddySearch, NestDaddyReadPage

NestDaddySearch(max_results=3).invoke({"query": "model context protocol"})
# {'query': 'model context protocol', 'count': 3, 'results': [{'title': ..., 'url': ..., 'snippet': ...}]}

NestDaddyNewsSearch().invoke({"query": "interest rates", "country": "US", "days": 7})
# {'query': 'interest rates', 'count': 10, 'total': ..., 'results': [{'title': ..., 'source_domain': ...,
#   'published_timestamp': ..., 'summary': ...}]}

NestDaddyReadPage(max_chars=8000).invoke({"url": "https://example.com/some-article"})
# {'title': ..., 'final_url': ..., 'text': ...}

Local news works in the local language: NestDaddyNewsSearch().invoke({"query": "banjir Jakarta", "country": "ID"}).

RAG over today's news

from langchain_nestdaddy import NestDaddyNewsRetriever

retriever = NestDaddyNewsRetriever(k=5, days=3, full_text=True)
docs = retriever.invoke("chip export rules")

for d in docs:
    print(d.metadata["title"], d.metadata["url"], d.metadata["published_timestamp"])
    print(d.page_content[:300])

With full_text=True each article is read in full (one extra API call per article). If an article cannot be read, its summary is kept so you still get k documents.

Async

Every tool and the retriever support ainvoke; the retriever reads full articles in parallel.

docs = await NestDaddyNewsRetriever(k=5, full_text=True).ainvoke("AI regulation")

Errors

API errors raise NestDaddyAPIError with the HTTP status and a hint (a bad key points to the dashboard, a plan limit to the plans page). Your key is stored as a SecretStr and never printed.

Prefer MCP?

The same tools are available as a remote MCP server for Claude, Cursor, VS Code and n8n: https://mcp.nestdaddy.com/mcp. Setup: nestdaddy.com/mcp.

Development

pip install -e ".[test]"
pytest tests/unit_tests --disable-socket --allow-unix-socket   # offline
NESTDADDY_API_KEY=... pytest -m integration tests/integration_tests

MIT licensed.

Metadata

Release files for langchain-nestdaddy 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-nestdaddy 0.1.1
File Size Uploaded Provenance Actions
langchain_nestdaddy-0.1.1.tar.gz 10.4 kB Without provenance Details for langchain_nestdaddy-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-nestdaddy 0.1.1
File Interpreter ABI Platform Actions
langchain_nestdaddy-0.1.1-py3-none-any.whl Python 3 none any Details for langchain_nestdaddy-0.1.1-py3-none-any.whl

Total release size: 20.8 kB

Release files / langchain_nestdaddy-0.1.1.tar.gz

Download URL langchain_nestdaddy-0.1.1.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6e5b58ee0edf9b0cf27911362f8c6ee1cfe9739445c412bb0ccc1056dc666163
BLAKE2b-256 checksum
How to use checksums
bfe36c4758093578f1d19b591aeb11a9c32b41a974104b395e6ec02e206f411c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release files / langchain_nestdaddy-0.1.1-py3-none-any.whl

Download URL langchain_nestdaddy-0.1.1-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2a2c1180160cb487b79b88e253efde5de54fda78058490d3f6873b369f481b0
BLAKE2b-256 checksum
How to use checksums
d70e4c95048e62fa25252aeb5bea2da36ead5a4ae62b2bbab3e9a8171ae5f236
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Security for langchain-nestdaddy 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page