langchain-serpdive
The official LangChain integration for SERPdive, the AI Search API: your agent asks a question, the tool returns answer-ready web content that is extracted, cleaned, and sized for an LLM. On a public, replayable 1,000-question benchmark, SERPdive runs at the same speed as Tavily, feeds your LLM 20.2% fewer tokens, and wins 60.7% of decided quality duels.
There is a free tier, and it has no ceiling. The krill model is free and unlimited under fair use — no card, no credits, nothing to decrement. It returns the shortest set of sentences that still answers (about 700 tokens a search, roughly half what the usual alternatives send), one request at a time, at low priority. Use it to build; switch one word to mako when you need depth and steady latency.
Install
pip install langchain-serpdive
Get a free API key (no card required) at serpdive.com/dashboard/keys and set it:
export SERPDIVE_API_KEY="sd_live_..."
Use as a tool
from langchain_serpdive import SerpdiveSearch
tool = SerpdiveSearch()
tool.invoke({"query": "latest developments in solid state batteries"})
The output is a lean dict your model can quote and cite directly:
{
"query": "latest developments in solid state batteries",
"results": [
{
"url": "https://...",
"title": "...",
"date": "2026-07-11",
"content": "The fact-carrying text of the page, extracted and cleaned...",
},
...
],
}
Use in an agent
from langchain.chat_models import init_chat_model
from langgraph.prebuilt import create_react_agent
from langchain_serpdive import SerpdiveSearch
agent = create_react_agent(
init_chat_model("claude-sonnet-5"),
tools=[SerpdiveSearch()],
)
agent.invoke({"messages": [("user", "What changed in the EU AI Act this month?")]})
Options
SerpdiveSearch(
model="moby", # "mako" (default): key sentences, fast. "moby": full page text, deep research
answer=True, # also return a direct answer synthesized from the sources
max_results=5, # hard cap on delivered results, 1-10
api_key="sd_live_...", # defaults to SERPDIVE_API_KEY
)
Localization is automatic: the language of the query picks where we search. There is no country parameter to configure. Failed searches are never billed.
Links
- API reference
- Public benchmark (replayable end to end: same questions, same judge, your machine)
- Python SDK (this package is a thin layer over it)
- MCP server for Claude, Cursor and other MCP clients
License
MIT
Metadata
Release files for langchain-serpdive 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| langchain_serpdive-0.2.1.tar.gz | 6.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_serpdive-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.6 kB
Release files / langchain_serpdive-0.2.1.tar.gz
| Download URL | langchain_serpdive-0.2.1.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a43f196f4176ad70244ff96cf9f789c5fa286a54c6ead3adbc1f7ac5aa99413e
|
|
BLAKE2b-256 checksum How to use checksums |
8e5468df8a29d2c66435dd8ca447e494a59ca32e28a26443d240c919d2e7558a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.
Transparency logRelease files / langchain_serpdive-0.2.1-py3-none-any.whl
| Download URL | langchain_serpdive-0.2.1-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ea90b9c5540933d93af209f5c517563caa6bc555723cf40a2c9070d6d8a102c
|
|
BLAKE2b-256 checksum How to use checksums |
607eab71e3ba513dda6fda782a483aa3f1f9b5e3361ee1b164d739dcbaff9d57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.
Transparency logSecurity for langchain-serpdive 0.2.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for langchain_serpdive-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.
Transparency logA 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.