MCP ExplorerExplorer

Iterm Mcp Server

@rishabkoulon a year ago
3 ISC
FreeCommunity
AI Systems
iTerm-MCP-Server enables AI assistants to manage iTerm2 terminals via MCP.

Overview

What is Iterm Mcp Server

iTerm-MCP-Server is a Model Context Protocol (MCP) server implementation designed for integration with the iTerm2 terminal. It facilitates interaction between AI assistants and iTerm2 terminals using the Model Context Protocol.

Use cases

Use cases include automating command execution in terminal sessions, integrating AI-driven tools for enhanced terminal management, and facilitating remote development workflows through terminal interactions.

How to use

To use iTerm-MCP-Server, ensure you have Node.js (version 14.x or higher) and iTerm2 installed on macOS. You can configure it by adding specific settings to your ‘~/.cursor/mcp.json’ file and then running the server using the command ‘npx iterm_mcp_server’.

Key features

Key features include the ability to create and manage iTerm2 terminal sessions, execute commands, read terminal output, list active terminals, and close terminals. It also ensures security through input validation and isolated command execution.

Where to use

iTerm-MCP-Server is primarily used in software development environments, automation tasks, and any scenario where AI assistants need to interact with terminal sessions on macOS.

Content

ITerm MCP Server

A Model Context Protocol (MCP) server implementation for iTerm2 terminal integration. This server allows AI assistants to interact with iTerm2 terminals through the Model Context Protocol.

Features

  • Create and manage iTerm2 terminal sessions
  • Execute commands in terminals
  • Read terminal output
  • List active terminals
  • Close terminals

Requirements

  • Node.js >= 14.x
  • iTerm2
  • macOS (since iTerm2 is macOS-only)

Configuration

Standard Configuration

The server uses the standard MCP configuration options. No additional configuration is required.

Cursor Configuration

To use this server with Cursor, add the following configuration to your ~/.cursor/mcp.json file:

{
  "mcpServers": {
    "terminal": {
      "command": "npx",
      "args": [
        "iterm_mcp_server"
      ]
    }
  }
}

Tools

  • open_terminal: Open a new terminal instance
  • execute_command: Execute a command in a specific terminal
  • read_output: Read the output from a specific terminal
  • close_terminal: Close a specific terminal
  • list_terminals: List all active terminals and their information

Security Considerations

  • The server validates all input using Zod schemas
  • Commands are executed in isolated terminal sessions
  • Proper error handling and input sanitization is implemented

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

ISC

Author

Rishab Koul

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers