MCP server · Audited from source
Mac Shell MCP server
by cfdude/mac-shell-mcpMIT licenceAudited 9 Oct 2026 · source 735f288b5bc9
Is it safe? Yes — SAFE, grade B (89/100). It exposes 5 tools: 1 read, 4 write and 0 destructive. The audit recorded 12 findings (0 critical, 0 high, 0 medium, 6 low). Maintainer's description: An MCP (Model Context Protocol) server for executing macOS terminal commands with ZSH shell. This server provides a secure way to execute shell commands with built-in whitelisting and approval mechanisms.
Cite
Cite this page
ModelsAtlas. “Mac Shell MCP server (cfdude/mac-shell-mcp)”. Retrieved 9 Oct 2026. https://modelsatlas.com/mcp/cfdude/mac-shell
Trust audit
Audit 0.4.1 · full source read 9 Oct 2026
12 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemNone observedNothing seen in the source
- NetworkNone observedNothing seen in the source
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 5 findings |
L1 Static source | Secrets, path traversal, supply chain | PASS 1 finding |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 6 findings |
L3 Inventory | Declared tools match the source | PASS |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
cfdudeUser accountAccount type recorded when we read the repository. - PackagePublished on npm
@the_cfdude/mac-shell-mcpat version 2.0.1 - LicenceMITFrom the repository, as read at the audited commit.
- Last push6 days agoActivity of the repository when we read it.
- Source commit read735f288b5bc9The audit covers exactly this commit, read on 9 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory5 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (12)
Sorted by severity
LOWInventory / provenanceinv.binary · docs/disputes/evidence/mac-shell-mcp-1.0.4.tgz
mac-shell-mcp-1.0.4.tgz
- Why
- a compiled or binary member cannot be reviewed from source
- Fix
- ship source, or explain the binary in the README
LOWSupply chainsupply.unpinned · package.json
zod, @types/jest, @types/node, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, eslint, eslint-config-prettier, eslint-plugin-prettier
- Why
- 12 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
INFOPrompt injectionprompt.authority_framing · SECURITY.md:44
3. **Never run the server with elevated privileges** (e.g., sudo)
- Why
- No further detail recorded for this rule.
- Fix
- —
INFOPrompt injectionprompt.authority_framing · SECURITY.md:58
- **Commands run with the full permissions of the user running the server.** There is no sandbox.
- Why
- No further detail recorded for this rule.
- Fix
- —
INFOPrompt injectionprompt.credential_read · openspec/changes/mac-shell-mcp-2-security-redesign/proposal.md:9
Underneath both sits a design error: a static command-name allowlist cannot express the real risk. `grep` is nominally read-only and `grep -r AKIA ~/.aws` exfiltrates credentials, while `mkdir ./build
- Why
- asks the agent to read credentials
- Fix
- —
INFOPrompt injectionprompt.credential_read · openspec/changes/mac-shell-mcp-2-security-redesign/specs/command-execution/spec.md:111
- **WHEN** a pipeline requests `cat ~/.aws/credentials` followed by `grep AKIA`, where both stages are read-effect
- Why
- asks the agent to read credentials
- Fix
- —
INFOPrompt injectionprompt.credential_read · openspec/changes/mac-shell-mcp-2-security-redesign/tasks.md:49
- [ ] 6.0b Write a failing test asserting the request's **working directory is a scope input for every tool**, and that a request carrying NO path-shaped argument is classified by its cwd rather than
- Why
- asks the agent to read credentials
- Fix
- —
INFOPrompt injectionprompt.credential_read · openspec/changes/mac-shell-mcp-2-security-redesign/tasks.md:54
- [ ] 6.4 Write failing tests asserting `execute_pipeline` authorizes every stage **completely** — program, effect, scope, argument rules and permission — so that a permitted read followed by a **writ
- Why
- asks the agent to read credentials
- Fix
- —
Tools it exposes
5 declared in source · 0 destructive
| Tool | Risk | What it does |
|---|---|---|
execute_command | write | Run a permitted command confined to the configured roots. Reads and writes inside a root; refuses anything reaching outside. |
execute_external_command | write | Run a permitted command against paths OUTSIDE the configured roots. Requires interactive approval; refused where the client cannot ask a human. |
execute_pipeline | write | Compose read-only commands, wiring stdout to stdin in process. Every stage is authorized independently and confined to the roots. |
suggest_policy_config | write | Summarize recorded usage into configuration a human may apply. Cannot apply it; the policy file is protected. |
get_policy | read | Report the effective policy: permitted commands with effects, permissions and argument shapes, plus the configured roots. |
Install
Package version 2.0.1 · audited commit 735f288
One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 2.0.1. The audit covers commit 735f288 only.
claude mcp add mac-shell-mcp -- npx -y @the_cfdude/[email protected]
{
"mcpServers": {
"mac-shell-mcp": {
"command": "npx",
"args": [
"-y",
"@the_cfdude/[email protected]"
]
}
}
}The command pins the package version recorded in the source (2.0.1); the audit covers commit 735f288b5bc9. Transport: stdio · streamable-http. No environment variables required.
Audit history
- ✓SAFE B 89 / 100
First audit ·
735f288b5bc9
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/cfdude/mac-shell/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about Mac Shell MCP server
What is the Mac Shell MCP server?
What tools does Mac Shell expose?
Is Mac Shell safe to connect to an agent?
What credentials does Mac Shell need?
How does Mac Shell run?
How current is this page?
Sources
- cfdude/mac-shell-mcp on GitHub — the source we read, its licence, stars and activityObserved · 9 Oct 2026
- ModelsAtlas trust audit — SAFE verdict for commit 735f288b5bc9Observed · 9 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Mac Shell MCP server?
- What tools does Mac Shell expose?
- Is Mac Shell safe to connect to an agent?