A Model Context Protocol server that provides access to iTerm. You can run commands and ask questions about what you see in the iTerm terminal.
Unlock the power of Large Language Models (LLMs) by seamlessly integrating them with your iTerm2 terminal using iTerm-MCP. This open-source Model Context Protocol (MCP) server empowers LLMs to interact directly with your terminal, enabling a new level of automation, analysis, and control.
npx
, iTerm-MCP is designed for effortless integration with Claude Desktop and other MCP clients.write_to_terminal
: Writes a command to the active iTerm2 terminal and returns the number of output lines generated.read_terminal_output
: Reads a specified number of lines from the active iTerm2 terminal.send_control_character
: Sends a control character (e.g., Ctrl+C) to the active iTerm2 terminal.~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
mcpServers
section:{ "mcpServers": { "iterm-mcp": { "command": "npx", "args": [ "-y", "iterm-mcp" ] } } }
Simplify the installation process using Smithery:
npx -y @smithery/cli install iterm-mcp --client claude
yarn install
yarn run build
yarn run watch
Debugging MCP servers can be challenging due to their reliance on standard input/output (stdio) communication. We recommend using the MCP Inspector for enhanced debugging capabilities.
yarn run inspector
yarn debug <command>
The Inspector will provide a URL to access debugging tools in your web browser.
๐ ๐ Autonomous shell execution, computer control and coding agent. (Mac)
๐ MCP server that can execute commands such as keyboard input and mouse movement
๐ ๐ ๐ฆ Analyzes your codebase identifying important files based on dependency relationships. Generates diagrams and importance scores, helping AI assistants understand the codebase.
๐ ๐ An MCP Server and VS Code Extension which enables (language agnostic) automatic debugging via breakpoints and expression evaluation.