scrapy-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@scrapy-mcpScrape the main content of example.com as markdown"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
scrapy-mcp
A headless web-scraping MCP server built on Scrapy. It exposes Scrapy's scraping primitives — polite fetching, CSS/XPath extraction, link and table extraction, sitemap and robots.txt reading, and bounded asynchronous crawls — as MCP tools an agent can call over stdio.
Headless, no rendering. Pages are fetched and parsed as HTML; no browser, no JavaScript execution. This keeps the footprint tiny — it runs comfortably on weak machines.
Reactor-safe. Every operation runs in a short-lived Scrapy subprocess, so Twisted's reactor never lives inside the asyncio MCP server (no
ReactorNotRestartable), and memory is reclaimed after each call.Polite by default. Obeys
robots.txt, throttles with AutoThrottle, and enforces hard page/depth caps so a crawl can't run away.
Install / run
Run straight from PyPI with uv — no install step:
uvx scrapy-mcpOr install it:
uv pip install scrapy-mcp
scrapy-mcpThe server speaks MCP over stdio. Point any MCP client at it. For Claude Desktop, add to
claude_desktop_config.json:
{
"mcpServers": {
"scrapy": {
"command": "uvx",
"args": ["scrapy-mcp"]
}
}
}Related MCP server: Scrapy MCP Server
Tools
Tool | What it does |
| Fetch one page as |
| Pull structured fields with CSS/XPath selectors. |
| Extract every HTML |
| List de-duplicated links on a page. |
| Read a sitemap (gzip + sitemap-index aware). |
| Is a URL crawlable? Returns the crawl-delay and sitemaps. |
| Start a bounded BFS crawl; returns a |
| State + pages scraped for a crawl. |
| Page through a crawl's scraped items. |
| Stop a running crawl; keep results so far. |
Selector format (extract / start_crawl)
selectors maps an output field to a selector. Each value is either a CSS string (first
match) or an object for more control:
{
"title": "h1::text",
"price": "span.price::text",
"all_links": {"css": "a::attr(href)", "all": true},
"first_heading": {"xpath": "//h1/text()"}
}"all": true returns every match as a list; otherwise the first match is returned.
Crawls are asynchronous
start_crawl returns immediately with a job_id. The crawl runs as a detached worker that
streams results to disk, so it survives a server restart. Poll crawl_status(job_id), then
read items with crawl_results(job_id) (safe to call mid-crawl for partial results). Jobs are
stored under the system temp dir and reclaimed after 7 days (configurable).
Configuration
All settings are optional environment variables (sensible, polite defaults tuned for a weak
host). They're how you tune a uvx scrapy-mcp deployment.
Variable | Default | Meaning |
|
| User-Agent header. |
|
| Obey |
|
| Seconds between requests to a host. |
|
| Global concurrency. |
|
| Per-host concurrency. |
|
| Per-request timeout (s). |
|
| Retries on transient failures. |
|
| Adapt delay to server latency. |
|
| Max characters returned per page (then truncated). |
|
| Wall-clock cap for a blocking single fetch (s). |
|
| Crawl page default / hard cap. |
|
| Crawl depth default / hard cap. |
|
| Where crawl jobs are stored. |
|
| Delete crawl jobs older than this (0 disables). |
|
| Scrapy log level (to stderr). |
Development
uv venv
uv pip install -e ".[dev]"
uv run pytest # unit tests (no network)
uv build # build wheel + sdist into dist/License
MIT © Eitan Hadar
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/eitan3/Scrapy_MCP_Scraper'
If you have feedback or need assistance with the MCP directory API, please join our Discord server