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 hosted API at https://api.metalift.ai, or point api_url at your own self-hosted scrape API.

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metalift_langchain-1.0.4.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metalift_langchain-1.0.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file metalift_langchain-1.0.4.tar.gz.

File metadata

  • Download URL: metalift_langchain-1.0.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for metalift_langchain-1.0.4.tar.gz
Algorithm Hash digest
SHA256 44d12a8541376fe2a74558e9c88ae83fac1fee02a03bdb1ba1387e344518d457
MD5 d4a9807723fb828733fd72a539b08504
BLAKE2b-256 660e387f481987b3a91a0c59285943216b8f68907211e193ea01de2169c44efe

See more details on using hashes here.

File details

Details for the file metalift_langchain-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for metalift_langchain-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 091a528183222d6c602f7a6891d784564936ddbc5f7f682856ce1ad62c5fe28b
MD5 8ad6df96a9d3461dd873a96ddcd83879
BLAKE2b-256 05fa8f67523d0262007d88ad232e13ebf099131624d96c601bcfce6af7505acc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page