MCP.so
登录

Mac Shell MCP Server

@cfdude

基本信息

分类

开发工具

许可证

MIT

传输方式

stdio

作者

cfdude

关于 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.

Mac Shell MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mac-shell-mcp": {
      "command": "node",
      "args": [
        "build/index.js"
      ]
    }
  }
}

Mac Shell MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Mac Shell MCP Server?

Mac Shell MCP Server is an MCP (Model Context Protocol) server for executing macOS terminal commands with ZSH shell. It provides a secure way to run shell commands with built-in whitelisting and approval mechanisms, designed for AI assistants like Roo Code and Claude Desktop.

How to use Mac Shell MCP Server?

Install by cloning the repository and running npm install && npm build, or use npx directly from the GitHub repository. Configure the server in your MCP client settings (Roo Code or Claude Desktop), then invoke tools such as execute_command or get_whitelist to run and manage shell commands.

Key features of Mac Shell MCP Server

  • Execute macOS terminal commands through MCP
  • Three security levels: safe, requires approval, forbidden
  • Pre-configured whitelist with common safe commands
  • Approval workflow for potentially dangerous commands
  • Tools to manage whitelist and pending approvals

Use cases of Mac Shell MCP Server

  • AI-assisted file browsing and directory listing
  • Safe execution of read-only commands (ls, cat, grep)
  • Controlled file operations with approval (cp, mv, mkdir)
  • Blocking dangerous commands like rm and sudo

常见问题

1

What commands are safe by default?

Safe commands include ls, pwd, echo, cat, grep, find, cd, head, tail, and wc. These execute without approval.

2

What commands require approval?

Commands like mv, cp, mkdir, touch, chmod, and chown require explicit approval before execution.

评论

开发工具 分类下的更多 MCP 服务器