scrape-any-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
scrape-any
Scrape any website, for people and for AI agents. One command (or one function, or one MCP tool) that reads a page the way a person sees it. It uses fast HTTP when that's enough and switches to a stealth browser automatically when the site blocks bots, hides content behind JavaScript, or puts up a Cloudflare challenge. It can also read any page as it was in the past from the Wayback Machine.
scrape-any example.com # everything on the page, as JSON
scrape-any https://blog.example.com/post -F md # the article as clean MarkdownBuilt on Scrapling (fetchers, stealth browser, Cloudflare solver). scrape-any adds the parts you normally write yourself every time: picking a mode, extraction, pagination, crawling, sitemaps, contacts, web archives, dedupe, limits, reports, output formats and an MCP server.
What it does
You want | Command |
Everything on a page (title, meta, headings, text, links, images, tables, JSON-LD, emails, phones, socials) |
|
The main content as clean Markdown, without menus or footers |
|
A product / listing / table page as rows |
|
Follow "next page" |
|
A whole site |
|
Only what's in the sitemap |
|
A site for an LLM ( |
|
Emails, phones and social profiles for a list of sites |
|
The data a web app loads in the background (XHR / fetch / GraphQL JSON) |
|
A full-page screenshot |
|
Pages behind your login |
|
A page as it was in 2015 |
|
Every saved version of a page |
|
Every archived URL of a dead site |
|
Rebuild a deleted site as Markdown |
|
How it gets past blocks
--mode auto (the default) runs this ladder for each URL:
Fast HTTP with a real Chrome TLS fingerprint and realistic headers (no browser, about 1 second).
If the response is a bot wall (403/429/503, Cloudflare, PerimeterX, DataDome, Incapsula, AWS WAF, captcha markers), an empty JavaScript shell (React/Next/Vue app with no text), or your
--item/--selectmatched nothing, it switches to a stealth Chromium browser.If the browser lands on a Cloudflare challenge, it retries with the challenge solver on.
If it is still blocked, the run report says so (
blocked: 1, with the reason) instead of giving you a silent empty result.
Measured on 2026-11-29: scrapingcourse.com/cloudflare-challenge answered HTTP 403 to step 1, and
step 3 returned "You bypassed the Cloudflare challenge!". A JavaScript-only page
(quotes.toscrape.com/js/) returned 0 rows over HTTP and 10 rows after the automatic switch.
Honest limits. No scraper gets through every block on every site. Hard targets may also need a
residential --proxy, --real-chrome, or a logged-in --profile. Captchas that need a human
(image puzzles) are not solved. Speed: the browser is about 5–10× slower than HTTP, which is why it
is only used when needed.
Related MCP server: Spicrawl MCP Server
Install
pip install "scrape-any[mcp]" # or: uv tool install "scrape-any[mcp]"
scrapling install # one time: downloads the stealth browser (~200 MB)From source:
git clone https://github.com/alaudinbarki/scrape-any && cd scrape-any
uv venv && uv pip install -e ".[dev]" && scrapling installPython 3.10+. Docker: docker build -t scrape-any . && docker run --rm scrape-any example.com.
Use it from the command line
# Product listing -> CSV, with pagination, a regex-cleaned price and absolute links
scrape-any https://shop.example.com/c/tools \
--item ".product" \
--field name=h2 \
--field price=".price|re:[\d.,]+" \
--field url="a::attr(href)" \
--field image="img::attr(src)" \
--next "a.next" --max-pages 30 \
-F csv -o tools.csv --report run.json
# Infinite-scroll page: browser, scroll 10 times, wait for results
scrape-any https://app.example.com/feed --mode browser --scroll 10 --wait ".post"
# Same options from a file (good for repeat jobs)
scrape-any --config examples/job-quotes.jsonSelectors
Form | Example | Returns |
CSS element |
| the element's visible text |
CSS text |
| the text node |
CSS attribute |
| the attribute (links made absolute when the field name looks like |
XPath |
| the XPath result |
Regex filter |
| the first match, or group 1 |
Output formats (-F)
Format | Notes |
| one object for one page, a list otherwise |
| one row per line, streamed while the run goes (safe for big crawls) |
| lists joined with |
| page rows as Markdown; |
| plain text (pages) or tab-separated values (rows) |
|
|
Every run ends with a report
[scrape-any] done: 2 page(s) ok, 4 row(s), 1 duplicate(s) dropped, price empty in 1/4--report run.json saves the full report: pages ok/failed/blocked with reasons, rows,
duplicates, whether --max-items stopped the run, the fill rate of each field, and how many requests
went over HTTP and how many through the browser.
Exit codes: 0 all good · 1 nothing could be read · 2 bad options · 3 some pages failed or were blocked.
Run scrape-any --help for every option.
Use it from Python
from scrape_any import scrape
page = scrape("https://example.com")[0]
print(page["title"], page["emails"], page["socials"])
rows, report = scrape(
"https://quotes.toscrape.com",
item=".quote",
fields={"text": ".text", "author": ".author", "tags": ".tags"},
next_sel="li.next a",
max_pages=5,
report=True,
)
print(len(rows), report.summary())
old = scrape("https://example.com", wayback="2005", markdown=True)[0]
print(old["snapshot_time"], old["markdown"][:200])Use it from an AI agent (MCP)
scrape-any-mcp is an MCP server (stdio). Add it to Claude Code,
Claude Desktop, Cursor or any MCP client:
{
"mcpServers": {
"scrape-any": { "command": "scrape-any-mcp" }
}
}Claude Code: claude mcp add scrape-any -- scrape-any-mcp
Tool | What the agent gets |
| a page as Markdown (or full JSON), with automatic switching to the browser |
| repeated records as JSON rows, with pagination |
| many pages of a site (links or sitemap) with Markdown excerpts |
| emails, phones and socials per site |
| the JSON responses a web app loads |
| a full-page image |
| a page as archived on a date |
| every saved version of a page |
| every archived URL of a domain |
Every tool wraps scraped content in a notice that it is untrusted data, not instructions, because a web page can carry text written to hijack an agent (prompt injection).
Web archives
Source | Support |
Wayback Machine (web.archive.org) | Full. Snapshots are read in raw |
archive.today (archive.ph) | Best effort ( |
--wayback WHEN takes latest (default), earliest, 2019, 2019-05, 2019-05-01 or a full
20190501123000. A bare year or month aims at its middle, so the closest capture lands inside it.
Archive mode never contacts the live site, so it skips the live site's robots.txt.
Responsible use
robots.txt is checked by default and its
Crawl-delayis honoured.--ignore-robotsexists for sites you own or have permission to scrape.The default
--delay 1keeps the load polite.--max-itemsis a hard cap.You are responsible for following each site's terms, copyright, and privacy law (GDPR, CCPA) for any personal data you collect, such as emails and phones.
Don't use it to get around paywalls or logins you have no right to.
Development
uv venv && uv pip install -e ".[dev]"
pytest -q # 33 tests, offline: they use a local test website in tests/fixtures/site
ruff check src tests && ruff format --check src testsDesign docs live in docs/ (product, technical, flow, design, schema, plan). See
CONTRIBUTING.md and SECURITY.md.
License
MIT. Scrapling, the engine under this tool, is BSD-3-Clause.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Web scraping, extraction and search for AI agents. Hosted MCP with workspace API keys.
Web search, structured extraction, page monitor, link check & CVE scan for AI agents over MCP.
Scrape, crawl and search the web for AI agents via MCP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables agents to scrape, crawl, map, search, and extract web pages as clean markdown or structured JSON directly through MCP tools.AGPL 3.0
- AlicenseAqualityBmaintenanceEnables AI agents to scrape web pages into Markdown, text, HTML, JSON, PDFs, screenshots, and structured data, while managing batch scraping jobs, persistent browser sessions, usage/request history, and docs lookup through native MCP tools.28855 npm5Apache 2.0
- AlicenseAqualityNot gradedmaintenanceEnables MCP-compatible AI agents to search, scrape, crawl, map, and interact with live web pages, returning clean, structured, agent-ready content. It also supports recurring page monitoring, autonomous deep research, and credit-usage checks.261MIT
- FlicenseNot gradedqualityAmaintenanceEnables language models to perform AI-powered web scraping, structured extraction, search, multi-page crawling, schema generation, monitoring, and account queries through MCP tools.-