iterm2-mcp-server
Verified Safeby sumchattering
Overview
An MCP server enabling AI assistants to read and interact with iTerm2 terminal panes on macOS.
Installation
npx iterm2-mcp-serverSecurity Notes
The server's Node.js component executes Python scripts via `child_process.spawn()`. The Python script uses `argparse` to strictly define commands and their parameters, which significantly mitigates arbitrary command injection risks. The `iterm2_send_text` tool allows an AI to send arbitrary text to an iTerm2 pane, which is an intended core feature for a terminal agent and could be misused if the AI is given malicious instructions, but is not a vulnerability within the server's code itself. No hardcoded secrets or direct 'eval' statements were found. Communication is local through the iTerm2 Python API (WebSocket) and MCP SDK (local HTTP/stdio).
Similar Servers
XcodeBuildMCP
Provides an MCP (Model Context Protocol) server for AI agents and other clients to programmatically build, test, run, and debug iOS and macOS applications, manage simulators/devices, and capture logs.
wcgw
Empowering chat applications to code, build, and run on your local machine by providing tightly integrated shell and code editing tools.
macos-automator-mcp
Transforms an AI assistant into a macOS automation agent, enabling it to execute AppleScript and JXA commands to control applications and system functions.
tmux-mcp
Enables AI assistants (like Claude Desktop) to interact with, control, and observe tmux terminal sessions by providing tools for session management and command execution.