nullwire-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
⚡ NullWire-MCP
See the traffic. Never the secrets.
A zero-dependency, RAM-only network inspector that lets your AI assistant debug HTTP, HTTPS and WebSocket traffic, with every secret scrubbed before the model ever sees it.
Quick start · How it works · What gets redacted · MCP tools · Configuration · CLI reference · Security model
🧠 Why NullWire exists
Your AI assistant is great at debugging an API call, until the request it needs to read carries an Authorization header, a session cookie, a database URL or a customer's email. Pasting raw traffic into a chat means pasting your secrets with it.
NullWire sits between your app and the network. It records what passes through, scrubs every secret out of the recorded copy, and hands that clean copy to your assistant through the Model Context Protocol. Your app keeps working exactly as before, because the live traffic is never touched.
your app ──► NullWire (127.0.0.1) ──► the real server
│
├─ forwards every byte, unmodified
└─ keeps a scrubbed copy in RAM ──► your AI assistant (MCP)Related MCP server: mcp-guardian
✨ At a glance
🪶 Zero dependencies | Go standard library only. One static binary, nothing to install. |
🧠 RAM only | The last 50 flows live in memory. The server never writes a file, and a stop signal wipes the buffer. ( |
🔒 Loopback only | The proxy binds to |
🧽 Layered redaction | Private keys, JSON/XML/query secrets, JWTs, 50+ vendor key formats, IPs, secrets hiding in base64, and a randomness detector for keys nobody has seen before. |
🛡️ Fail-closed shields | Bodies that can't be inspected are refused or flagged, never silently passed to the model. |
🔌 HTTP, HTTPS and WebSocket | Plain proxying, blind |
🔁 Safe replay | Export any captured request as a |
🔎 Secret scanner |
|
📱 Runs anywhere | Linux, macOS, Windows, Docker and Termux on Android. |
🚀 Quick start
1. Install it
Pick whichever fits your machine. Every method checks the download against the release's SHA256SUMS.txt and installs nothing if it doesn't match. Release binaries also carry signed GitHub build provenance, and each release includes a CycloneDX SBOM (nullwire-sbom.cdx.json).
npx -y nullwire-mcp install --client allNothing to download by hand: the launcher fetches and verifies the binary on first run and keeps it in a cache folder. Your MCP clients are then set to run npx -y nullwire-mcp.
curl -fsSL https://raw.githubusercontent.com/VoxNode-ux/nullwire-mcp/main/scripts/install.sh | sh -s -- --setupInstalls to ~/.local/bin (or $PREFIX/bin on Termux). --setup also registers NullWire with your MCP clients. Drop it to install only. --uninstall removes everything again.
irm https://raw.githubusercontent.com/VoxNode-ux/nullwire-mcp/main/scripts/install.ps1 | iex
nullwire-mcp install --client allInstalls to %LOCALAPPDATA%\Programs\nullwire-mcp and adds it to your user PATH. To pass options, run it as & ([scriptblock]::Create((irm https://raw.githubusercontent.com/VoxNode-ux/nullwire-mcp/main/scripts/install.ps1))) -Setup.
brew install VoxNode-ux/nullwire/nullwire-mcp # macOS, Linux
scoop bucket add nullwire https://github.com/VoxNode-ux/scoop-nullwire # Windows
scoop install nullwire-mcpBoth packages are generated from the templates in packaging/.
Platform | File |
Linux x86-64 / ARM64 (Raspberry Pi 4+, Termux) |
|
Linux ARMv7 (older Raspberry Pi) / RISC-V 64 |
|
macOS Intel / Apple Silicon |
|
Windows x86-64 / ARM64 |
|
FreeBSD x86-64 |
|
chmod +x nullwire-linux-amd64
sha256sum -c SHA256SUMS.txt --ignore-missing # verify the download (macOS: shasum -a 256 -c)
gh attestation verify nullwire-linux-amd64 --repo VoxNode-ux/nullwire-mcp # optional: verify signed build provenancego install github.com/VoxNode-ux/nullwire-mcp@latest
# or
git clone https://github.com/VoxNode-ux/nullwire-mcp && cd nullwire-mcp
CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o nullwire-mcp .Go 1.26 or newer. There is nothing to go get: the module has no dependencies.
docker run -i --rm ghcr.io/voxnode-ux/nullwire-mcpThe server speaks MCP over stdio, so run it with -i. The proxy listens on the container's own loopback by design, so a published port (-p) cannot reach it. On Linux, add --network host to use it from the host's 127.0.0.1.
2. Add it to your MCP clients
One command registers NullWire with every supported client it finds on your machine:
nullwire-mcp install --client all --dry-run # look first: nothing is written
nullwire-mcp install --client all # then do it, and restart the clientIt covers Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, Cline, Roo Code, Gemini CLI and Codex CLI. See Connect your MCP clients for details, or add it by hand:
# Claude Code
claude mcp add nullwire -- /path/to/nullwire-mcp// Claude Desktop, Cursor, Windsurf, Cline and other JSON-configured clients
{
"mcpServers": {
"nullwire": {
"command": "/path/to/nullwire-mcp",
"args": ["-port", "8080"]
}
}
}The client starts NullWire, and NullWire starts the proxy in the same process. A live status bar on stderr shows what is happening:
⚡ [NullWire-MCP] Proxy 127.0.0.1:8080 | RAM Ring: 3/50 | Scrubbed: 7 Tokens, 2 Cookies, 1 IPs | Disk: 0B3. Send some traffic through it
# Plain HTTP through the proxy
curl -x http://127.0.0.1:8080 http://httpbin.org/headers
# HTTPS through the proxy (a blind tunnel, see "How it works")
curl -x http://127.0.0.1:8080 https://example.com
# HTTPS with full request visibility: the reverse gateway
nullwire-mcp -target https://api.example.com
curl http://127.0.0.1:8080/v1/things -H "Authorization: Bearer sk-live-..."4. Ask your assistant
"Use
inspect_trafficto show my last 5 requests and tell me why the third one returned 401."
🔭 How it works
flowchart LR
A[Your app or curl] -->|HTTP_PROXY / base URL| P[NullWire proxy<br/>127.0.0.1:8080]
P -->|unmodified bytes| S[(Real server)]
S -->|unmodified bytes| P
P --> C[Capture copy]
C --> R[Redaction layers]
R --> B[(RAM ring<br/>50 flows)]
B -->|MCP over stdio| M[AI assistant]The key idea: the model reads a scrubbed copy, your app talks to the real server. Nothing the proxy forwards is rewritten, so debugging never changes the behaviour you are debugging.
Four ways to capture traffic
Mode | How you use it | What the assistant sees |
Forward proxy |
| Full request and response, scrubbed |
HTTPS tunnel |
| Only the target |
Reverse gateway | Point your app's base URL at | Full HTTPS request and response, scrubbed. NullWire makes the TLS connection to the real server. |
WebSocket | Any | Text messages in both directions, scrubbed, as one flow recorded when the connection closes. Frames are forwarded unmodified. |
Why no HTTPS interception? Reading HTTPS from a forward proxy would require a custom root certificate installed on your machine. That is key material and a trust-store change, the opposite of a zero-footprint tool. The reverse gateway gets you the same visibility with no certificate games.
Several APIs at once
Give each upstream a name. The first path segment picks the upstream and is removed before forwarding:
nullwire-mcp -target openai=https://api.openai.com,anthropic=https://api.anthropic.com
export OPENAI_BASE_URL=http://127.0.0.1:8080/openai/v1 # → https://api.openai.com/v1
export ANTHROPIC_BASE_URL=http://127.0.0.1:8080/anthropic # → https://api.anthropic.comNames are letters, digits, ., _ and - (up to 32 characters, case-insensitive). One unnamed URL may be added as the default for paths that match no name. An X-Target-URL header overrides everything for a single request.
🧰 MCP tools
NullWire exposes three tools over stdio. It speaks MCP protocol versions 2026-07-28, 2025-11-25 and 2024-11-05, and accepts JSON-RPC batches.
Tool | What it does | Arguments |
| Returns recent scrubbed flows. |
|
| Rebuilds a captured request as a |
|
| Wipes all 50 slots and resets the counters. | none |
A flow looks like this (illustrative):
{
"id": 7,
"timestamp": "2026-10-31T09:14:02Z",
"method": "POST",
"url": "https://api.example.com/v1/charge",
"request_headers": { "Authorization": "[REDACTED_TOKEN#a1b2c3]", "Content-Type": "application/json" },
"request_body": "{\"card_token\":\"[REDACTED_TOKEN#9f3e21]\",\"amount\":4200}",
"status_code": 401,
"response_body": "{\"error\":\"invalid_api_key\"}",
"latency_ms": 143,
"redaction_count": 2
}Tags are stable and correlatable. [REDACTED_TOKEN#a1b2c3] is a short salted hash, so the same secret gets the same tag everywhere in one run. Your assistant can see that two requests used the same token without learning it. The salt is random per run, so tags can't be compared across restarts or reversed.
Tag kinds: TOKEN, COOKIE, IP and KEY (private keys).
export_sanitized_curl produces something like:
# Replay of flow 7
# Set environment variables first:
# export NULLWIRE_AUTH_TOKEN=... # was [REDACTED_TOKEN#a1b2c3]
curl -X POST 'https://api.example.com/v1/charge' \
-H "Authorization: $NULLWIRE_AUTH_TOKEN" \
-H 'Content-Type: application/json' \
--data-raw '…'Placeholders are NULLWIRE_AUTH_TOKEN, NULLWIRE_COOKIE, NULLWIRE_IP and NULLWIRE_PRIVATE_KEY. CONNECT tunnels have no replayable request, and NullWire says so.
🧽 What gets redacted
Every URL, header, request body and response body passes through these layers, in this order:
# | Layer | Catches | Example |
1 | Private keys | PEM blocks: RSA, EC, OpenSSH, encrypted, PGP; JSON-escaped ones; blocks cut off by a size limit |
|
2 | Secret fields | JSON string values and arrays, and query parameters, for names like |
|
3 | XML elements | Element text for secret-looking names, with namespaces and CDATA; the tags themselves stay intact |
|
4 | URL credentials |
|
|
5 | Auth schemes |
|
|
6 | JWTs | Three-part | |
7 | Vendor keys | 50+ formats in three tiers (below) |
|
8 | Secret-named fields |
|
|
9 | Your patterns | Regexes from the config file | |
10 | IP addresses | IPv4 (strictly validated) and IPv6, except loopback and unspecified |
|
11 | Base64 | Base64 or URL-safe base64 whose decoded text contains a secret. Images and other binary data are left alone. |
|
12 | Randomness detector | 16 to 128 character tokens that look machine-generated: mixed case or digits, high Shannon entropy, few vowels. UUIDs are exempt. | an unknown vendor's key |
Headers. Authorization, Cookie, Set-Cookie, X-Api-Key, Api-Key, X-Auth-Token and Proxy-Authorization are always redacted, plus any you add.
Vendor tiers. Matching all prefixes the same way would redact ordinary words, so they are tiered:
Tier | Needs after the prefix | Examples |
Strong | 16+ token characters |
|
Weak (also occur in normal words) | 20+ characters, plus a digit, a capital or 24+ characters |
|
Connection strings | 8+ characters |
|
Prefixes are matched case-sensitively, so asiapacific_region is left alone.
Bodies are decoded before scrubbing. gzip and deflate (up to 1 MiB expanded, a decompression-bomb guard). multipart/form-data forms are split into fields; file parts keep only the field name, file name and size.
🛡️ Safety shields
Shield | Behaviour |
Request shield | A request body with a |
Response shield | The client's |
Unreadable bodies | Any other encoded body is stored as a short placeholder with a visible warning in the flow's |
Protobuf and gRPC | Binary bodies are not stored. Only their size is recorded. |
Size limits | See the table below. A secret that straddles a limit is still scrubbed first, thanks to an 8 KiB scrub window. |
Loopback only | The proxy binds to |
Tunnel limits | At most 256 concurrent tunnels and upgraded connections, each closed after 10 minutes idle. |
Wipe on exit |
|
Limits
What | Limit |
Flows kept in RAM | 50 |
Stored request body | 32 KiB |
Stored response body | 256 KiB |
In-flight capture buffer | 64 KiB request, 512 KiB response |
Scrub window past the stored size | 8 KiB |
Decoded gzip/deflate | 1 MiB |
Randomness detector | 16 to 128 characters |
⚙️ Configuration
Pass -secrets-config path/to/file.json to tune redaction without recompiling. Every field is optional.
{
"sensitive_headers": ["X-Company-Auth", "X-Api-Signature"],
"ignore_url_substrings": ["/healthz", "/metrics"],
"ignore_headers": ["User-Agent"],
"custom_vendors": [
{ "name": "Internal DB", "prefix": "db_prod_", "pattern": "" },
{ "name": "Acme Auth", "prefix": "acme_", "pattern": "acme_[a-zA-Z0-9]{32}" }
],
"extra_regex_patterns": [
{ "name": "app_key", "pattern": "app_k_[a-zA-Z0-9]{24}" }
]
}Field | Effect |
| Header values that are always redacted, like |
| Flows whose URL contains one of these are never recorded (health checks, metrics). |
| Header values that are left as they are. |
|
|
| Extra regexes; every match is redacted. |
Patterns use Go's RE2 syntax, which runs in linear time, so a bad pattern cannot freeze the proxy.
🔌 Connect your MCP clients: install
install writes NullWire into your MCP clients' config files, and removes it again, so you never have to hunt for the right file or JSON key.
nullwire-mcp install --list # supported clients and whether they are here
nullwire-mcp install --client all --dry-run # preview every change
nullwire-mcp install --client cursor,vscode # just these two
nullwire-mcp install --client cursor -- -port 8081 # save server flags with the entry (after --)
nullwire-mcp install --uninstall --client all # take it back out
nullwire-mcp install --print # a snippet to paste into clients that aren't supportedClient |
| What it edits |
Claude Desktop |
|
|
Claude Code |
| runs |
Cursor |
|
|
Windsurf |
|
|
VS Code (Copilot) |
| your user |
Cline |
|
|
Roo Code |
|
|
Gemini CLI |
|
|
Codex CLI |
|
|
Other clients (Zed, Continue, JetBrains and more) are not edited. Use --print and paste the snippet where that client keeps its MCP servers.
How it stays safe
With
--client allit only touches clients it finds on your machine. Name a client explicitly to create its config.The first time it changes a file it keeps a copy next to it as
<file>.nullwire-bak. That copy is never overwritten, so it always holds the original.Files are written through a temporary file and renamed, and symlinked dotfiles stay symlinks.
Your other servers, settings, numbers and extra fields on the NullWire entry (such as
env) are kept. JSON keys may be re-ordered.A config it can't parse as plain JSON (for example one with comments) is left alone, with a clear message.
Running it twice changes nothing the second time.
Option | Meaning |
| Comma-separated client ids, or |
| Name to register the server under (default |
| Register this binary instead of the one that is running. |
| Register |
| As described above. |
| Everything after |
🔎 Scan your machine: scan and protect
Secrets leak long before traffic does: a token in an MCP config, a password in .env. NullWire can find them. Scanning never writes to disk and never prints a secret: findings are shown already scrubbed, and shell history text is never shown at all.
nullwire-mcp scan --discover # known MCP client configs, ~/.env, ~/.codex/config.toml, …
nullwire-mcp scan .mcp.json .env # specific files
nullwire-mcp scan --deep ./my-project --toml --yaml --zip
nullwire-mcp scan --history # opt-in: count secrets in shell historyOption | Meaning |
| Check the usual config locations under your home and config directories. |
| Walk a directory for MCP config JSON and |
| Also scan |
| Count lines with secrets in bash, zsh, fish and PowerShell history. Text is never printed. |
exit codes |
|
File types are recognised by name, so nullwire-mcp scan some.env config.toml settings.yaml bundle.zip routes each to the right scanner. Files over 4 MiB are skipped. ZIP archives are read in memory under a zip-bomb shield: entries over 1 MiB, archives over 20 MiB of content or 1000 entries are skipped and reported.
protect runs a quick scan of the usual places, then starts the normal server:
nullwire-mcp protect --target https://api.example.com --deep .It accepts the server options (--port, --target, --cacert, --dns, --secrets-config, --scrub-headers, --allow-uninspectable) plus --deep DIR, --history and --no-scan. The scan report goes to stderr, so the MCP channel on stdout stays clean, and stop signals are passed on to the server.
📟 CLI reference
nullwire-mcp [flags] run the MCP server and the proxy
nullwire-mcp scan [options] [PATH…] look for secrets in files
nullwire-mcp protect [options] scan, then run the server
nullwire-mcp install [options] register NullWire with your MCP clientsFlag | Default | Meaning |
|
| Proxy port. Always bound to |
| none | Reverse-gateway upstream: a URL and/or |
| none | Extra CA certificates (a PEM file or a directory) for upstream HTTPS. |
|
| Upstream DNS: |
| none | Path to the JSON config. |
| none | Extra header names to always redact. |
| off | Forward request bodies that can't be inspected instead of refusing them with |
📱 Platform notes
Termux and Android. Static Go binaries have no system DNS settings or CA certificates on Android. NullWire detects Termux and uses 1.1.1.1 and 9.9.9.9 for lookups, printing a notice (those resolvers will see the hostnames you contact). Choose your own with -dns <resolver>, or -dns system to turn this off. Upstream HTTPS uses the CA certificates found in Termux's standard locations; add more with -cacert.
chmod +x nullwire-linux-arm64
sleep infinity | ./nullwire-linux-arm64 # keep stdin open; use a second session for curlCorporate networks. If your company re-signs HTTPS traffic, add its root with -cacert /path/to/company-root.pem.
Windows. Use the .exe and the same flags. scan --history also checks PowerShell's PSReadLine history.
🔐 Security model and honest limits
NullWire is a diagnostic tool. Be clear-eyed about what it does and does not promise.
What it guarantees
Nothing is written to disk by the server, and a stop signal wipes memory. The
installcommand edits MCP client configs only when you run it, and backs each file up first.The proxy is reachable only from your own machine.
The model never sees the live traffic, only the scrubbed copy.
Live traffic is never rewritten, so what you debug is what runs.
What it does not do
Release binaries carry signed build provenance, not OS-vendor code-signing certificates. Verify authenticity with
SHA256SUMS.txtandgh attestation verify. Because they are not signed with an Apple Developer ID or Microsoft Authenticode certificate, on macOS you may needxattr -d com.apple.quarantine ./nullwire-darwin-arm64.It is not a TLS interceptor.
CONNECTtunnels show only the destination and byte counts. Use the reverse gateway when you need HTTPS content.Redaction is pattern and heuristic based. A secret in a shape nobody anticipated, and low in randomness, can slip through. The randomness detector can also redact a harmless long identifier. Add your own patterns in the config for secrets you know about.
Brotli and Zstd bodies are never decoded (the standard library can't, and pulling in a package would break the zero-dependency rule). They are refused (requests) or flagged (responses).
WebSocket flows appear when the connection closes. Messages compressed with
permessage-deflatecan't be read, so NullWire drops the client's extension offer to keep frames readable.An XML secret element that contains nested markup is not covered by the XML layer.
Upstream connections use HTTP/1.1. HTTP/2 and gRPC bodies are not captured.
If you find a secret NullWire missed, please open an issue with a fake sample that has the same shape. Never post a real one.
✅ Tested on
Platform | Status | What was run |
Linux x86-64 (Ubuntu 24.04) | ✅ verified |
|
macOS 15 (Apple Silicon) | ✅ verified | smoke test, silent notifications, end-to-end redaction |
macOS 15 (Intel) | ✅ verified | smoke test, silent notifications, end-to-end redaction |
Windows x86-64 | ✅ verified | smoke test, silent notifications, end-to-end redaction |
Windows ARM64 | ✅ verified | smoke test, silent notifications, end-to-end redaction |
FreeBSD amd64 (VM) | ✅ verified | smoke test, silent notifications, end-to-end redaction |
Linux ARMv7 (QEMU) | 🟡 emulated | smoke test, silent notifications, end-to-end redaction |
Linux RISC-V 64 (QEMU) | 🟡 emulated | smoke test, silent notifications, end-to-end redaction |
Linux ARM64 (Android / Termux) | ✅ verified on device | live upstream proxy, redaction tags, |
🟡 emulated means run under QEMU, not on real hardware. Details are in docs/test-results.md.
🧪 Development
go vet ./...
go test -race ./...Zero dependencies:
go.modhas norequirelines, and CI keeps it that way.Release transparency: every release is built with Go 1.26 and includes
SHA256SUMS.txt, a CycloneDX SBOM (nullwire-sbom.cdx.json) and a signed build provenance attestation, which you can verify withgh attestation verify. The same proof is attached to each release asnullwire-provenance.intoto.jsonl. Thego vetandgo test -racelogs of every CI run are saved as atest-logsartifact for 30 days. Pushes tomainupdate a rollinglatestpre-release; numbered tags produce stable releases. Pull requests never publish anything.Fuzzing: the scrubber, the IPv6 and vendor-key matchers and the WebSocket frame reader have fuzz targets. They check that no secret survives scrubbing, that results don't depend on how input is chunked, and that nothing panics.
CI: checks the shell and Node installers for syntax errors, runs
go vetand the race detector, cross-compiles static binaries for all 9 platforms (Linux x86-64, ARM64, ARMv7 and RISC-V 64; macOS Intel and Apple Silicon; Windows x86-64 and ARM64; FreeBSD x86-64), and publishes a multi-arch Docker image (amd64 and arm64).smoke.ymlandsmoke-extra.ymlrun on demand (Actions → Run workflow): end-to-end redaction tests on Ubuntu, macOS (Apple Silicon and Intel), Windows (x86-64 and ARM64), a FreeBSD VM, and QEMU-emulated Linux ARMv7 and RISC-V 64. Security checks rungovulncheckand the fuzz targets. GitHub Actions are pinned to full commit hashes.
File | Purpose |
| Proxy, scrubber, ring buffer, MCP server and CLI |
| WebSocket frame reader and capture (read-only taps) |
| Request shield, multipart scrubbing, |
| JSON array, XML and base64 redaction |
| Vendor prefix tiers |
| The |
| The |
| The |
| Installers for macOS, Linux, Termux and Windows |
| The |
| Homebrew and Scoop templates and |
| Tests for the features above |
❓ Troubleshooting
Symptom | Cause and fix |
HTTPS shows only a | That is the blind tunnel. Use the reverse gateway ( |
| Your client sent a request body compressed with |
| Reach the gateway as |
| Add the CA with |
A harmless value shows as | The randomness detector matched a long random-looking identifier. Add its URL to |
| The file has comments or a syntax error, so it was left untouched. Fix it, or use |
| Another NullWire (or program) uses the port. Pick another with |
The assistant sees no flows | Check the status bar's |
Built by VoxNode-ux · Version 1.2.0 · License: see the repository's LICENSE file
If NullWire saved you from pasting a secret into a chat, a ⭐ helps others find it.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Experimental MCP server for current empirical verification of explicit public HTTPS endpoint claims.
AI-native mock API server with MCP. Create REST/SOAP mocks from Claude, Cursor, or Windsurf.
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceGuardrail sidecar proxy between AI agents and their MCP/REST/CLI tools. Policy engine, human approval gates, time-limited grants, rate limiting, and OTEL tracing. One Go binary, one YAML config, fail-closed by default.1Apache 2.0
- AlicenseAqualityBmaintenanceSecurity, cost, and health governance proxy for MCP infrastructure. Enforces YAML-configurable security policies (blocklists, rate limits, token budgets), tracks real token costs via tiktoken, monitors server health with live JSON-RPC probes. Features OAuth 2.1/OIDC with RBAC, web dashboard, payload normalization, semantic shell AST analysis, mTLS, and a formal STRIDE threat model.4771 npm4MIT
- AlicenseAqualityBmaintenanceTransparent Go proxy that intercepts, signs, rate-limits, redacts, and audits all MCP JSON-RPC tool calls without modifying client or server. Stores to JSONL or SQLite with HMAC-SHA256 signatures.148Apache 2.0
- FlicenseBqualityDmaintenanceA lightweight MCP server built on mitmproxy that lets LLMs capture, inspect, replay, and modify HTTP traffic through a set of focused tools.138-