Mac Shell
Createdcfdude
Enables execution of macOS terminal commands with ZSH shell via the Model Context Protocol (MCP).
About
Mac Shell provides a secure MCP server that executes macOS terminal commands using the ZSH shell, incorporating whitelisting and approval mechanisms for enhanced security. It allows administrators to define safe, approval-required, and forbidden commands, offering a robust approach to managing shell command execution. The server integrates smoothly with platforms like Roo Code and Claude Desktop, facilitating command management and execution through a configurable whitelist.
Key Features
- Command whitelisting with security levels (Safe, Requires Approval, Forbidden)
- Approval workflow for potentially dangerous commands
- Uses Node.js's `execFile` to prevent shell injection
- Pre-configured whitelist of common safe commands
- Comprehensive command management tools
Use Cases
- Securely execute shell commands from Claude Desktop
- Securely execute shell commands from Roo Code
- Manage and control command execution on macOS systems