metalift

v1.0.15
io.github.MetaLift-AI/metalift Checked 2 days ago Published 5 months ago

Metalift MCP for AI agents: web search (2 credits), scrape, crawl, and map tools

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

metalift_scrape Scrape URL

Scrape a single URL into markdown, HTML, or text. Default: fast static article path (1 credit, response_detail=compact). E-commerce hosts auto-route to retail/residential. Pass strategy=auto for WAF/SPA pages. Fetch metalift://agent-guide for session workflow. You are solely responsible for complying with website terms, robots.txt, copyright, and data protection laws when using scraped content.

ParameterTypeDescription
url *stringPage URL to scrape
cookie_headerstringRaw Cookie header from DevTools. Routes through Playwright + sticky proxy to preserve browser TLS fingerprint. Prefer metalift_seed_session with storage_state for repeat scrapes.
cookiesobjectSession cookies (name→value). Routes through Playwright browser session + proxy — not static HTTP. Prefer metalift_seed_session for reuse.
formatsarrayOutput formats; default markdown only
headersobjectExtra request headers. Pass User-Agent from the user's browser when using cookie_header so the session fingerprint matches.
only_main_contentbooleanExtract main article content only (default true)
proxystringProxy tier; default direct for static pages
renderstringRender mode; default static for plain URLs
response_detailstringResponse depth: compact (default, ~16k chars, no links), standard (full markdown + capped links), full (complete JSON).
screenshotbooleanCapture page screenshot (adds cost)
strategystringScrape strategy: auto, article, spa, cloudflare, authenticated, listing, retail, jsonld, download, raw, or comma-separated chain. Use download for full static HTML. See /v1/strategies for protection l…
timeout_msnumberPer-attempt timeout in milliseconds
wait_forstringCSS selector to wait for before scraping

metalift_batch_scrape Batch Scrape URLs

Scrape up to 100 URLs in parallel (billed per URL). Default response_detail=compact. Use async=true for background jobs; wait=true blocks with progress. For JS-heavy pages set strategy=auto in scrape_options. You are solely responsible for complying with website terms, robots.txt, copyright, and data protection laws when using scraped content.

ParameterTypeDescription
urls *arrayURLs to scrape in parallel
asyncbooleanRun as background job (returns job id)
scrape_optionsobjectShared scrape options applied to every URL in the batch
waitbooleanWhen async=true, wait for completion with progress updates (default true).

metalift_crawl Crawl Website

Crawl a site from a seed URL and return markdown for discovered pages (1+ credits per page). Default wait=true blocks with progress; wait=false returns job id for metalift_job_status.

ParameterTypeDescription
url *stringSeed URL to start crawling from
exclude_pathsarraySkip paths matching these prefixes
include_pathsarrayOnly crawl paths matching these prefixes
limitnumberMaximum pages to crawl
max_depthnumberMaximum link depth from seed URL
waitbooleanWait for crawl to finish with progress updates (default true).

metalift_sitemap Fetch Sitemap

Fetch XML sitemap URLs for a site. Discovers sitemap locations from robots.txt (Sitemap: directives) or /sitemap.xml, follows sitemap indexes, and returns page URLs with optional lastmod/changefreq/priority. Costs 1 credit. Prefer this over metalift_map when you need the site's published URL list.

ParameterTypeDescription
url *stringSite homepage or direct sitemap.xml URL
limitnumber
same_originbooleanOnly return URLs on the same origin (default true)
searchstringOptional substring filter; matching URLs sort first

metalift_map Map Website URLs

Discover same-origin links by parsing HTML anchors on one page (1 credit). Fallback when metalift_sitemap is unavailable. Does not fetch full page content.

ParameterTypeDescription
url *stringPage URL to extract links from
limitnumberMaximum URLs to return
searchstringOptional substring filter for URLs

metalift_job_status Get Job Status

Poll async crawl or batch job status and results. Returns human-readable progress (pages completed, credits charged).

ParameterTypeDescription
job_id *stringJob id from metalift_crawl or metalift_batch_scrape

metalift_list_strategies List Scrape Strategies

List scrape strategies with protection levels and credit estimates. Use before scraping unknown protected sites.

metalift_seed_session Seed Domain Session

Store browser session credentials for a domain (org-scoped). Prefer full Playwright storage_state JSON from the user's browser — preserves cookies + localStorage for fingerprint-coherent replay via unified browser session on later scrapes. Fallback: cookie_header + user_agent from DevTools.

ParameterTypeDescription
domain *stringSite hostname, e.g. actionpowertest.com or www.walmart.com
cookie_headerstring
cookiesobject
storage_stateobjectPlaywright context.storageState() JSON — preferred over cookie_header alone
ttl_hoursnumber
user_agentstringUser-Agent from the same browser session that issued the cookies

metalift_warm_session Warm Domain Session

Automated browser warmup to collect cookies for later scrapes (15 credits). Use when manual metalift_seed_session is not possible; often fails on strict WAFs.

ParameterTypeDescription
url *stringSeed URL to visit in browser
domainstringOverride domain for stored session
proxystringDefault auto. Use residential for WAF-heavy sites.
strategystringe.g. retail, cloudflare, authenticated
timeout_msnumberBrowser warmup timeout in milliseconds

metalift_list_sessions List Domain Sessions

List org-scoped browser sessions stored via metalift_seed_session.