Basic information
About iTerm2 MCP Server
iTerm2 lets you interact with macOS terminals using AI, AppleScript, and Node.js for seamless command execution and output management.
iTerm2 is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by rishabkoul. It exposes 5 tools, including open-terminal, execute-command, read-output, close-terminal and more. Supported transport: stdio. Runtime: JavaScript. License: ISC. The repository has 15 GitHub stars. Source code is hosted on github.com. Related topics: community, developer-tools, iterm2, mcp-server, terminal.
Setup
{
"mcpServers": {
"terminal": {
"command": "npx",
"args": [
"iterm_mcp_server"
]
}
}
}
{
"mcpServers": {
"terminal": {
"command": "npx",
"args": [
"iterm_mcp_server"
]
}
}
}
{
"servers": {
"terminal": {
"command": "npx",
"args": [
"iterm_mcp_server"
]
}
}
}
iTerm2 MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"terminal": {
"command": "npx",
"args": [
"iterm_mcp_server"
]
}
}
}
iTerm2 MCP Server tools
- open-terminal — Open a new terminal instance
- execute-command — Execute a command in a specific terminal
- read-output — Read the output from a specific terminal
- close-terminal — Close a specific terminal
- list-terminals — List all active terminals and their information
Overview
What is iTerm2?
ITerm MCP Server is a Model Context Protocol (MCP) server that enables AI assistants to interact with iTerm2 terminals on macOS. It allows creating, managing, and controlling terminal sessions programmatically through the MCP.
How to use iTerm2?
Install Node.js >=14.x, iTerm2 on macOS, then run npx iterm_mcp_server. For integration with Cursor, add the server configuration to ~/.cursor/mcp.json with the command npx and args ["iterm_mcp_server"].
Key features of iTerm2
- Create and manage iTerm2 terminal sessions
- Execute commands in a specific terminal
- Read terminal output from any session
- List all active terminals and their details
- Close specific terminal sessions
Use cases of iTerm2
- AI‑powered terminal automation and scripting
- Remote or automated command execution in iTerm2
- Programmatic monitoring of long‑running terminal tasks
- Integrating AI chat assistants with live terminal workflows
Frequently asked questions
1 What does ITerm MCP Server do?
It provides an MCP interface for iTerm2, allowing AI assistants to open, control, read from, and close terminal sessions on macOS.
2 What are the system requirements?
Node.js >=14.x, iTerm2, and macOS (iTerm2 is macOS‑only).
3 How does the server handle security?
All inputs are validated using Zod schemas, commands run in isolated terminal sessions, and proper error handling and input sanitization is implemented.
4 Can I use this with editors other than Cursor?
The README gives a configuration example for Cursor, but the server uses standard MCP and should work with any MCP‑compatible client.
5 Where does terminal output data live?
Terminal output is read from iTerm2 sessions on the local machine; no external service stores the data.
Videos
Tutorials, guides, and showcases related to iTerm2 MCP Server. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In