Iterm2 Agent
A server that controls the iTerm2 terminal through the MCP protocol, providing functions such as reading screen content, executing commands, sending keystrokes, monitoring output, and managing session panels.
rating : 2 points
downloads : 6.4K
What is iTerm2 Agent?
iTerm2 Agent is an intelligent terminal control tool that connects your AI assistant (such as Claude) to the iTerm2 terminal through the Model Context Protocol (MCP). Simply put, it enables you to tell the AI assistant what you want to do in the terminal using natural language, and the AI assistant will automatically perform the corresponding terminal operations for you.How to use iTerm2 Agent?
Using iTerm2 Agent is very simple: 1) Install and configure iTerm2 Agent. 2) Enable it in Claude Code. 3) Have a conversation with Claude as usual and tell it what you want to do in the terminal. Claude will automatically use the tools of iTerm2 Agent to execute your instructions.Applicable scenarios
iTerm2 Agent is particularly suitable for the following scenarios: quickly viewing logs and running commands during development and debugging, automating repetitive terminal tasks, managing multi - window terminals, monitoring long - running programs, and getting real - time guidance when learning command - line operations.Main features
Terminal screen reading
Read the content displayed on the terminal screen in real - time, including text, cursor position, and the current working directory, so that you can always know the terminal status.
Intelligent command execution
Safely execute shell commands, automatically wait for the commands to complete and return the results. It has a built - in security classification system and will issue warnings for dangerous commands.
Keyboard input simulation
Simulate keyboard input, which can send text, control characters (such as Ctrl + C to interrupt a program), special shortcut keys, etc.
Output monitoring
Monitor the terminal output until a specific text pattern (regular expression match) appears, which is very suitable for waiting for a program to start or a specific event to occur.
Window management
Create, split, close, and switch terminal windows to easily manage multiple workspaces.
Security protection
It has a built - in security level classification: safe (read - only), caution (modification), and dangerous (destructive) commands, and provides clear warnings for dangerous operations.
Advantages
No need to memorize complex commands, and you can operate the terminal using natural language
Improve development efficiency by automating repetitive terminal operations
The security protection mechanism avoids accidentally executing dangerous commands
Seamless integration with Claude to get intelligent suggestions and guidance
Real - time monitoring and response, suitable for long - running tasks
Limitations
Only supports the macOS system and the iTerm2 terminal
Requires pre - installation and configuration of the Python environment
Depends on the Python API function of iTerm2
Some advanced terminal functions may not be supported
Requires the Claude Code or Claude Desktop environment
How to use
Install iTerm2 and enable the Python API
Make sure you are using the macOS system. Install the latest version of iTerm2, and then enable the Python API in the iTerm2 settings: Preferences → General → Magic → Enable Python API
Install iTerm2 Agent
Clone the project, create a Python virtual environment, and install the necessary dependency packages.
Configure Claude Code
Edit the Claude configuration file and add iTerm2 Agent as the MCP server. You need to specify the correct Python interpreter path.
Install skills (optional)
Install the iTerm2 Agent skills to help Claude better understand how to use this tool. The skills will be automatically activated in relevant conversations.
Restart and start using
Restart Claude Code, make sure iTerm2 is running, and then you can start controlling the terminal using natural language.
Usage examples
View project status
Quickly view the status of the current Git repository to know which files have been modified and are uncommitted.
Start a development server
Start a development server in the background and monitor the startup logs until the server is ready.
Multitasking
Split the terminal window and execute multiple related tasks simultaneously in different windows.
Interrupt a running program
Safely stop a long - running or stuck program.
Automate the deployment process
Execute a series of deployment steps, including code pulling, dependency installation, building, and restarting the service.
Frequently Asked Questions
Is iTerm2 Agent safe? Will it execute dangerous commands?
Can I use it on Windows or Linux?
What should I do if I encounter Python dependency issues during installation?
What should I do if Claude does not use the iTerm2 Agent tool correctly?
Can I control multiple terminal sessions simultaneously?
What should I do if the command execution times out?
Related resources
iTerm2 official website
Download the iTerm2 terminal and view the official documentation
Model Context Protocol official website
Learn about the technical details and specifications of the MCP protocol
GitHub repository
The source code and the latest version of iTerm2 Agent
uv package manager
Python virtual environment and package management tool
skills.sh skills platform
Discover and install Claude skills

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
34.6K
5 points

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
20.5K
4.5 points

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
24.7K
4.3 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
73.6K
4.3 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
32.6K
5 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
64.9K
4.5 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
22.1K
4.5 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
49.6K
4.8 points





