Skip to main content

mcp-proxy-inspect

DevTools for MCP servers. Put it between your MCP client and a stdio server: see every message live in a browser, record sessions, replay them as a mock, run conformance checks, and break things on purpose with fault injection.

mcp-proxy-inspect demo on the official "everything" server

Demo recorded against @modelcontextprotocol/server-everything.

Zero dependencies, pure Python 3.10+. The web UI is local-only (127.0.0.1) and ships inside the package.

pip install mcp-proxy-inspect

1. Watch a server live

Replace the server command in your client's MCP config with mcp-proxy-inspect run -- <original command>:

{ "mcpServers": { "files": {
    "command": "mcp-proxy-inspect",
    "args": ["run", "--open", "--", "npx", "-y", "@modelcontextprotocol/server-filesystem", "/tmp"] } } }

A timeline with a latency waterfall, request/response pairing, a tool schema browser, a latency histogram and an Issues tab (invalid JSON on stdout, wrong jsonrpc, unknown or duplicate ids, requests that never got a response, malformed error objects…). Traffic is forwarded byte for byte; the proxy never prints to stdout. Every session is also recorded to mcp-sessions/<time>.mcp.jsonl.

Call the server yourself (interactive client)

The Send tab is a DevTools-style request console: pick a method, pick a tool, fill in a form generated from its input schema (or edit the raw JSON), and send. In the Timeline, any request has Edit & resend; in Tools, each tool has Try it. Responses show inline and in the Timeline (tagged sent).

mcp-proxy-inspect play -- python my_server.py          # no client needed: mcp-proxy-inspect initializes the connection for you
mcp-proxy-inspect play --url https://example.com/mcp --header "Authorization: Bearer $TOKEN"

Inside mcp-proxy-inspect run the same tab sends requests next to your real client's traffic (ids are prefixed mcp-proxy-inspect-, and the answers are never forwarded to the client); use --read-only to turn that off. The send endpoint is protected by a per-run secret token, loopback-only Host/Origin checks and a JSON content type, so other web pages cannot make your browser call your tools. Calls are real: they can have side effects like any client call. Faults only apply to your client's traffic, not to requests sent from the UI.

Remote servers (streamable HTTP)

mcp-proxy-inspect run --url https://example.com/mcp --open     # then point your client at http://127.0.0.1:8765/mcp
mcp-proxy-inspect test --url https://example.com/mcp --header "Authorization: Bearer $TOKEN"

The proxy forwards requests unchanged (JSON and SSE responses, session ids, auth headers) and records the JSON-RPC messages. HTTP headers are forwarded but never recorded. --fault, --redact, the UI and test all work the same as with stdio. The proxy only accepts loopback Host/Origin headers.

2. Test a server

mcp-proxy-inspect test -- python my_server.py                  # protocol checks only (safe)
mcp-proxy-inspect test --call-tools --probe-invalid -- python my_server.py
mcp-proxy-inspect test --json --junit report.xml -- python my_server.py   # CI-friendly, exit code 1 on failure

Checks initialize shape, ping, unknown-method errors, tools/list (pagination, unique names, object schemas), clean stdout and clean shutdown. With the opt-in flags it also calls every tool with arguments derived from its JSON Schema and with deliberately invalid ones, and expects a proper error.

Warning: --call-tools and --probe-invalid really call your tools. Only use them on servers (or sandboxes) where that is safe. Without them, no tool is ever invoked.

3. Break it on purpose

mcp-proxy-inspect run --fault "tools/call:tool=search,delay=2000" \
                --fault "tools/call:error=-32000,message=upstream down,rate=0.3" --fault-seed 7 -- python server.py

Delay, error, or drop responses by method glob and tool name, optionally at a given rate. Nothing is altered unless you pass --fault; faulted messages are flagged in the UI and the original server answer is kept next to them.

4. Catch regressions between versions

Record a session once (a golden recording), then check every new version of your server against it:

mcp-proxy-inspect replay golden.mcp.jsonl -- python my_server.py             # exit 1 on breaking changes
mcp-proxy-inspect replay golden.mcp.jsonl --format markdown -- python my_server.py >> "$GITHUB_STEP_SUMMARY"
mcp-proxy-inspect diff old.mcp.jsonl new.mcp.jsonl --ignore timestamp         # compare two recordings

Output separates breaking changes (removed tools, new required arguments, changed argument types, changed or failing responses) from informational ones (new tools, descriptions, slower p95). serverInfo.version is ignored by default; add --ignore KEY (a key name or a dotted path) for volatile fields. replay skips tools/call unless you pass --call-tools, because calling tools can have side effects.

# .github/workflows/mcp-regression.yml (excerpt)
- run: pip install mcp-proxy-inspect
- run: mcp-proxy-inspect replay tests/golden.mcp.jsonl --call-tools --format markdown -- python server.py >> "$GITHUB_STEP_SUMMARY"

5. Record, replay, share

mcp-proxy-inspect mock session.mcp.jsonl            # serve the recorded responses over stdio (offline client dev)
mcp-proxy-inspect inspect session.mcp.jsonl         # open a recording in the UI   (--text for a terminal summary)
mcp-proxy-inspect export session.mcp.jsonl --redact -o session.html   # one self-contained HTML file

--redact masks secrets by key name (token, api_key, password…) and by pattern (Bearer tokens, sk-…, GitHub, AWS, Slack tokens, JWTs, private keys) in the recording and export. It never alters live traffic.

How it compares

Recorders such as mcpsnoop, agent-vcr and mcp-recorder cover capture and replay. This project adds a DevTools-style browser UI, schema-driven conformance tests and fault injection in one zero-dependency tool.

Limits (v0.1)

stdio and streamable HTTP only (the legacy 2024-11-05 HTTP+SSE transport is not supported); the proxy does not terminate TLS for clients (it speaks plain HTTP on 127.0.0.1 and TLS to the upstream); the playground does not answer requests the server sends back (sampling, roots); mock matches by method + params, no stateful scenarios.

MIT licensed.

Metadata

Release files for mcp-proxy-inspect 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-proxy-inspect 0.1.0
File Size Uploaded Provenance Actions
mcp_proxy_inspect-0.1.0.tar.gz 520.8 kB With provenance Details for mcp_proxy_inspect-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-proxy-inspect 0.1.0
File Interpreter ABI Platform Actions
mcp_proxy_inspect-0.1.0-py3-none-any.whl Python 3 none any Details for mcp_proxy_inspect-0.1.0-py3-none-any.whl

Total release size: 568.7 kB

Release files / mcp_proxy_inspect-0.1.0.tar.gz

Download URL mcp_proxy_inspect-0.1.0.tar.gz
Size 520.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c9d8cac8ab813584cfae84a3447c09ff1afb2191852b6b3dbba676851ff0278a
BLAKE2b-256 checksum
How to use checksums
79927dddeed9c2727b276b0963e213a2c8692519cd9a9a953951c20cb8383025
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / mcp_proxy_inspect-0.1.0-py3-none-any.whl

Download URL mcp_proxy_inspect-0.1.0-py3-none-any.whl
Size 47.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0520e85ad3ea8228f2970c59da8f48c30f87dc6d897a343e4a5f200ab35a5e75
BLAKE2b-256 checksum
How to use checksums
67f6f8cdb457db90887395ded2442f5371e6804aa4b0c91c8354831e44c97171
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for mcp-proxy-inspect 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mcp_proxy_inspect-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page