iTerm MCP
Free集成 macOS 的 iTerm2 终端,让 AI 执行和监控终端命令。
About iTerm MCP
iTerm MCP is a Model Context Protocol (MCP) server that provides AI models with direct access to an active iTerm2 terminal session. It enables models to execute commands, read terminal output, and send control characters (e.g., Ctrl+C, Ctrl+Z) within the user's iTerm environment. The server is designed for efficient token usage, allowing the model to inspect only the output it needs, and supports natural integration where the user shares the terminal with the AI. Built with minimal dependencies and runnable via npx, it is easy to set up with Claude Desktop and other MCP clients. Key tools include write_to_terminal, read_terminal_output, and send_control_character. Users are responsible for monitoring commands as there are no built-in safety restrictions.
Key Features
Pros & Cons
- Efficient token usage reduces cost and latency for long outputs
- Seamless integration with existing iTerm2 sessions - no need for a separate sandbox
- Supports full terminal control including control characters for interruption and job control
- Lightweight and easy to install via npx
- Open source with MIT license and active development on GitHub
- No built-in safety restrictions - user must actively monitor and abort unsafe commands
- Requires iTerm2 to be running and Node.js 18+ installed
- Only works on macOS (iTerm2 is macOS-only)