Metalift LangChain integration
LangChain tools for Metalift — a hosted web context API that turns URLs into LLM-ready markdown for agents. This package wraps the Metalift REST API; it does not use @langchain/community RecursiveUrlLoader or any local server-side HTTP fetch of user-supplied URLs.
Get an API key
- Sign up for Metalift Cloud and verify your email.
- Complete onboarding on the dashboard.
- Copy your API key from Dashboard → API keys.
New accounts receive 1,000 free credits/month on the Free tier. Use the Metalift Cloud API at https://api.metalift.ai.
Do not commit API keys into source code — pass them at runtime or via the METALIFT_API_KEY environment variable.
Security
- All URL fetching runs on the Metalift scrape API with SSRF guards: manual redirect validation, private/metadata IP blocklist, DNS pinning, and Playwright egress isolation.
- Do not use LangChain's built-in
RecursiveUrlLoader(or similar loaders with automatic redirect following) for untrusted URLs — see CVE-2026-27795 and Metalift security.
Usage
pip install metalift-langchain
from metalift_langchain import get_metalift_tools
tools = get_metalift_tools(api_url="https://api.metalift.ai", api_key="YOUR_API_KEY")
Requires the metalift-sdk package and a reachable Metalift scrape API.
Links
Metadata
Release files for metalift-langchain 1.0.10
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 | Actions |
|---|---|---|---|---|
| metalift_langchain-1.0.10.tar.gz | 6.9 kB | Without provenance | Details for metalift_langchain-1.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| metalift_langchain-1.0.10-py3-none-any.whl | Python 3 | none | any | Details for metalift_langchain-1.0.10-py3-none-any.whl |
Total release size: 14.4 kB
Release files / metalift_langchain-1.0.10.tar.gz
| Download URL | metalift_langchain-1.0.10.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2b481439d7490679761a1a00e6cee0bcaa7c88c160f24205c97ad745095b68c
|
|
BLAKE2b-256 checksum How to use checksums |
d7074d8c3aaa9bddf0ad27746c35450fb97e2cd26154194d4090b9a591bdffbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / metalift_langchain-1.0.10-py3-none-any.whl
| Download URL | metalift_langchain-1.0.10-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6587002e34621ce8f0c0bde25604f764d592769b97530cf8124c21cbfb0a080d
|
|
BLAKE2b-256 checksum How to use checksums |
92cf930f6d8dc4cb03ef114b989950742b97bbb12a55a3f45e66d2f0a6e7f69a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for metalift-langchain 1.0.10
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.