MCP Catalogs
Homeiterm-mcp screenshot

iterm-mcp

by ferrislucas·556·Score 50

MCP server that gives models control over your iTerm terminal with efficient token usage and full REPL support.

developer-toolsproductivityai-llm
67
Forks
10
Open issues
8 mo ago
Last commit
2d ago
Indexed

Overview

iterm-mcp is a well-implemented MCP server that bridges AI models with terminal interactions. It provides three key tools: writing to terminal, reading terminal output, and sending control characters. The server efficiently manages token usage by only providing relevant output to the model, making it ideal for REPL interactions and CLI assistance. Built with minimal dependencies, it's designed for easy integration with MCP clients like Claude Desktop.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:AI assistant performing complex CLI operations in your iTerm session
you:Interactive REPL debugging with AI guidance
you:Automated terminal workflow execution through natural language
you:Is iterm-mcp safe to use?
you:What iTerm version is required?

When to choose this

Choose iterm-mcp when you need AI assistance directly in your terminal environment, particularly for REPL interactions, CLI debugging, or automating terminal workflows.

When NOT to choose this

Avoid this if you need security restrictions on commands, work on non-macOS systems with iTerm, or require terminal interaction outside of the MCP protocol ecosystem.

Tools this server exposes

3 tools extracted from the README
  • write_to_terminal

    Writes to the active iTerm terminal, often used to run a command. Returns the number of lines of output.

  • read_terminal_output

    Reads the requested number of lines from the active iTerm terminal.

  • send_control_character

    Sends a control character to the active iTerm terminal.

Comparable tools

shell-mcpterminal-mcpcmd-mcp

Installation

Installation

To use with Claude Desktop, add the server config:

On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "iterm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "iterm-mcp"
      ]
    }
  }
}

Installing via Smithery

To install iTerm for Claude Desktop automatically via [Smithery](https://smithery.ai/server/iterm-mcp):

npx -y @smithery/cli install iterm-mcp --client claude

FAQ

Is iterm-mcp safe to use?
The server makes no attempt to evaluate command safety. Users are responsible for safe usage and should monitor activity to interrupt when necessary.
What iTerm version is required?
iTerm2 must be running. Node version 18 or greater is also required.

On Hacker News

Recent discussion from the developer community.

Compare iterm-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.