scrapy-mcp-official

v0.1.2
scrapy-mcp-official Checked 2 days ago Published 2 months ago

An MCP server that attaches an agent to a live Scrapy crawl and runs code inside it

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

list_jobs

List attachable live Scrapy crawls and check each one's health.

status

Check that a crawl is alive and responsive, and report information about it.

ParameterTypeDescription
job_id *string

execute

Run async Python inside a chosen *live* Scrapy crawl and get its output back. Before writing code, call the **`inspection_reference`** MCP tool — a separate tool, not a function available inside the snippet — to learn how the live crawl is wired and what is safe to read. Namespace: `crawler` (the live Crawler) + `stash` + Python builtins. Each call runs in a fresh namespace except `stash`: a dict that persists across calls and is **shared by every execute call on this job**. Reach the engine/stats/settings via `crawler.engine`, `crawler.stats`, `crawler.settings`. Top-level `await` work…

ParameterTypeDescription
code *string
job_id *string
timeout_sec

inspection_reference

Reference for inspecting a live crawl: how it's wired and what's safe to read.