langchain-stackresolve
LangChain tools for StackResolve: web intelligence for AI agents.
Pick software for a task, compare vendors, check whether a product is agent-ready, and pull structured company facts. One tool call instead of a search-and-scrape loop.
pip install langchain-stackresolve
Quickstart
Every tool works without a key, subject to an anonymous rate limit. A free key from stackresolve.dev/developers raises it.
import os
from langchain_stackresolve import StackResolveToolkit
from langchain.agents import create_agent
os.environ["STACKRESOLVE_API_KEY"] = "ar_..." # optional, raises the rate limit
agent = create_agent(
model="claude-sonnet-5",
tools=StackResolveToolkit().get_tools(),
)
result = agent.invoke({
"messages": [{
"role": "user",
"content": "I need to scrape javascript-heavy sites. What should I use, "
"and what does it cost?",
}]
})
print(result["messages"][-1].content)
The agent calls stackresolve_find_tools to get scored candidates, then
stackresolve_get_pricing on the winner. Two calls, structured answers, no scraping.
Single tools
Import only what you need:
from langchain_stackresolve import StackResolveAudit, StackResolveFindTools
audit = StackResolveAudit()
print(audit.invoke({"domain": "stripe.com"}))
find = StackResolveFindTools()
print(find.invoke({"task": "send transactional email from a Node service"}))
Tools
| Tool | What it answers |
|---|---|
stackresolve_find_tools |
"What should I use for this task?" Ranked, with AgentReady scores. |
stackresolve_search_tools |
Registry search filtered on API, MCP, CLI, OpenAPI, or self-serve. |
stackresolve_compare_products |
Side-by-side on scores, capabilities, and pricing. |
stackresolve_audit |
0-100 agent-readiness score for a domain, plus failing checks. |
stackresolve_get_company |
Structured company facts from a domain. |
stackresolve_get_pricing |
Current plans and prices as structured data. |
stackresolve_find_competitors |
Competitors, with how each one differs. |
stackresolve_research_company |
Deep research with sources, answering a question. |
All eight work without a key, subject to an anonymous rate limit. A free key raises the limit and is required for account endpoints (monitors, usage, discovery runs), which this package does not expose.
Configuration
The toolkit and every tool accept api_key and base_url, and otherwise read
STACKRESOLVE_API_KEY and STACKRESOLVE_BASE_URL from the environment.
toolkit = StackResolveToolkit(api_key="ar_...")
Pass an existing SDK client to share connection state:
from stackresolve import StackResolve
client = StackResolve(api_key="ar_...")
tools = StackResolveToolkit(client=client).get_tools()
Errors
Tools return a readable message rather than raising, so a failed call does not end the agent's turn. A missing key, an exhausted allowance, and a rate limit each come back as text the model can act on.
Output size
Tool output is capped at 6,000 characters and marked when truncated, so a large registry
or research payload cannot flood the context window. Change it with
langchain_stackresolve.tools.MAX_CHARS.
Also available
- Hosted MCP server (no install):
https://mcp.stackresolve.dev/mcp - TypeScript SDK and CLI:
npm install stackresolve - Python SDK on its own:
pip install stackresolve - REST API:
https://api.stackresolve.dev, OpenAPI at/openapi.json
License
MIT
Metadata
Release files for langchain-stackresolve 0.2.0
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_stackresolve-0.2.0.tar.gz | 9.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_stackresolve-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.5 kB
Release files / langchain_stackresolve-0.2.0.tar.gz
| Download URL | langchain_stackresolve-0.2.0.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f880e3d89ff99ef497daaa350553f722285ff80352a60625ad97744592505ff
|
|
BLAKE2b-256 checksum How to use checksums |
d06e79ed5a5bbf8ae7d50419dff906539bd40779161cd4e880ca49676226ff69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.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 Sep 1, 2026.
Transparency logRelease files / langchain_stackresolve-0.2.0-py3-none-any.whl
| Download URL | langchain_stackresolve-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1a9ec64e98131fd07e8688d23afedf917b3ed04789649ebbd525ea89c793632
|
|
BLAKE2b-256 checksum How to use checksums |
1007533c72e9988b458adcabd27aed09a7d0692d2da20e595e0780eb9c5b0301
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.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 Sep 1, 2026.
Transparency logSecurity for langchain-stackresolve 0.2.0
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_stackresolve-0.2.0.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 Sep 1, 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.