mitmproxy-mcp
View on GitHubMCP Server that wraps mitmproxy and exposes it as a tool to any MCP client, allows your AI agents to inspect traffic, filter traffic, intercept & modify traffic, request reply, set global headers, and start/stop mitmproxy as needed.
MCP server wrapping mitmproxy, exposing traffic capture, interception, replay and analysis as tools for AI agents. Enables live HTTP/HTTPS inspection, rule-based modification, API/OpenAPI discovery, fuzzing and scraper code generation from any MCP client.
Use Cases
Let AI agents inspect live HTTP/HTTPS request/response cyclesIntercept, block or modify traffic on the fly via agent rulesReplay flows with browser TLS impersonation to bypass bot checksReverse engineer undocumented APIs and export OpenAPI specsExtract tokens/CSRF values into session variables for replayRun lightweight DAST fuzzing on query params or JSON bodiesDetect auth patterns (Bearer/JWT/API key/cookies/OAuth)Generate starter scraper code from captured flowsDebug failing frontend or 4xx/5xx API calls with full contextFilter and search captured traffic by domain, method or body text
Built With
- Language
- Python
- Frameworks
- mitmproxy · MCP Python SDK · pydantic · httpx · uvicorn · playwright · curl-cffi · FastAPI-style ASGI · structlog · jsonpath-ng · BeautifulSoup · pytest · uv
Tags
mcp · mitmproxy · http-interception · traffic-inspection · api-reverse-engineering · security-testing · dast · fuzzing · replay · openapi-generation · code-generation · scraper · tls-fingerprint · session-variables · proxy · python