Back to Home
sumchattering icon

iterm2-mcp-server

Verified Safe

by sumchattering

Overview

An MCP server enabling AI assistants to read and interact with iTerm2 terminal panes on macOS.

Installation

Run Command
npx iterm2-mcp-server

Security 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

Stats

Interest Score55
Security Score8
Cost ClassMedium
Avg Tokens300
Stars1
Forks0
Last Update2026-01-18

Tags

iTerm2terminalautomationAI assistantmacOS