
snapspecter/mitmproxy-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
snapspecter/mitmproxy-mcp は、https://github.com/snapspecter/mitmproxy-mcp. からインポートされたMCPサーバー候補です。
概要
snapspecter/mitmproxy-mcp は、https://github.com/snapspecter/mitmproxy-mcp. からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
モデルコンテキストプロトコル(MCP)サーバーで、mitmproxyをAIエージェントのための強力なツールセットに変換します。これにより、ClaudeやGPT-4、ローカルモデルのようなLLMがHTTP/HTTPSトラフィックをリアルタイムで検査、修正、再生できます。
このビルドの新規(楽しい部分)
このプロジェクトは単なるキャプチャ+リプレイを超えて成長しました。現在、以下が可能です:
- **ドメイン/メソッド/本文テキストによるフィルター付きでトラフィックを素早く検索できます。
- JSONPathまたはCSSセレクターを用いてレスポンスからデータを抽出。
- セッション変数を使い 1つの応答からトークンを取得し、後のリプレイで再利用します。
- **軽軽量ファズングをクエリパラメータやJSONボディフィールドに対して実行し、DASTの素早いチェックを行ってください。
- **APIパターンを再構築し、キャプチャされたトラフィックからOpenAPIスタイルの仕様をエクスポートしてください。
- 認証パターンの検出(ベアラー/JWT/APIキー/セッションクッキー/CSRF/OAuthヒント)。
- **実際のキャプチャされたフローからスタータースクレイパーコードを生成してください。
なぜこれを使う?
標準的な「ウェブ検索」や「フェッチ」ツールはステートレスで容易に検出されます。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"]
}
}
}