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.9.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.9-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: metalift_langchain-1.0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 6dbb29eade5f0abfe58f69fae43cf3c04ca1144f72185c3f9f4787e83145c17c
MD5 fa02ac8c36805446270558fcaf42c92c
BLAKE2b-256 1213453db2f63a790220e2c514fe62ad2a0a4f7a99b96aee03e7f8c134aea705

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for metalift_langchain-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1340fceeaaf2b6838f4611ed255045b5a2ac824d683e9fbb70981e4e255d54ff
MD5 6d1dbce43fd5c9c40b0deed37afb6430
BLAKE2b-256 3dd2fa910db6c63a98e8ad62102743e31b4ddc2cc0a286c18cf3355a0a6b327b

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