Scrapy middleware for MCP request tracking
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scrapy_mcp_middleware-0.1.0.tar.gz.
File metadata
- Download URL: scrapy_mcp_middleware-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9f13892e139fe928e931eb7f6579a61c1f41eccdc2c2e266f29b92df51486a3
|
|
| MD5 |
2fd5fcbc6857b3efbbf935c8daf69545
|
|
| BLAKE2b-256 |
e8d459de09959bd6e1d7ec19a561a0e20f9ffdbd2276e231d91115555f248b35
|
File details
Details for the file scrapy_mcp_middleware-0.1.0-py3-none-any.whl.
File metadata
- Download URL: scrapy_mcp_middleware-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a05d325bb677cd4281ace612a9ae9ca62f4dc2d15d3d906708f69b0a575d75da
|
|
| MD5 |
0e746c78c0ce62095230fba088747c8e
|
|
| BLAKE2b-256 |
208bebe965922f863a93002d0c2ea6c817a2ea3c6bee9afd19aefd19eefb3ca3
|