# Aiterm MCP

> Aiterm MCP is an open-source MCP server for developer tools. Persistent terminal sessions that let one AI client launch and drive other coding agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows
- **Repository:** https://github.com/kitepon/aiterm-mcp
- **MCP Registry name:** io.github.kitepon/aiterm-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-23

## About

Everything runs inside a persistent terminal that an AI drives turn by turn. SSH, docker exec, a REPL or another agent's interface all nest inside it as text sent in, with no hidden protocol or autonomous negotiation between agents. Sessions are backed by tmux on macOS and Linux and psmux on native Windows, so they survive a restart of either the MCP server or the client, and no human needs to sit at the terminal, which makes it usable from an orchestration loop, CI step or cron job.

A single agent_launch call chooses the execution harness (Claude Code, Codex CLI, Grok CLI or Cursor Agent CLI) separately from the model it runs, so Cursor can run GPT, Claude or Grok while still owning the session, hooks and transcript. The README reports a recorded 203-test benchmark in which reading a terminal through pty_read put about 7.1 times fewer tokens in context than the raw log.

A setup command, aiterm-setup, detects installed clients, installs terminal dependencies and registers the server; an optional Codex Steer mode uses official queues and hooks to hand replies to a running Codex session. Node.js 18 or newer is required, and driving Codex needs its CLI installed and signed in. The README is partly in Japanese.

## Features

- **Persistent PTY sessions:** Open, send to, read and observe terminals that outlive the client.
- **Unified agent launcher:** One call starts Claude Code, Codex, Grok or Cursor harnesses.
- **Harness and model split:** Choose the agent loop separately from the model it runs.
- **Folded terminal reads:** pty_read condenses output; the README measures about 7.1x fewer tokens.
- **One-step setup:** aiterm-setup registers the server in detected clients.
- **Codex Steer:** Optional hook-based mode for passing replies into a running Codex session.

## Good for

- Have Claude drive another coding agent headlessly
- Keep a long-running shell alive across client restarts
- Run agent orchestration from CI or cron
- Use Cursor with a different underlying model
- Reduce context spent on terminal logs

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add aiterm-mcp -- npx -y aiterm-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "aiterm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aiterm-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "aiterm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aiterm-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "aiterm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aiterm-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "aiterm-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "aiterm-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add aiterm-mcp -- npx -y aiterm-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.aiterm-mcp]
command = "npx"
args = ["-y", "aiterm-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "aiterm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aiterm-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user aiterm-mcp npx -- -y aiterm-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "aiterm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aiterm-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "aiterm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aiterm-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "aiterm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aiterm-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "aiterm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aiterm-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "aiterm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aiterm-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "aiterm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aiterm-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "aiterm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aiterm-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "aiterm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aiterm-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 16 tools changes data; 13 names don't say. From the server's own tool labels and tool names; not verified by us.

- `pty_open`: Opens a persistent terminal session.
- `pty_send` (name suggests: changes): Sends text to the terminal.
- `pty_read` (name suggests: reads): Reads terminal output in a condensed form.
- `pty_key`: Sends key presses to the terminal.
- `pty_close`: Closes a terminal session.
- `pty_list` (name suggests: reads): Lists open terminal sessions.
- `pty_observe`: Observes a terminal session.
- `agent_launch`: Launches a coding agent harness inside a persistent session.
- `agent_models`: Lists models available to an agent harness.
- `agent_configure`: Configures a launched agent.
- `agent_goal`: Sets a goal for a launched agent.
- `agent_auth`: Handles agent authentication.
- `agent_approval`: Handles approval prompts for launched agents.
- `claude_turn`: Drives a Claude Code turn.
- `claude_approval`: Handles Claude Code approvals.
- `diagnostics`: Reports setup and session diagnostics.

## FAQ

### What does Aiterm MCP need installed?

Node.js 18 or newer and a terminal multiplexer: tmux on macOS and Linux, psmux 3.3.8 or later on native Windows.

### How is Aiterm MCP started in an MCP client?

Each client launches the npm package with npx -y aiterm-mcp, or you run npm install -g aiterm-mcp and aiterm-setup.

### How many tools does Aiterm MCP expose?

The README lists 19, including seven PTY tools and the agent launcher.

### Which agents can Aiterm MCP launch?

Claude Code, Codex CLI, Grok CLI, Cursor Agent CLI and Antigravity CLI.

### Is Aiterm MCP free?

Yes. Aiterm MCP is open source, so you can use and self-host it for free.

### How do I add Aiterm MCP to Claude Code?

Run this command in your terminal: claude mcp add aiterm-mcp -- npx -y aiterm-mcp

### What are the best alternatives to Aiterm MCP?

The closest alternatives to Aiterm MCP are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/aiterm-mcp-2
