
mac-terminal-mcp
Sandboxed shell on your Mac for Claude chat and Cowork, via a local MCP server
The repository was last updated 9 days ago and is published under MIT.
mac-terminal-mcp is an open-source MCP server for developer tools. It is available on macOS and CLI.
- Pricing
- Open source
- Platforms
- macOS, CLI
- GitHub stars
- 0
- Last commit
- Language
- Python
- License
- MIT
Similar MCP servers
About mac-terminal-mcp
Claude chat and Cowork normally have no shell on your Mac. This local server gives them one, so they can run commands, keep long jobs alive in tmux, and read or edit files in your home folder. It is a single Python file using only the standard library, with no npm dependency, telemetry or self-update.
Every command runs inside one macOS Seatbelt sandbox profile, the same mechanism behind Claude Code's sandbox, so the assistant runs without approval prompts. The sandbox blocks reads of ~/.ssh, ~/.aws and the Keychain, writes outside the home folder, and edits to files that execute later such as shell startup files, LaunchAgents and git hooks. Anything inside the home folder can still be changed or deleted, and network access stays on. When a blocked action is needed, such as a git push or brew install, the assistant reruns it outside the sandbox with a one-line reason that gets logged.
It suits Mac users who work with Claude chat or Cowork and want shell access with guardrails. Claude Code users already have a built-in sandbox for this, so the project points them elsewhere.
What it does
- No approval dialogs
- Commands run inside a macOS sandbox profile, so the assistant does not stop for a confirmation on each one.
- Sandboxed file access
- Blocks reads of SSH, AWS and Keychain data, writes outside the home folder, and edits to startup files and git hooks.
- Persistent tmux jobs
- Keeps long-running commands going in tmux sessions.
- Logged escape hatch
- Blocked actions can be rerun outside the sandbox with a stated reason, and each rerun is logged.
- Minimal footprint
- One Python file with only the standard library, no npm, telemetry or self-update.
Good for
- Letting Claude run builds, scripts and tests on a Mac
- Running long jobs in tmux while a chat session continues
- Reading and editing project files in the home folder from Claude chat
- Running git or Homebrew commands through Claude with the sandbox in place
Pricing
Open source
Free and MIT licensed
mac-terminal-mcp FAQ
Does mac-terminal-mcp need Claude Code?
No. It is aimed at Claude chat and Cowork on a Mac. The README notes that Claude Code users already have a built-in sandbox that covers this.
What can the sandbox not stop?
Inside the home folder Claude can still change or delete files, and the network remains enabled.
What dependencies does mac-terminal-mcp have?
It is one Python file using only the standard library, with no npm packages.
Is mac-terminal-mcp free?
Yes. mac-terminal-mcp is open source, so you can use and self-host it for free.
What are the best alternatives to mac-terminal-mcp?
The closest alternatives to mac-terminal-mcp are Desktop Commander, Imali Commander, claude-terminal-mcp, cmdshellmcp and codemcp.
Where this comes from
- Description: written from the project's README.


