mac-shell-mcp

cfdude/mac-shell-mcp
★ 24 stars TypeScript Code/Dev Tools Updated 3mo ago ✓ Clean
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.
View on GitHub → 🛡️ Security & TRiSM Audit →

⚡ What This Server Does & Key Capabilities

The mac-shell-mcp Model Context Protocol (MCP) server provides seamless integration between AI assistants (such as Claude Desktop, Cursor, and Claude Code) and 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. By connecting this server, your AI agent gains specialized capabilities to inspect, query, and automate tasks within the Code/Dev Tools domain.

Core Agent Capabilities

💡 Example Prompts to Ask Your AI Agent

Once installed in Claude Desktop or Cursor, try asking your assistant:

"Review recent commits in this repository, run the test suite, and highlight performance bottlenecks."
"Search for functions that don't have unit tests and generate test cases for them."

Compatible AI Clients

🟣 Claude Desktop ⚡ Cursor IDE 💻 Claude Code CLI 🌊 Windsurf 🤖 Gemini CLI

Quick Install

Copy the config for your editor. Verify environment variables or setup notes in the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mac-shell-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cfdude/mac-shell-mcp"
      ]
    }
  }
}
⚡
Building Production MCP Agents? PRO TOOLKITS
Get the Complete 31,500+ Ecosystem Dataset ($29) or the Production Starter Kit ($39) with turnkey Python & TypeScript boilerplates.
For Server Authors
Feature This Server
Top homepage & category placement.
Sponsor ($49/wk) →

🛡️ Protodex Verified Badge

Are you the author of mac-shell-mcp? Add this badge to your GitHub README for social proof and backlink verification.

Protodex Verified
[![Protodex Verified](https://img.shields.io/badge/Protodex-Verified_MCP-2DD9E0?style=flat-square&logo=github)](https://protodex.io/servers/cfdude-mac-shell-mcp.html)

README Documentation

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. <a href="https://glama.ai/mcp/servers/@cfdude/mac-shell-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@cfdude/mac-shell-mcp/badge" alt="Mac Shell Server MCP server" />

View Full Documentation & Updates on GitHub ↗

Tools (12)

catchmodchownechofindgrepheadmkdirpwdsudotailtouch

Topics

macmcpzsh