Mac Terminal MCP README

The full upstream README, mirrored for reference. Install config, tool schemas, adoption signals and our own overview live on the Mac Terminal MCP listing page.

Mac Terminal MCP

A sandboxed terminal on your Mac for Claude chat and Cowork

Release macOS Python Dependencies License: MIT Listed on mcpservers.org mureev/mac-terminal-mcp MCP server

A recreation of a real session in Claude chat on a Mac (Opus 5.5), with its prompt, status and reply. Asked to fix the failing tests in a small project and then try adding a comment line to ~/.zshrc, Claude uses mac-terminal: the tests are fixed, and the macOS sandbox refuses the ~/.zshrc write with operation not permitted, because shell startup files run later, outside the sandbox. Claude's working time is shown at 5x speed.

No approval dialogs: the macOS sandbox keeps Claude away from your keys, your Keychain and your startup files.
To install it, give your agent this link:

Code
https://github.com/mureev/mac-terminal-mcp

What it is

Claude chat and Cowork have no shell on your Mac itself. This local MCP server gives them one: run commands, keep long jobs going in tmux, read and edit files. One Python file, standard library only. No npm, no telemetry, no self-update.

  • No approval dialogs. Every command runs inside one macOS sandbox profile (Seatbelt, the mechanism behind Claude Code's own sandbox).
  • What the sandbox stops: reading ~/.ssh, ~/.aws and the Keychain; writing outside your home folder; changing files that run later (shell startup files, LaunchAgents, git hooks, Claude's config).
  • What it doesn't stop: inside your home folder Claude can change or delete files, and the network is on.
  • When it blocks something you asked for (a git push, a brew install), Claude reruns it outside the sandbox with a one-line reason, and that is logged.

Is it for you?

On a Mac, with Claude chat or Cowork. If you work in Claude Code, its own /sandbox already does this, so you don't need it. Cowork's built-in shell runs in the cloud or a Linux VM, not in macOS. Desktop Commander gives Claude a shell with no sandbox at all (why not the other options).

For agents

Everything an agent needs, to install it and then to use it, is in AGENTS.md. Read it before installing.

License

MIT.