SuperAPIAI Directory

mac-terminal-mcp

github.com · AI developer platforms

mac-terminal-mcp is a local MCP server for Claude chat and Cowork that provides them with sandboxed terminal capabilities on macOS. It consists of a single Python file, uses only the standard library, requires no npm, has no telemetry, and has no auto-updates. All commands run within a single macOS Seatbelt sandbox profile, so there are no approval pop-ups; the sandbox blocks reading ~/.ssh, ~/.aws, and the keychain, blocks writing outside the user's home directory, and blocks modification of shell startup files, LaunchAgents, git hooks, and Claude configuration that would be executed later. It supports running commands, keeping long-running tasks alive in tmux, and reading and editing files. When an operation requested by the user is blocked by the sandbox, Claude re-runs it outside the sandbox and logs a one-line reason. This tool is intended for scenarios where Claude chat or Cowork is used on a Mac; if using Claude Code, its built-in /sandbox already provides similar capabilities. Note: within the user's home directory, Claude can still change or delete files, and networking is enabled.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

mac-terminal-mcp is a local MCP server that provides a sandboxed terminal on a Mac for Claude chat and Cowork. Claude chat and Cowork themselves have no shell on macOS, and this project fills that gap: running commands, keeping long-running tasks alive in tmux, and reading and editing files.

Key capabilities and usage: the project is a single Python file, uses only the standard library, requires no npm, has no telemetry, and has no self-updates. The information needed for installation and use is all written in AGENTS.md, which should be read before installing. During installation, the link can be handed to an agent to handle.

Sandbox mechanism: there are no approval pop-ups; every command runs within a single macOS sandbox profile (Seatbelt, the mechanism behind Claude Code's own sandbox). The sandbox blocks reading ~/.ssh, ~/.aws, and the keychain; blocks writing outside the user's home directory; and blocks changes to files that will be run later, including shell startup files, LaunchAgents, git hooks, and Claude's configuration.

Limitations and exceptions: the sandbox cannot prevent files within the user's home directory from being changed or deleted, and networking is enabled. When the sandbox blocks an operation requested by the user (for example, git push or brew install), Claude re-runs that operation outside the sandbox with a one-line reason and also logs it.

Use cases: when terminal capabilities are needed while using Claude chat or Cowork on a Mac. If using Claude Code, its built-in /sandbox already implements similar functionality, so this project is not needed. Cowork's built-in shell runs in the cloud or in a Linux VM, not locally on macOS. Desktop Commander, by contrast, provides Claude with a shell that has no sandbox.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools