Is mcp-cli-exec safe?
A powerful CLI command execution MCP server that enables running shell commands with structured output
If an AI agent using this server were tricked, the damage it could do through this server is limited.
Why: reads files but does not change them.
What it can do
- Reads files
Tools it offers your AI (2):
- cli-exec-raw
- cli-exec
How to use it safely
- ✓ Only give it the folders it needs; files it reads can end up in the AI’s context.
- ✓ Pin the version (below) so an update can't change what it does without you noticing.
Code patterns worth reviewing
Automated pattern matches in the published package. Some are expected for this kind of server, and some may be false positives — they are pointers for review, not confirmed vulnerabilities.
Command injection risk
The agent appears to pass input into a shell or command execution path.
build/executor.js:9
Install it pinned
{
"mcpServers": {
"cli-exec": {
"command": "npx",
"args": ["-y", "mcp-cli-exec@1.0.7"]
}
}
}Check your whole MCP setup
Agent Verify checks the servers in your Claude, Cursor and VS Code config — including whole-drive access and keys stored in plain text.
Maintain mcp-cli-exec?
Show users you've thought about access: add the badge below. If something here is wrong or you've released a fix, ask for a re-scan — we update pages on request.
[](https://aimodularity.com/agentverify/mcp/mcp-cli-exec/)
Agent Verify reads the package published on npm as text — it is never installed or run. Ratings describe capability, not intent, and are an automated, evidence-based check, not a guarantee. Scanner 2.0.0.