Skip to main content

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

  1. Sign up for Metalift Cloud and verify your email.
  2. Complete onboarding on the dashboard.
  3. 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)

Source distribution for metalift-langchain 1.0.10
File Size Uploaded
metalift_langchain-1.0.10.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for metalift-langchain 1.0.10
File Interpreter ABI Platform
metalift_langchain-1.0.10-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.10 This release

2 release files

1.0.9

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.1

2 release files

1.0.0

2 release files

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