Review the access an MCP server receives
An MCP server can expose capabilities such as reading files, searching data, or running an operational task. Its configuration can influence where it runs, which paths it sees, and which credentials reach it. A configuration review is useful before enabling a server, but it cannot replace checking the server implementation and observing its actual behavior.
CyberClutch's MCP Security Scanner helps identify potentially risky configuration patterns. It analyzes pasted JSON locally and reports findings by severity and category. It does not run the server, test an endpoint, inspect package contents, or guarantee security.
Understand the patterns being checked
Broad filesystem access
Arguments such as /, /home, or C:\ can indicate access to more files than a particular task needs. The scanner recognizes a limited set of broad path strings. A path buried inside another argument, supplied through a different field, or interpreted by a custom wrapper may not be recognized.
Restrict scope to the necessary project or workspace when the server supports that boundary. A narrow-looking argument is not itself enforcement: confirm how the server resolves symlinks, follows paths, and applies read/write permissions at runtime.
Shell execution and unsafe flags
Commands invoking general-purpose shells receive attention because untrusted text and quoting can affect how the shell interprets a command. The scanner also looks for flags such as --no-sandbox, --allow-all, --unsafe, and --privileged. Their significance depends on the program receiving them, but they deserve explicit review.
Executing a named binary directly can reduce shell interpretation. It does not prove that the binary is trustworthy, current, or constrained. Review its origin, version, dependencies, and process permissions separately.
Secrets and remote endpoints
Some literal environment values under sensitive-looking names are flagged as possible plaintext secrets. The check is based on names and string shape, not a comprehensive credential detector. Reference-shaped strings receive different treatment, but your client must actually support the reference syntax for it to work.
Remote HTTP URLs receive stronger findings because transport is unencrypted. HTTPS protects the connection but does not certify the server's data handling, authorization model, or suitability for a sensitive task. Also review unexpected hostnames and data exposure even when the score is low.
Compare two illustrative configurations
This synthetic configuration combines a shell, a broad path, an unsafe flag, and a fake literal secret:
{
"mcpServers": {
"broad-files": {
"command": "bash",
"args": ["--no-sandbox", "/"],
"env": {"API_KEY": "example-not-a-real-secret"}
},
"remote": {"url": "http://example.com/mcp"}
}
}
It is an analysis example, not a command to run. The arguments are deliberately poor and may not even be valid for the named program. Static findings identify configuration strings; they do not demonstrate a working exploit or a valid launch sequence.
A narrower illustration removes the general-purpose shell and broad path:
{
"mcpServers": {
"project-files": {
"command": "/opt/example/bin/mcp-files",
"args": ["/home/user/project"]
},
"remote": {"url": "https://example.com/mcp"}
}
}
This is safer in the specific visible patterns, not a certified secure configuration. The executable and endpoint are placeholders. Its runtime trust, permissions, client compatibility, authentication, and tool approvals still require review.
Interpret findings and the risk score
Each finding includes a severity, category, server, evidence, and recommendation. Prioritize significant execution, secret, and transport issues, but read the evidence rather than treating every heuristic as a proven vulnerability.
The current implementation adds fixed weights and caps the result at 100:
| Finding severity | Score contribution |
|---|---|
| Critical | 30 |
| High | 18 |
| Medium | 9 |
| Low | 4 |
| Informational | 0 |
The overall labels are Minimal at 0, Low at 1–19, Medium at 20–44, High at 45–69, and Critical at 70–100. These labels summarize detected patterns. The score is not a probability of compromise, an industry-standard rating, or proof that two configurations have the same real-world risk. Additional repeated findings can increase the aggregate even when they share a root cause.
Use a repeatable review workflow
- Paste a credential-free copy of the configuration and run the scan.
- Fix invalid JSON or missing
mcpServersstructure if the scan cannot proceed. - Read the server-specific findings, not only the score.
- Decide whether each flagged access is necessary for the task.
- Change the configuration using the actual client and server documentation.
- Scan the revised copy, then perform controlled runtime verification separately.
A zero score means no scored patterns were detected by these rules. It does not establish that the server is safe. This scanner does not detect prompt injection, inspect returned tool content, verify authorization flows, or audit implementation code.
The analysis stays in the browser; existing site analytics do not receive the pasted configuration. Result evidence can still contain values from the configuration, so avoid sharing screenshots with real secrets. The MCP security guidance covers broader protocol risks. Use the scanner alongside the configuration validator, code review, least-privilege execution, and appropriate runtime checks.
