iterm2-mcp
v0.2.0MCP server that gives Claude full control over iTerm2 via the iTerm2 Python API.
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add iterm2-mcp -- uvx iterm2-mcp==0.2.0Add to
claude_desktop_config.json{
"mcpServers": {
"iterm2-mcp": {
"args": [
"iterm2-mcp==0.2.0"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"iterm2-mcp": {
"args": [
"iterm2-mcp==0.2.0"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"iterm2-mcp": {
"args": [
"iterm2-mcp==0.2.0"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.iterm2-mcp]
command = "uvx"
args = ["iterm2-mcp==0.2.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_sessions, get_active_session, focus_session, write_to_terminal, send_control_character, send_escape_sequence, read_screen, get_cursor_position, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json