Get the FREE Ultimate OpenClaw Setup Guide →

MCPretentious

A powerful Model Context Protocol (MCP) server that puppeteers iTerm2 terminals.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio oetiker-mcpretentious npx mcpretentious

How to use

MCPretentious is a universal terminal MCP server that enables control of terminals via two backends: iTerm2 on macOS through a WebSocket API and tmux through direct commands. Once running, you can programmatically create and manage terminal sessions, send keystrokes and mouse input, capture screen content, resize terminals, and retrieve viewport information. The server exposes a set of tools to interact with active terminals, including opening new sessions, typing text, taking screenshots with layered content, sending mouse events, resizing, closing, and listing terminals. This makes it suitable for automated testing, remote terminal management, or integrating terminal automation into larger workflows. The included tools ensure you can simulate real user interactions and inspect terminal state from your client.

To use it, install mcpretentious globally via npm, then start using the provided CLI tools to open sessions and perform actions. For integration with orchestration or Claude-based workflows, configure the MCP server through your preferred MCP client (e.g., Claude Desktop or Claude Code) to point at the mcpretentious backend as shown in the example configuration. The server maintains real terminal IDs and supports Alt-key combinations and full mouse input, enabling complex automation scenarios across backends.

How to install

Prerequisites:

  • Node.js and npm (or npx via npm)
  • macOS with iTerm2 for the iTerm2 backend (optional, for that backend)
  • tmux installed for the tmux backend (optional, cross-platform)

Installation steps:

  1. Install mcpretentious globally using npm: npm install -g mcpretentious
  2. Ensure your environment has the required backends available:
    • iTerm2 (macOS) with Python API enabled in iTerm2 preferences
    • tmux installed on your system (e.g., brew install tmux or apt install tmux)
  3. (Optional) Verify installation: npx mcpretentious --version
  4. Start using the CLI tools to create sessions and control terminals, or configure an MCP client to connect to the server via the npx-based command as shown in the configuration example.

Additional notes

Notes and tips:

  • Backends: iTerm2 (macOS) via WebSocket API for fast, feature-rich terminal control and tmux via direct commands for cross-platform usage.
  • Alt-key support has been added (alt-a to alt-z, alt-shift-* variants, alt-number keys, navigation keys, F-keys, and special keys) using standard terminal escape sequences.
  • Real terminal IDs are exposed, not just MCP-created ones, enabling interaction with any existing terminal.
  • If integrating with Claude-based tooling, use the provided mcpServers configuration example to register mcpretentious under Claude Desktop or Claude Code.
  • Ensure proper security considerations when granting terminal access, as the server can execute commands and control terminals with full capabilities.

Related MCP Servers

Sponsor this space

Reach thousands of developers