Skip to main content

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


Download files

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

Source Distribution

scrapy_mcp_middleware-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

scrapy_mcp_middleware-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for scrapy_mcp_middleware-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c9f13892e139fe928e931eb7f6579a61c1f41eccdc2c2e266f29b92df51486a3
MD5 2fd5fcbc6857b3efbbf935c8daf69545
BLAKE2b-256 e8d459de09959bd6e1d7ec19a561a0e20f9ffdbd2276e231d91115555f248b35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scrapy_mcp_middleware-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a05d325bb677cd4281ace612a9ae9ca62f4dc2d15d3d906708f69b0a575d75da
MD5 0e746c78c0ce62095230fba088747c8e
BLAKE2b-256 208bebe965922f863a93002d0c2ea6c817a2ea3c6bee9afd19aefd19eefb3ca3

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