Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

Mac Shell MCP server

by cfdude/mac-shell-mcpMIT licenceAudited 9 Oct 2026 · source 735f288b5bc9

npm @the_cfdude/mac-shell-mcp 2.0.1stdiostreamable-http★ 25
✓SAFEGrade B · 89/100 · 9 Oct 2026 · 735f288
25GitHub stars

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.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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

Trust score89/100✓SAFE B
0 critical0 high0 medium6 low6 info

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

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS 5 findings
L1 Static sourceSecrets, path traversal, supply chainPASS 1 finding
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 6 findings
L3 InventoryDeclared tools match the sourcePASS
L4 SandboxRun in isolation and watch behaviourSKIPPED

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-mcp at 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
F-13 Inventory / provenanceCWE-1104Layer L0
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
LOWInventory / provenanceinv.hidden_file · .mac-shell-mcp.sample.json
F-13 Inventory / provenanceCWE-1104Layer L0
.mac-shell-mcp.sample.json
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .prettierignore
F-13 Inventory / provenanceCWE-1104Layer L0
.prettierignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .prettierrc.json
F-13 Inventory / provenanceCWE-1104Layer L0
.prettierrc.json
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · openspec/changes/mac-shell-mcp-2-security-redesign/.openspec.yaml
F-13 Inventory / provenanceCWE-1104Layer L0
.openspec.yaml
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- **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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- **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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- [ ] 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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- [ ] 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

1 read4 write0 destructive
ToolRiskWhat it does
execute_commandwriteRun a permitted command confined to the configured roots. Reads and writes inside a root; refuses anything reaching outside.
execute_external_commandwriteRun a permitted command against paths OUTSIDE the configured roots. Requires interactive approval; refused where the client cannot ask a human.
execute_pipelinewriteCompose read-only commands, wiring stdout to stdin in process. Every stage is authorized independently and confined to the roots.
suggest_policy_configwriteSummarize recorded usage into configuration a human may apply. Cannot apply it; the policy file is protected.
get_policyreadReport 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]

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

  1. ✓SAFE B 89 / 100

    First audit · 735f288b5bc9

README badge

For maintainers · updates on every re-audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/mcp/cfdude/mac-shell/badge.svg)](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?
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.
What tools does Mac Shell expose?
5 in total: 1 read-only, 4 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Mac Shell safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Mac Shell need?
No credential environment variables were found in its source, so it appears to need none.
How does Mac Shell run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @the_cfdude/mac-shell-mcp at 2.0.1.
How current is this page?
The grade is for one exact copy of the source (735f288b5bc9), read on 2026-10-09. The repository is watched and re-audited when it changes.

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.