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

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.10.tar.gz (6.9 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.10-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for metalift_langchain-1.0.10.tar.gz
Algorithm Hash digest
SHA256 c2b481439d7490679761a1a00e6cee0bcaa7c88c160f24205c97ad745095b68c
MD5 81a74c4bdd2128a62a8dd8530bc14c53
BLAKE2b-256 d7074d8c3aaa9bddf0ad27746c35450fb97e2cd26154194d4090b9a591bdffbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for metalift_langchain-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 6587002e34621ce8f0c0bde25604f764d592769b97530cf8124c21cbfb0a080d
MD5 116a9194a50f2fe887d65377413f33bd
BLAKE2b-256 92cf930f6d8dc4cb03ef114b989950742b97bbb12a55a3f45e66d2f0a6e7f69a

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