mitmproxy2swagger is a Python tool that converts captured HTTP traffic into OpenAPI 3.0 specifications. It can analyze mitmproxy flow files or HAR exports from browser developer tools. The first processing pass discovers candidate endpoints and path structures from observed requests. Users can review those paths before a second pass generates parameters, request bodies, responses, and endpoint descriptions. Existing schemas can be extended across multiple captures instead of being recreated from scratch. Optional flags can include examples and headers, although captured sensitive data must be handled carefully. The tool is useful for documenting undocumented APIs and authorized interoperability or testing workflows where observed traffic needs to become structured API documentation.

Features

  • mitmproxy traffic conversion
  • HAR file processing
  • OpenAPI 3.0 specification generation
  • Multi-pass endpoint refinement
  • Existing schema merging
  • Optional request and response examples

Project Samples

Project Activity

See All Activity >

Categories

Proxy Servers

License

MIT License

Follow mitmproxy2swagger

mitmproxy2swagger Web Site

Other Useful Business Software
$300 Free Credits to Build on Google Cloud Icon
$300 Free Credits to Build on Google Cloud

New customers can spin up VMs, build with AI, and query data at no cost.

Put your $300 in credit toward real workloads, then keep building with free monthly usage for 20+ products. No commitment and no charge until you upgrade.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of mitmproxy2swagger!

Additional Project Details

Programming Language

Python

Related Categories

Python Proxy Servers

Registered

2026-10-14