Skip to content
MCP server

Aiterm MCP

Persistent terminal sessions that let one AI client launch and drive other coding agents

Runs locally

Aiterm MCP is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
What it can do
Can change data (1 tool)
Version
0.70.129
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add aiterm-mcp -- npx -y aiterm-mcp

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "aiterm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aiterm-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Aiterm MCP

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.

Tools this server provides (16)

Taken from the project documentation; the running server may differ.

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_sendName suggests: changes
Sends text to the terminal.
pty_readName suggests: reads
Reads terminal output in a condensed form.
pty_key
Sends key presses to the terminal.
pty_close
Closes a terminal session.
pty_listName 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.

What it does

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

Pricing

Open source

Open source npm package

Aiterm MCP 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.

How AIPoweredBot checks servers