ProxyKit-mcp
Officialproxykit-mcp lets an MCP agent drive a local ProxyKit HTTP(S) debugging proxy on 127.0.0.1 — inspecting captured traffic and, if you opt in, mocking, rewriting, injecting chaos, and replaying it.
Inspect state (
readonly, default): proxy status, list/search/fetch captured requests (bodies redacted), mock/rewrite/chaos rules, scripts, sessions, rule packs, pause breakpoints, environments, CA status, and privacy/schema/perf/lint findings with severity summaries.Edit rules (
mutate): create, update, toggle, and delete mock, rewrite, and chaos rules; scaffold a mock from a captured request; attach an environment.Control capture (
capture): start/stop the capture proxy (port, TLS interception), clear the traffic buffer, release paused breakpoints (optionally mutating requests).Analyze (
analysis): analyze a single request, rescan findings, dismiss/restore findings, propose redaction rules, run deterministic local workflows (explain_failure, generate_issue, suggest_tests, summarize_session, generate_mock), compare sessions.Replay & packs (
replay): start/stop/delete sessions, replay a request or a whole session (with method/URL/body/header overrides), import, install, export, and delete rule packs.Safe by design: token-gated over loopback only, least-privilege tiers (readonly default), destructive calls flagged for client confirmation, and response bodies redacted server-side.
proxykit-mcp 
Model Context Protocol server for ProxyKit — drive a local HTTP(S) debugging proxy from Claude, Cursor, and any MCP host.
proxykit-mcp is a small stdio binary that exposes a running ProxyKit engine to
MCP clients. Every tool call is one HTTP call to the engine's control API on
127.0.0.1 — the server holds no traffic of its own and talks to nothing off
your machine.
"Mock the checkout endpoint to fail half the time." · "Summarize the last 500 captured requests against my baseline." · "Add 800 ms of latency to /api/payments and replay the session."
Typed into your editor, run against real traffic ProxyKit already captured.
Website: https://proxykit.net
Setup guide (all hosts): https://proxykit.net/mcp
CLI reference: https://proxykit.net/docs
This repository is the public home of the proxykit-mcp server — its docs,
tool reference, and MCP registry metadata. The engine and desktop app are
ProxyKit, a proprietary product with a free tier.
Install
The binary ships inside every ProxyKit CLI archive and inside the desktop app. Pick whichever you already have.
With Homebrew (CLI)
brew install getproxykit/tap/proxykit-cliThat puts proxykit, proxy-engine, and proxykit-mcp on your PATH.
With WinGet (Windows)
winget install ProxyKit.ProxyKitCLIFrom the desktop app
Download from https://proxykit.net/download. The binary is bundled at:
macOS /Applications/ProxyKit.app/Contents/Resources/proxykit-mcp
Windows C:\Program Files\ProxyKit\resources\proxykit-mcp.exe
Linux (AppImage) squashfs-root/resources/proxykit-mcpRelated MCP server: Inksnow MCP Proxy
Connect an MCP host
The engine writes a control.token file on startup; point the MCP server at
that file — never paste the token into the config. Add this to your host's
MCP config (~/.cursor/mcp.json, Claude Desktop's claude_desktop_config.json,
.mcp.json, …):
{
"mcpServers": {
"proxykit": {
"command": "proxykit-mcp",
"env": {
"PROXYKIT_CONTROL_AUTH_TOKEN_FILE": "~/.config/ProxyKit/control.token",
"PROXYKIT_MCP_TIER": "readonly"
}
}
}
}Start ProxyKit (desktop or proxykit start --headless), restart your MCP host,
and ask it: "List my latest captured traffic in ProxyKit."
Per-client paths and one-click install from the desktop app are documented at https://proxykit.net/mcp.
Environment variables
Variable | Purpose |
| Path to the engine's |
| The token directly (use the |
| Comma-separated allowlist: |
| Engine control API. Defaults to |
Safety model
Local only. The server calls
127.0.0.1:17171. The engine binds loopback and rejects non-loopback callers.Token-gated. Every control call carries
X-Proxykit-Control-Token. No token, no access.Least privilege by tier.
readonlyis the default and can only read. Anything that mutates rules, controls capture, or replays traffic is off until you opt its tier in — so an agent can't create a mock or clear your capture unless you explicitly allowed that tier.Redacted at the source. Response bodies are redacted server-side before they reach the agent.
Tools
50 tools across five tiers. readonly is enabled by default; the rest are
opt-in via PROXYKIT_MCP_TIER.
readonly — read state (default)
Tool | Does |
| Is the proxy running, what port, TLS configured, buffer size |
| List captured requests; filter by method/URL/status, paged |
| Full headers + redacted body of one request |
| Substring search across captured URLs |
| Configured mock rules |
| Configured rewrite rules |
| Configured chaos (latency/error injection) rules |
| Installed JS hook scripts |
| Named capture sessions |
| One session's manifest + baseline |
| Privacy / schema / performance / lint findings |
| Finding counts by severity and category |
| Environments and the active one (secrets redacted) |
| Requests paused awaiting review |
| Installed rule packs |
| Whether a CA root is available (public PEM only) |
mutate — edit rules
create_mock_rule, update_mock_rule, delete_mock_rule, toggle_mock_rule,
create_mock_from_request, create_rewrite_rule, update_rewrite_rule,
delete_rewrite_rule, toggle_rewrite_rule, create_chaos_rule,
update_chaos_rule, delete_chaos_rule, toggle_chaos_rule,
attach_environment
capture — control capture
start_capture, stop_capture, clear_traffic, release_breakpoint
analysis — AI + findings workflows
analyze_request, rescan_findings, dismiss_finding, restore_finding,
propose_redaction_rules, run_ai_workflow, compare_sessions
replay — sessions, replay, rule packs
start_session, stop_session, delete_session, replay_session,
replay_request, import_rule_pack, install_rule_pack, export_rule_pack,
delete_rule_pack
License
This repository — the docs, Dockerfile, and registry metadata — is MIT
licensed (see LICENSE); reuse it freely.
ProxyKit itself — the proxykit-mcp binary and the engine it drives — is
proprietary software © 2026 Seyed Ahmad Sarollahi, licensed under
https://proxykit.net/terms#license. Nothing in this repository grants any right
to the ProxyKit software; the binary is downloaded from the release server at
build time under its own terms.
Available Tools
50 toolsanalyze_requestAnalyze requestAIdempotent
Run the engine's analysis pipeline on a single captured request (linting, schema drift, privacy, performance). Returns the structured explanation plus any new findings. Re-runs even if cached unless refresh is false.
Inputs: request_id (required), refresh.
attach_environmentAttach environmentAIdempotent
Activate an environment so subsequent captures and replays resolve variables against it. Use list_environments to discover ids.
Inputs: id (required).
clear_trafficClear all trafficADestructiveIdempotent
Delete every captured traffic entry from the engine buffer. Irreversible. Most MCP clients prompt for confirmation before invoking destructive tools — this is one of them.
Inputs: no named parameters.
compare_sessionsCompare sessionsARead-only
Diff a session against a baseline session and return a structured comparison (added/removed/changed requests, latency deltas, finding drift). Both sessions must be stopped.
Inputs: session_id (required), baseline_id (required).
create_chaos_ruleCreate chaos ruleB
Create a chaos rule. Chaos injects latency, errors, throttling, and corruption patterns that mirror real-world degraded services.
Inputs: name (required), url_pattern (required), enabled, delay_ms, +3 more.
create_mock_from_requestCreate mock from requestB
Convenience: fetch a captured request by id and scaffold a mock rule from its recorded response. Optional overrides let the caller tweak fields before persisting.
Inputs: request_id (required), name, dynamic, url_pattern.
create_mock_ruleCreate mock ruleA
Create a mock rule. The rule fires for matching requests through both the capture proxy and the standalone mock server, and is persisted in the engine database. Returns the created rule with its assigned id.
Inputs: name (required), method (required), status_code (required), url_pattern (required), +5 more.
create_rewrite_ruleCreate rewrite ruleA
Create a rewrite rule. Rewrites mutate live requests/responses (headers, body, status) without short-circuiting the upstream call.
Inputs: name (required), action (required), match_url (required), value, +3 more.
delete_chaos_ruleDelete chaos ruleBDestructiveIdempotent
Permanently delete a chaos rule by id.
Inputs: id (required).
delete_mock_ruleDelete mock ruleADestructiveIdempotent
Permanently delete a mock rule by id. The action is recorded in the local audit log.
Inputs: id (required).
delete_rewrite_ruleDelete rewrite ruleBDestructiveIdempotent
Permanently delete a rewrite rule by id.
Inputs: id (required).
delete_rule_packDelete rule packADestructiveIdempotent
Remove a rule pack from the engine. Does not uninstall rules the pack already added — use the individual delete_* tools in the mutate tier for that.
Inputs: id (required).
delete_sessionDelete sessionADestructiveIdempotent
Permanently delete a session and its association with the captured requests (the requests themselves stay in the buffer).
Inputs: id (required).
dismiss_findingDismiss findingAIdempotent
Mark a finding as dismissed so it stops appearing in default views. Reversible with restore_finding.
Inputs: id (required), reason.
export_rule_packExport rule packARead-only
Export the current rule configuration as a portable pack manifest. The agent can then save it, share it, or hand it to import_rule_pack on another machine.
Inputs: no named parameters.
get_ca_statusGet CA statusARead-only
Return whether a local CA root certificate is available for HTTPS interception. Only the public PEM is exposed; the private key never leaves the engine.
Inputs: no named parameters.
get_findings_summaryGet findings summaryARead-only
Return counts of current findings grouped by severity and category. Cheap; use this before list_findings to triage.
Inputs: no named parameters.
get_requestGet requestARead-only
Return the full headers and redacted body of a single captured request by id.
Inputs: id (required).
get_sessionGet sessionARead-only
Return the manifest of a single session by id, including its included entries and any attached baseline.
Inputs: id (required).
import_rule_packImport rule packA
Import a rule pack bundle (mocks + rewrites + redaction rules) into the engine. The pack is registered but not installed until install_rule_pack is called.
Inputs: manifest (required).
install_rule_packInstall rule packA
Install a previously-imported rule pack. This persists every rule inside the pack into the engine — potentially many rules at once, so use with care.
Inputs: id (required).
list_chaos_rulesList chaos rulesARead-only
List chaos rules. Chaos injects latency, errors, and partial failures matching real-world degraded-service patterns.
Inputs: no named parameters.
list_environmentsList environmentsARead-only
List configured environments and which one is active. Variables are returned with their keys but secret-shaped values are redacted.
Inputs: no named parameters.
list_findingsList findingsARead-only
List engine findings (privacy, schema, performance, lint). Use severity or scope to narrow.
Inputs: scope, severity, include_dismissed.
list_mock_rulesList mock rulesARead-only
List configured mock rules. Each rule fires when a matching request flows through either the capture proxy or the standalone mock server.
Inputs: no named parameters.
list_paused_breakpointsList paused breakpointsARead-only
List requests currently paused at a breakpoint, awaiting agent or human review before being released to the upstream.
Inputs: no named parameters.
list_rewrite_rulesList rewrite rulesARead-only
List configured rewrite rules. Rewrites mutate live requests/responses (headers, body, status) without short-circuiting the upstream call.
Inputs: no named parameters.
list_rule_packsList rule packsARead-only
List installed rule packs. A rule pack is a versioned bundle of mocks/rewrites/redaction rules — useful for sharing a known-good configuration across machines or teams.
Inputs: no named parameters.
list_scriptsList scriptsBRead-only
List installed JS hook scripts. Scripts run server-side in the engine's goja VM and can mutate any request/response programmatically.
Inputs: no named parameters.
list_sessionsList sessionsARead-only
List named sessions. A session is a bookmarked range of traffic captured for replay, sharing, or baseline diffing.
Inputs: no named parameters.
list_trafficList trafficARead-only
List captured HTTP/HTTPS requests. Filters narrow by method, URL substring, response status, and page through the result set. Response bodies are redacted server-side before return.
Inputs: url, page, limit, method, +1 more.
propose_redaction_rulesPropose redaction rulesAIdempotent
Scan recent captured traffic for PII / secret patterns not covered by existing redaction rules and return only the redaction-kind suggestions. Scanning records each suggestion in the engine. Installing one is not exposed over MCP — accept it in the ProxyKit app's suggestions view, or add the rule directly with proxykit redaction add --path <key>.
Inputs: limit.
proxy_statusProxy statusARead-only
Return whether the MITM proxy is running, which port it is bound to, whether TLS interception is configured, and how many captured entries are in the buffer.
Inputs: no named parameters.
release_breakpointRelease breakpointA
Release a paused request so it continues to the upstream (or returns to the client, depending on which side was paused). Optionally pass edits to mutate the request before release.
Inputs: id (required), url, body, method, +1 more.
replay_requestReplay requestA
Re-issue a captured request — optionally with method/url/body/headers overrides — and return the upstream response. Use this to verify a fix against the real backend or A/B between two URLs.
Inputs: entry_id (required), url, body, method, +1 more.
replay_sessionReplay sessionA
Re-fire every captured request in a session against the real upstream. Returns one row per attempted request with status, duration, and error if any. One failure does not abort the loop.
Inputs: id (required).
rescan_findingsRescan findingsAIdempotent
Re-scan every captured request through the findings detectors. Useful after adding a redaction rule or changing detector config. Returns analyzed and findings counts.
Inputs: no named parameters.
restore_findingRestore findingAIdempotent
Restore a previously dismissed finding so it appears in default views again.
Inputs: id (required).
run_ai_workflowRun local workflowARead-only
Run one of ProxyKit's built-in local workflows over engine data. These workflows are deterministic — they do not call an external LLM. Returns markdown the agent can chain into its own reasoning ("explain_failure → generate_issue → suggest_tests").
Inputs: workflow (required), entry_id, session_id, baseline_id.
search_trafficSearch trafficARead-only
Substring search across captured URLs and a window of recent entries. For very large captures, narrow the window with method+status first.
Inputs: query (required), limit, method.
start_captureStart capture proxyAIdempotent
Start the capture proxy. Optionally choose a port and toggle TLS interception. If the proxy is already running, this returns the current status.
Inputs: port, intercept_tls.
start_sessionStart sessionA
Start a named session. All traffic captured while the session is active is tagged with the session id, so the agent can later replay or compare it. Returns the new session record.
Inputs: name, environment_id.
stop_captureStop capture proxyAIdempotent
Stop the capture proxy. Captured entries already in the buffer are preserved.
Inputs: no named parameters.
stop_sessionStop sessionAIdempotent
Stop an active session. After stopping, the engine automatically rescans the captured entries for findings.
Inputs: id (required).
toggle_chaos_ruleToggle chaos ruleA
Enable or disable a chaos rule by id. Omit enabled to flip.
Inputs: id (required), enabled.
toggle_mock_ruleToggle mock ruleA
Enable or disable a mock rule by id without changing any other fields. Omit enabled to flip the current value.
Inputs: id (required), enabled.
toggle_rewrite_ruleToggle rewrite ruleA
Enable or disable a rewrite rule by id. Omit enabled to flip.
Inputs: id (required), enabled.
update_chaos_ruleUpdate chaos ruleCDestructiveIdempotent
Update a chaos rule by id. Partial.
Inputs: id (required), name, enabled, delay_ms, +4 more.
update_mock_ruleUpdate mock ruleBDestructiveIdempotent
Update an existing mock rule by id. Pass only the fields you want to change; missing fields keep their current value. Returns the updated rule.
Inputs: id (required), name, method, dynamic, +6 more.
update_rewrite_ruleUpdate rewrite ruleCDestructiveIdempotent
Update a rewrite rule by id. Partial — only changed fields need be passed.
Inputs: id (required), name, value, action, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 50 tools
Tools cluster into clear functional families (traffic, sessions, mocks, rewrites, chaos, findings, rule packs), and descriptions carefully differentiate the three parallel rule types. Minor overlap remains between list_traffic and search_traffic, and create_mock_rule vs create_mock_from_request, but boundaries are mostly inferable.
Nearly every tool follows a strict snake_case verb_noun pattern (list_*, get_*, create_*, update_*, delete_*, toggle_*, start_*/stop_*, replay_*, import_/install_/export_*). The few noun-phrased tools like proxy_status and get_ca_status still fit cleanly. Consistency is excellent.
At 50 tools the surface is very heavy, with three separate rule families (mock/rewrite/chaos) each carrying a full 5-6 tool CRUD set, plus sessions, findings, packs, envs, breakpoints, and scripts. The domain is broad, but the count sits at the extreme end and invites consolidation.
Coverage of the capture/replay/rule/findings lifecycle is thorough, including rule packs, environments, breakpoints, and CA status. Gaps are minor but real: scripts expose only list_scripts (no create/update/delete), breakpoints have no creation tool, and redaction rule installation is deliberately not exposed over MCP.
Maintenance
Related MCP Connectors
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
AI-native mock API server with MCP. Create REST/SOAP mocks from Claude, Cursor, or Windsurf.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP Server for Chrome DevTools, following the Chrome DevTools Protocol. Integrates with Claude Desktop and Claude Code.316MIT
- AlicenseNot gradedqualityDmaintenanceProxies MCP requests from Cursor IDE to a custom HTTP server, enabling custom tool integrations.1ISC
- FlicenseBqualityDmaintenanceA lightweight MCP server built on mitmproxy that lets LLMs capture, inspect, replay, and modify HTTP traffic through a set of focused tools.138-
- AlicenseNot gradedqualityDmaintenanceMCP server for mitmproxy that lets any MCP client analyze, intercept, and replay HTTP/HTTPS traffic.10MIT