
snapspecter/mitmproxy-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
snapspecter/mitmproxy-mcp는 [[T0]에서 가져온 MCP 서버 후보입니다.
개요
snapspecter/mitmproxy-mcp는 [[T0]에서 가져온 MCP 서버 후보입니다.
개요(AI 번역)
모델 컨텍스트 프로토콜(MCP) 서버로, mitmproxy를 AI 에이전트를 위한 강력한 도구 세트로 변환합니다. 이를 통해 LLM(클로드, GPT-4 또는 로컬 모델과 같은)이 HTTP/HTTPS 트래픽을 실시간으로 검사, 수정, 재생할 수 있습니다.
이번 빌드에 새로 들어온 사람 (재미있는 부분)
이 프로젝트는 단순한 캡처 + 재생을 넘어 성장했습니다. 이제 다음과 같은 기능이 가능합니다:
- **도메인/방법/본문 텍스트별 필터로 빠르게 트래픽을 검색하세요.
- JSONPath 또는 CSS 선택기를 사용하여 응답에서 데이터를 추출하기.
- **세션 변수를 사용해 한 응답에서 토큰을 가져와 이후 리플레이에서 재사용하세요.
- **빠른 DAST 검사를 위해 쿼리 매개변수나 JSON 본체 필드에 대해 가벼운 퍼징을 실행하세요.
- **API 패턴을 재구성하고 캡처한 트래픽에서 OpenAPI 스타일의 명세를 내보내세요.
- 인증 패턴 감지 (Bearer/JWT/API 키/세션 쿠키/CSRF/OAuth 힌트).
- **실제 캡처된 흐름에서 스타터 스크레이퍼 코드를 생성하세요.
왜 이걸 쓰는 거야?
표준 “웹 검색” 또는 “fetch” 도구는 상태가 없으며 쉽게 탐지됩니다. mitmproxy-mcp는 다음을 제공합니다:
- 딥 디버깅: 에이전트는 전체 요청/응답 사이클(헤더, 페이로드, 쿠키)을 검사하여 프론트엔드가 실패하는 이유나 API가
4xx/500오류를 반환하는 이유를 파악할 수 있습니다.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
mitmproxy MCP Server
A Model Context Protocol (MCP) server that transforms mitmproxy into a powerful toolset for AI agents. This allows LLMs (like Claude, GPT-4, or local models) to inspect, modify, and replay HTTP/HTTPS traffic in real-time.
New in this build (the fun stuff)
This project has grown beyond simple capture + replay. You can now:
- Search traffic quickly with filters by domain/method/body text.
- Extract data from responses using JSONPath or CSS selectors.
- Use session variables to grab tokens from one response and reuse them in later replays.
- Run lightweight fuzzing against query params or JSON body fields for quick DAST checks.
- Reconstruct API patterns and export an OpenAPI-style spec from captured traffic.
- Detect auth patterns (Bearer/JWT/API key/session cookie/CSRF/OAuth hints).
- Generate starter scraper code from real captured flows.
Why use this?
Standard “web search” or “fetch” tools are stateless and easily detected. mitmproxy-mcp provides:
- Deep Debugging: The agent can inspect full request/response cycles (headers, payloads, cookies) to identify why a frontend is failing or why an API is returning a
4xx/500error. - API Reverse Engineering: Let the LLM observe undocumented internal APIs, map out JSON schemas, and generate client libraries or documentation automatically.
- Automated Security Testing: Perform DAST (Dynamic Application Security Testing) by allowing the agent to inject payloads into specific parameters and analyze the response.
- Live Interception: Modify traffic on the fly: inject headers, mock responses for testing, or block tracking pixels to reduce noise.
- Stealth Replay: Uses
curl-cffito mimic Chrome/Safari TLS fingerprints, bypassing basic anti-bot measures that standard Python libraries trigger.
Key Features
- Lifecycle Control: Start and stop the mitmproxy instance directly from the LLM.
- Deep Inspection: Capture full request/response cycles, including headers, bodies, and timing.
- Traffic Search & Filtering: Scope by domain, then search flows by query/method so context stays clean.
- Active Interception: Dynamic rules to inject headers, replace body content via regex, or block requests.
- Stealth Replay: Re-execute flows using
curl-cffito impersonate modern browser TLS fingerprints (e.g., Chrome). - Session-Aware Workflows: Extract dynamic values (like CSRF tokens) and re-inject them into replayed traffic.
- Response Data Extraction: Pull structured values from HTML/JSON responses via CSS selectors and JSONPath.
- API Discovery: Group similar endpoints, identify path/query params, and export OpenAPI JSON.
- Security Recon Helpers: Detect common auth patterns and run targeted fuzz payloads.
- Scraper Bootstrapping: Generate executable
curl-cffiautomation code from observed traffic.
Quickstart
Option 1: Using uvx (Recommended)
설치
uvx mitmproxy-mcp설정
{
"mcpServers": {
"mitmproxy-mcp": {
"command": "uvx",
"args": ["mitmproxy-mcp"]
}
}
}