Skip to main content

Scrapy MCP Middleware

Scrapy middleware for tracking requests and responses with MCP (Model Context Protocol) integration.

Installation

pip install scrapy-mcp-middleware

Usage

Add the middleware to your Scrapy settings:

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

# Optional: Configure the session store URL (defaults to http://127.0.0.1:8765)
SESSION_STORE_URL = 'http://127.0.0.1:8765'

Features

  • Tracks all requests and responses
  • Hierarchical request tree tracking
  • Base64 encoding for request/response bodies
  • Configurable session store URL
  • Automatic storage cleanup on spider start

Requirements

  • Python >= 3.8
  • Scrapy >= 2.0.0
  • requests >= 2.25.0

Metadata

Release files for scrapy-mcp-middleware 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scrapy-mcp-middleware 0.1.0
File Size Uploaded Provenance
scrapy_mcp_middleware-0.1.0.tar.gz 3.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for scrapy-mcp-middleware 0.1.0
File Interpreter ABI Platform
scrapy_mcp_middleware-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / scrapy_mcp_middleware-0.1.0.tar.gz

Download URL scrapy_mcp_middleware-0.1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c9f13892e139fe928e931eb7f6579a61c1f41eccdc2c2e266f29b92df51486a3
BLAKE2b-256 checksum
How to use checksums
e8d459de09959bd6e1d7ec19a561a0e20f9ffdbd2276e231d91115555f248b35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release files / scrapy_mcp_middleware-0.1.0-py3-none-any.whl

Download URL scrapy_mcp_middleware-0.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a05d325bb677cd4281ace612a9ae9ca62f4dc2d15d3d906708f69b0a575d75da
BLAKE2b-256 checksum
How to use checksums
208bebe965922f863a93002d0c2ea6c817a2ea3c6bee9afd19aefd19eefb3ca3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Security for scrapy-mcp-middleware 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page