iTerm MCP Server

@ferrislucas Claim

Basic information

Runtime
TypeScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
ferrislucas
Submitted by
Community
Quality
70
Stars
564

About iTerm MCP Server

Streamline terminal workflows by executing shell commands directly in the active iTerm tab for fast automation and productivity.

iTerm is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by ferrislucas. It exposes 3 tools, including write_to_terminal, read_terminal_output, send_control_character. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 564 GitHub stars. Source code is hosted on github.com. Related topics: ai, claude, claude-ai, community, developer-tools.

Setup

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

iTerm MCP Server config

Add this server to your MCP-compatible client using the configuration below.

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

iTerm MCP Server tools

  • write_to_terminal — Writes text to the active iTerm terminal - often used to run a command in the terminal
  • read_terminal_output — Reads the output from the active iTerm terminal
  • send_control_character — Sends a control character to the active iTerm terminal (e.g., Control-C, or special sequences like ']' for telnet escape)

Overview

What is iTerm?

iterm-mcp is a Model Context Protocol server that provides access to your iTerm session. It allows large language models to inspect terminal output, write commands, and send control characters directly to iTerm2.

How to use iTerm?

Install iterm-mcp via npx (npx -y iterm-mcp) and add the server configuration to your MCP client, such as the Claude Desktop config file (claude_desktop_config.json). For a one‑click install, you can also use Smithery (npx -y @smithery/cli install iterm-mcp --client claude). iTerm2 must be running and Node version 18 or higher is required.

Key features of iTerm

  • Efficient token use: model inspects only the output it needs.
  • Natural integration: share iTerm with the model and watch it work.
  • Full terminal control and REPL support with control characters.
  • Minimal dependencies, runnable via npx.
  • Easy setup with Claude Desktop and other MCP clients.

Use cases of iTerm

  • Inspect the last few lines of output from long‑running commands.
  • Delegate multi‑step terminal tasks and observe each step.
  • Start and interact with REPLs (e.g., Python, Node).
  • Send control characters like ctrl‑c or ctrl‑z to manage processes.

Frequently asked questions

1 What are the safety considerations?

The user is responsible for using the tool safely. iterm‑mcp makes no attempt to evaluate the safety of commands, and models can behave unexpectedly. Users should monitor activity and abort when appropriate.

2 What are the system requirements?

iTerm2 must be running. Node version 18 or greater is required.

3 How do I install iterm-mcp for Claude Desktop?

Add the following entry to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json): {"mcpServers":{"iterm-mcp":{"command":"npx","args":["-y","iterm-mcp"]}}}.

4 What tools does iterm-mcp provide?

Three tools: write_to_terminal (writes to the active terminal and returns line count), read_terminal_output (reads a requested number of lines), and send_control_character (sends control characters like ctrl‑c).

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬