
iterm-mcp
MCP server giving AI clients read and write access to your running iTerm2 session
iterm-mcp is an open-source MCP server for ai models and llm tooling. It is available on macOS, CLI and Self-hosted.
- Pricing
- Open source
- Platforms
- macOS, CLI, Self-hosted
- What it can do
- Can change data (2 tools)
- GitHub stars
- 575
- Last commit
- Language
- TypeScript
Similar MCP servers
About iterm-mcp
Connects an MCP-compatible assistant to the iTerm2 terminal already open on your Mac. Instead of pasting logs into a chat, the model can read just the last few lines of output from the active session, which keeps context small even when a command runs for a long time.
The server exposes three tools: one to type into the active terminal and run a command, one to read a set number of lines from it, and one to send control characters such as Ctrl-C or Ctrl-Z. Because it works inside a live session, the model can also start and drive REPLs, so you can watch each step as it happens.
It is aimed at developers who already work in iTerm2 and want an assistant to help with debugging, running builds or stepping through a task while they keep an eye on the screen. It runs through npx with no separate install, and the README notes that commands are not screened for safety, so the user is expected to monitor activity.
Tools this server provides (3)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 2 of 3 tools change data.
From the server's own tool labels and tool names; not verified by us.
- write_to_terminalName suggests: changes
- Writes to the active iTerm terminal, often used to run a command. Returns the number of lines of output produced by the command.
- read_terminal_outputName suggests: reads
- Reads the requested number of lines from the active iTerm terminal.
- send_control_characterName suggests: changes
- Sends a control character to the active iTerm terminal.
What it does
- Partial output reading
- Reads only the requested number of lines from the active terminal, keeping token use low for long-running commands.
- Command execution
- Writes input to the active iTerm2 session and reports how many lines of output the command produced.
- Control character sending
- Sends control sequences such as Ctrl-C and Ctrl-Z to interrupt or suspend running processes.
- REPL support
- Lets the model start and interact with interactive interpreters inside the shared terminal.
- Zero-install launch
- Runs via npx with a single config entry for Claude Desktop and other MCP clients.
Good for
- Asking an assistant what an error on the current terminal screen means
- Delegating a multi-step shell task and watching each command run
- Interrupting a runaway process from the assistant side
- Driving an interactive REPL while keeping the session visible
Pricing
Open source
Prices change. Check npmjs.com before you buy.
iterm-mcp FAQ
Which terminal app does iterm-mcp work with?
It works with iTerm2, which must be running for the server to function.
What version of Node is required?
Node version 18 or greater.
Which MCP clients can use iterm-mcp?
It is designed for Claude Desktop and other MCP clients, configured with a command and args entry.
Does iterm-mcp check commands before running them?
No. The server makes no attempt to evaluate command safety, so the user is responsible for monitoring activity.
Is iterm-mcp free?
Yes. iterm-mcp is open source, so you can use and self-host it for free.
What are the best alternatives to iterm-mcp?
The closest alternatives to iterm-mcp are Terminal MCP, Aiterm MCP, Aiterm MCP, tui-mcp and Terminal MCP Server.
Where this comes from
- Description: written from the project's README.
