MCP config security checker
Paste an MCP config and find hardcoded tokens, unpinned npx and uvx servers, plain HTTP, broad filesystem access, shell servers and auto-approve settings.
Checked as you type. Nothing you paste leaves this page, and secrets are shown redacted.
The file is read in your browser. It is not uploaded.
Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.
How to use the MCP config security checker
- Paste .mcp.json, .cursor/mcp.json, .vscode/mcp.json or claude_desktop_config.json, drop the file, or load the example.
- Rotate every token the checker found, then reference it from the environment.
- Pin each package to an exact version.
- Narrow filesystem roots to the project, and review shell and auto-approve findings.
About this tool
An MCP config lists the servers an AI client starts and the tools it hands to the model. Each entry is a program that runs on your machine with your permissions, usually fetched fresh from a package registry each time, and often given an API token in the same file. The file decides how much damage a prompt injection can do.
This checker reads the config shapes of Claude Code and Claude Desktop (mcpServers), Cursor, Windsurf, Gemini CLI and VS Code (servers), with comments and trailing commas allowed. It reports literal secrets in env, headers, arguments and URLs; servers run through npx, uvx, pipx or docker without a pinned version; remote servers over plain http; containers with host access; and installs piped from curl.
Those rules and their wording are the ones HardenKit Scan applies to MCP configs in a repository. This page adds four more: a filesystem server given the whole disk or home directory, servers that run shell commands, flags that turn off a server’s own limits, and auto-approve settings. Secrets are never shown. A rule set cannot judge what a server’s tools do, so read that too.
Sources
Questions
Not as a literal value. Project configs such as .mcp.json are committed and shared, and desktop configs get pasted into issues and chats. Reference an environment variable (for example "${GITHUB_TOKEN}") or use the client’s input prompt feature, and rotate any key that was written into the file.
npx -y package downloads and runs the newest release every time the client starts. If the package or its maintainer account is compromised, the new code runs on your machine with your tokens at the next start. [email protected] keeps running the version you reviewed.
It lets the model read and write files under the directories you list. Given / or your home directory, that includes SSH keys, browser profiles and cloud credentials, and text the model reads from the web or a document can ask for them. List only the project directory.
It lets the listed tools run without the confirmation prompt. That is reasonable for tools that only read harmless data. For tools that write, send or execute, the prompt is the one moment a person can stop an injected instruction.