Skip to main content

MCP server for Scrapy request inspection and debugging

Project description

Scrapy MCP Server

MCP (Model Context Protocol) server for Scrapy request inspection and debugging.

Installation & Usage

Use uvx to run the MCP server:

uvx scrapy-mcp-server

Configuration

Add to your MCP client configuration (e.g., Claude Desktop):

For Claude Desktop on MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json

For Claude Desktop on Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "scrapy-inspector": {
      "command": "uvx",
      "args": ["scrapy-mcp-server"]
    }
  }
}

Prerequisites

Install the required Scrapy middleware in your Scrapy project:

pip install scrapy-mcp-middleware

Add to your Scrapy settings.py:

SPIDER_MIDDLEWARES = {
    'scrapy_mcp_middleware.SessionTrackerMiddleware': 100,
}

SESSION_STORE_URL = "http://127.0.0.1:8765"

Features

  • Request Tree: View all captured requests in hierarchical structure
  • Request Details: Inspect headers, bodies, and response data
  • Selector Testing: Test CSS/XPath selectors interactively
  • Spider Development: Get comprehensive spider development guides

Requirements

  • Python >= 3.8
  • Compatible with Windows, Linux, and macOS (Intel & Apple Silicon)

License

Copyright © 2015–2025 CoreDump Engineering. All rights reserved.

Support

For issues and questions, visit the GitHub repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scrapy_mcp_server-0.1.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file scrapy_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for scrapy_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3dfa45616fe5a3c7fb7e652525a7a7fe661ad103e0df80fe510eed4c60735cf8
MD5 b35303ab21e0f9fc57090a061bab4745
BLAKE2b-256 eeea2ae256c1d730f27fc60f051f3ce1962abbd5062e359dcfd1c94f33c6a03f

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 Pingdom Monitoring Sentry Error logging StatusPage Status page