Skip to main content
Glama
ProxyKit-mcp

ProxyKit-mcp

Official

proxykit-mcp ProxyKit-mcp MCP server – quality and maintenance score on Glama

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.

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-cli

That puts proxykit, proxy-engine, and proxykit-mcp on your PATH.

With WinGet (Windows)

winget install ProxyKit.ProxyKitCLI

From 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-mcp

Related 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

PROXYKIT_CONTROL_AUTH_TOKEN_FILE

Path to the engine's control.token. Preferred over the raw token.

PROXYKIT_CONTROL_AUTH_TOKEN

The token directly (use the _FILE form instead where possible).

PROXYKIT_MCP_TIER

Comma-separated allowlist: readonly (default), mutate, capture, analysis, replay.

PROXYKIT_ENGINE_URL

Engine control API. Defaults to http://127.0.0.1:17171.


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. readonly is 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

proxy_status

Is the proxy running, what port, TLS configured, buffer size

list_traffic

List captured requests; filter by method/URL/status, paged

get_request

Full headers + redacted body of one request

search_traffic

Substring search across captured URLs

list_mock_rules

Configured mock rules

list_rewrite_rules

Configured rewrite rules

list_chaos_rules

Configured chaos (latency/error injection) rules

list_scripts

Installed JS hook scripts

list_sessions

Named capture sessions

get_session

One session's manifest + baseline

list_findings

Privacy / schema / performance / lint findings

get_findings_summary

Finding counts by severity and category

list_environments

Environments and the active one (secrets redacted)

list_paused_breakpoints

Requests paused awaiting review

list_rule_packs

Installed rule packs

get_ca_status

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 tools
analyze_requestAnalyze requestA
Idempotent

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 environmentA
Idempotent

Activate an environment so subsequent captures and replays resolve variables against it. Use list_environments to discover ids.

Inputs: id (required).

clear_trafficClear all trafficA
DestructiveIdempotent

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 sessionsA
Read-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 ruleB
DestructiveIdempotent

Permanently delete a chaos rule by id.

Inputs: id (required).

delete_mock_ruleDelete mock ruleA
DestructiveIdempotent

Permanently delete a mock rule by id. The action is recorded in the local audit log.

Inputs: id (required).

delete_rewrite_ruleDelete rewrite ruleB
DestructiveIdempotent

Permanently delete a rewrite rule by id.

Inputs: id (required).

delete_rule_packDelete rule packA
DestructiveIdempotent

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 sessionA
DestructiveIdempotent

Permanently delete a session and its association with the captured requests (the requests themselves stay in the buffer).

Inputs: id (required).

dismiss_findingDismiss findingA
Idempotent

Mark a finding as dismissed so it stops appearing in default views. Reversible with restore_finding.

Inputs: id (required), reason.

export_rule_packExport rule packA
Read-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 statusA
Read-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 summaryA
Read-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 requestA
Read-only

Return the full headers and redacted body of a single captured request by id.

Inputs: id (required).

get_sessionGet sessionA
Read-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 rulesA
Read-only

List chaos rules. Chaos injects latency, errors, and partial failures matching real-world degraded-service patterns.

Inputs: no named parameters.

list_environmentsList environmentsA
Read-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 findingsA
Read-only

List engine findings (privacy, schema, performance, lint). Use severity or scope to narrow.

Inputs: scope, severity, include_dismissed.

list_mock_rulesList mock rulesA
Read-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 breakpointsA
Read-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 rulesA
Read-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 packsA
Read-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 scriptsB
Read-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 sessionsA
Read-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 trafficA
Read-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 rulesA
Idempotent

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 statusA
Read-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 findingsA
Idempotent

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 findingA
Idempotent

Restore a previously dismissed finding so it appears in default views again.

Inputs: id (required).

run_ai_workflowRun local workflowA
Read-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 trafficA
Read-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 proxyA
Idempotent

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 proxyA
Idempotent

Stop the capture proxy. Captured entries already in the buffer are preserved.

Inputs: no named parameters.

stop_sessionStop sessionA
Idempotent

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 ruleC
DestructiveIdempotent

Update a chaos rule by id. Partial.

Inputs: id (required), name, enabled, delay_ms, +4 more.

update_mock_ruleUpdate mock ruleB
DestructiveIdempotent

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 ruleC
DestructiveIdempotent

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

    B3.4/5.0

    Scored across 50 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count2/5

    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.

    Completeness4/5

    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

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers