Executes and monitors commands in the current iTerm2 session, useful for REPL and CLI assistance.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add iterm -- npx -y iterm-mcp~/.codex/config.toml
[mcp_servers.iterm]
command = "npx"
args = ["-y", "iterm-mcp"]
# codex mcp add iterm -- npx -y iterm-mcp~/.cursor/mcp.json
{
"mcpServers": {
"iterm": {
"command": "npx",
"args": [
"-y",
"iterm-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"iterm": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"iterm-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"iterm": {
"command": "npx",
"args": [
"-y",
"iterm-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"iterm": {
"command": "npx",
"args": [
"-y",
"iterm-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"iterm": {
"command": "npx",
"args": [
"-y",
"iterm-mcp"
]
}
}
}