MCP Config Auditor

Your MCP config is a list of commands your AI agent is allowed to run. Read it before you trust it.

An MCP config is the file that tells your AI client which servers it may launch — and with what command, arguments and secrets. Claude Desktop reads claude_desktop_config.json; Claude Code and VS Code read .mcp.json. Paste yours here and this auditor reads it in your browser — never uploaded — and flags plaintext secrets, shell-piped installers, sudo and dangerous flags, unpinned packages, relative commands, and remote servers reached over plain HTTP or with no authentication. The companion article audit your MCP config walks through a real config by hand. Also see the MCP Server Probe and the Agent Readiness Checker.

Last updated:

1. Audit a config

Drop a .json config here, or choose one below

claude_desktop_config.json, .mcp.json, or any MCP config in the same shape. Up to 1 MB — parsed in your browser.

🔒 The audit runs entirely in your browser: the config is never uploaded, never stored, and never sent anywhere. A config file can hold live API keys — that is exactly why it stays on your machine.

What an MCP config is

An MCP config is a JSON file with an mcpServers object: each key is a server name, and each value says how to start it — a command, args, and env variables. Claude Desktop reads claude_desktop_config.json; Claude Code, VS Code and Cursor read .mcp.json (project or user scope). The shape is the same either way, and this auditor reads both.

Servers start over three transports: stdio runs a local command (the common case — npx, uvx, a local binary); SSE and streamable HTTP connect to a remote URL instead, with optional headers for authentication. A local server runs with your user’s privileges; a remote one can see whatever its headers carry — and whatever it is told to do.

Secrets usually arrive as env entries: "GITHUB_TOKEN": "ghp_..." and the like. That is convenient — and it is the leak. The value sits in plaintext in a file that gets copied into dotfile repos, pasted into chats, and screenshotted into bug reports. Treat a config file the way you treat a .env file: never commit it, never paste it, and prefer ${VAR} references that resolve from your shell instead of a literal key.

The same file is also a command list: every command is executed when the client starts, with the arguments written next to it. An installer line that pipes a remote script into a shell, a sudo, or a --allow-all flag runs silently at startup — before you ever ask the agent to do anything. That is why the config deserves an audit, not just a glance.

What this auditor does — and what it does not

It parses the config in your browser and runs 17 rules over every server: plaintext secrets in env and args, shell-piped installers, sudo and dangerous flags, shell wrappers, unpinned npx/uvx packages, relative command paths, remote transports over plain HTTP or with no authentication, localhost assumptions, missing timeouts, duplicate servers, and unresolved ${VAR} references. Results are a 0–100 score with a verdict, findings grouped by severity with a fix for each, a server table, and a hardened config you can copy — with the secrets replaced by ${VAR} references — plus findings CSV and full JSON export.

It does not judge intent: a finding is a pattern, not a verdict. It does not know what a server does once it runs — a well-known package can still be malicious, and a flagged flag can be exactly what you intended. It does not fetch anything, does not run any server, and does not send anything anywhere. A clean audit is not a guarantee: it only checks the config you gave it.

The demo is a synthetic config with 8 servers — github, filesystem, web-search, internal-api, installer, notes, docs and backup — built to trip the rules on purpose: a plaintext API key, a token in args, a curl-piped installer, sudo, an unpinned package, a remote server with no auth, and more. One click fills the input and shows a Critical verdict on the first screen.

Be honest about what a finding means

A finding means “this pattern matched”, not “something bad happened”. A token in env on a machine only you use, a --yes on a package you pinned by hash, or a localhost server you run yourself may all be exactly what you intended. Read each finding with its evidence — the quoted key, command or URL — and with the context only you have, then decide.

And a clean audit is not a clean bill of health. This tool sees only the config you gave it: it cannot see a package that was clean when you installed it and compromised since, a server that phones home after it starts, or a secret that lives in a file this config references. “No findings” means no risky pattern was found here — not that the config is safe.

Key facts

mcpServersThe object in an MCP config that lists every server: each key is a server name, each value says how to start it.
stdio transportA local server: the client runs a command (npx, uvx, a binary) and talks to it over standard input and output. It runs with your user’s privileges.
Streamable HTTPA remote server reached over HTTP, the current standard remote transport. The URL and headers in the config decide what it can see.
SSE transportServer-Sent Events: the older remote transport, still used by many hosted MCP servers. Superseded by streamable HTTP for new servers.
Environment variable ($VAR)A value the shell provides at runtime, written ${VAR} in the config instead of a literal secret. The secret stays out of the file.
Unpinned version (@latest)A package reference with no version, such as @latest or no version at all. The next install can pull different code than the last one.
Hardened configThe same config with the risky bits fixed: secrets replaced by ${VAR} references, packages pinned, dangerous flags removed. Copy it, fill in the variables, and use it as your starting point.
Format referenceModel Context Protocol — official specification

Frequently asked questions

Why does the audit run in my browser instead of on a server?

Because a config file can hold live API keys. The file lists every server your agent may run, with the tokens that authenticate them, in plaintext. Sending that to a server to audit it would create the exact exposure the audit is meant to catch. Parsing it locally means the secrets never leave your machine.

My config has findings — is it unsafe?

Not necessarily. A finding is a pattern that matched, and many matches are intended: a token in env on a machine only you use, a localhost server, an unpinned package you update deliberately. Open the finding, read the quoted evidence, and ask whether the line is what you wanted. The ones to act on first are the Criticals: a plaintext secret that is also committed somewhere, and an installer that pipes a remote script into a shell.

What does the hardened config do with my secrets?

It replaces every literal secret value with a ${VAR} reference — the key name stays, the value goes. Copy it over your config, then set each variable in your shell or your client’s environment before you start it. The auditor never sees the real values again, and neither does anyone who reads the file.