Iterm

Developer tools

A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance.

Your AI app calls the Iterm MCP server, which does the work through tools like write_to_terminal, read_terminal_output and send_control_character and sends the result back to the chat.

About Iterm

Iterm is a community MCP server from ferrislucas, filed in our directory under developer tools. A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance.

Iterm runs on your own machine: your AI app starts it with the command npx -y @smithery/cli and talks to it over standard input and output.

The README for Iterm lists tools such as write_to_terminal, read_terminal_output and send_control_character, which your AI app can call once the server is connected.

At a glance

Publisher
ferrislucas (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @smithery/cli
Written in
TypeScript
License
MIT
GitHub stars
575

Tools Iterm gives your AI app

  • write_to_terminalWrites to the active iTerm terminal, often used to run a command. Returns the number of lines of output produced by the command.
  • read_terminal_outputReads the requested number of lines from the active iTerm terminal.
  • send_control_characterSends a control character to the active iTerm terminal.

Tool names as the Iterm README lists them. Your AI app shows the live list once Iterm is connected.

How to set up Iterm

  1. Install Node.js on the machine that runs your AI app, because Iterm starts with npx and downloads its package on first run.
  2. Check the Iterm README for keys or settings; the registry lists none that Iterm requires.
  3. Add Iterm to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Iterm tools to confirm the connection.
  5. Run one read-only task with Iterm first, such as a call to write_to_terminal, before you allow anything that writes or sends.

Iterm compared with similar servers

  • Lean Lsp by oOo0oOo has fewer GitHub stars than Iterm (574 against 575); both are community servers, and both run locally. The Lean Lsp README lists 3 tools to Iterm's 3.
  • Droidline by KnifeLemon has more GitHub stars than Iterm (576 against 575); both are community servers, and both run locally.
  • Enferno by level09 has fewer GitHub stars than Iterm (571 against 575); both are community servers, and both run locally.

Before you connect Iterm

  • Give Iterm its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Iterm tool call until you trust what it does with them.
  • Treat text that Iterm fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Iterm on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Iterm

How marketing and sales teams put Iterm to work, by company size. Pick the size closest to yours and start Iterm on one use case.

Small business

  • A small business with a developer can use Iterm to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Iterm to explain and fix a marketing site issue without context switching between tools.
  • Iterm runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Iterm to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Iterm to keep scripts and automations documented and versioned as they change.
  • Start with write_to_terminal and read_terminal_output, the tools Iterm lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise engineering teams can roll out Iterm with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Iterm so web and marketing engineering share one reviewed way of working with AI.
  • Iterm is a community server, so have security review the code and pin a version before Iterm touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Iterm README

From ferrislucas/iterm-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

iterm-mcp

A Model Context Protocol server that provides access to your iTerm session.

Features

Efficient Token Use: iterm-mcp gives the model the ability to inspect only the output that the model is interested in. The model typically only wants to see the last few lines of output even for long running commands.

Natural Integration: You share iTerm with the model. You can ask questions about what's on the screen, or delegate a task to the model and watch as it performs each step.

Full Terminal Control and REPL support: The model can start and interact with REPL's as well as send control characters like ctrl-c, ctrl-z, etc.

Easy on the Dependencies: iterm-mcp is built with minimal dependencies and is runnable via npx. It's designed to be easy to add to Claude Desktop and other MCP clients. It should just work.

Safety Considerations

  • The user is responsible for using the tool safely.
  • No built-in restrictions: iterm-mcp makes no attempt to evaluate the safety of commands that are executed.
  • Models can behave in unexpected ways. The user is expected to monitor activity and abort when appropriate.
  • For multi-step tasks, you may need to interrupt the model if it goes off track. Start with smaller, focused tasks until you're familiar with how the model behaves.
Tools
  • write_to_terminal - Writes to the active iTerm terminal, often used to run a command. Returns the number of lines of output produced by the command.
  • 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.
Requirements
  • iTerm2 must be running
  • Node version 18 or greater

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:

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

Development

Install dependencies:

yarn install

Build the server:

yarn run build

For development with auto-rebuild:

yarn run watch
Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

yarn run inspector
yarn debug <command>

The Inspector will provide a URL to access debugging tools in your browser.

Questions about Iterm

What is the Iterm MCP server?

A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance. Iterm is maintained by ferrislucas on GitHub at ferrislucas/iterm-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Iterm MCP server?

Add Iterm to your AI app's MCP config with the command npx -y @smithery/cli. In Claude Code, run claude mcp add --transport stdio iterm -- npx -y @smithery/cli. To run Iterm this way you need Node.js installed.

Does Iterm need an API key?

The registry lists no required keys for Iterm. Check the Iterm README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Iterm an official MCP server?

No. Iterm is a community server maintained by ferrislucas. Community servers can be excellent; read the code and the open issues before you give Iterm access to company data.

What license is Iterm under?

Iterm is released under the MIT license, according to its GitHub repository. The license covers the code of Iterm; the service it connects to has its own terms.