Skip to main content
Glama
re-mitm2swagger

re-mitm2swagger

by Heretek-RE

re-mitm2swagger

MCP server for REST API reverse engineering from HTTP traffic captures. Wraps mitmproxy for live capture and mitmproxy2swagger for spec derivation.

Tools

Tool

What it does

check_mitm

Confirm mitmdump is on PATH

start_capture

Spawn mitmdump in the background

stop_capture

Stop a previously-started capture

parse_flows

Read a mitmproxy flow file

har_to_swagger

Convert HAR → OpenAPI 3.0 spec (with path templating)

flow_to_swagger

mitmproxy2swagger on a flow file → OAS

filter_flows

Filter flows by method/host/path/status/content-type

extract_secrets

Heuristically find tokens, JWTs, API keys

Related MCP server: Swagger Testcase MCP

Install

pip install mitmproxy mitmproxy2swagger
pip install -e ./servers/re-mitm2swagger

Why this matters

Most mobile apps and SPAs talk to a REST API. The fastest way to understand the API surface is to capture traffic, then derive the spec. mitmproxy handles the capture, mitmproxy2swagger handles the spec — this server glues them together with secrets detection and filtering.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server providing token-efficient access to OpenAPI/Swagger specs via MCP Resources for client-side exploration.
      582 npm
      76
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for API test case generation from Swagger/OpenAPI specs. Parses Swagger 2.0 and OpenAPI 3.x, generates test cases across 8 categories (positive, negative, boundary, auth, security, idempotency, pagination, business logic), and exports to Postman, TestRail, Allure, k6, pytest, Gherkin, and CSV. Supports internal corporate APIs with auth headers. Auto-saves export files to your working di
      10
      10 npm
      2
      MIT