aiterm-mcp
MCP server by kitepon Community
Gives an AI assistant one persistent terminal and a launcher for Claude Code, Codex CLI, Grok CLI and Cursor Agent CLI. It lets one AI drive other coding agents over MCP with no human at the terminal. Built for developers automating multi-agent workflows.
Install aiterm-mcp
Built from the published package, never by AI.
claude mcp add aiterm-mcp -- npx -y aiterm-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"aiterm-mcp": {
"args": [
"-y",
"aiterm-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"aiterm-mcp": {
"args": [
"-y",
"aiterm-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"aiterm-mcp": {
"args": [
"-y",
"aiterm-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add aiterm-mcp -- npx -y aiterm-mcp{
"mcpServers": {
"aiterm-mcp": {
"args": [
"-y",
"aiterm-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add aiterm-mcp npx -y aiterm-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the aiterm-mcp block.
About
aiterm-mcp is an MCP server that gives an AI assistant one persistent terminal it can open, drive, read and observe. The terminal runs on tmux on POSIX systems or psmux on native Windows, so sessions survive restarts of the MCP server or the AI client. An agent_launch call starts Claude Code, Codex CLI, Grok CLI or Cursor Agent CLI inside that terminal, and the assistant then drives it turn by turn.
Each launch selects the execution harness separately from the model, so Cursor can run GPT, Claude or Grok. The mechanism is plain: the MCP client sends text into the other agent's terminal, with no hidden protocol and no shared-memory layer. Launched agents read the normal project and harness configuration. It is aimed at developers and orchestration loops, such as CI steps or cron jobs, where no one sits at a terminal.
Written from the project's README and checked against it.
Tools it gives your assistant
pty_openOpens one persistent terminal that the assistant can drive.pty_sendSends text input to the persistent terminal.pty_readReads output from the persistent terminal.pty_keySends key presses to the persistent terminal.pty_closeCloses a persistent terminal session.pty_listLists the open persistent terminal sessions.pty_observeObserves the state of a persistent terminal.agent_launchLaunches a coding agent harness such as Claude Code, Codex CLI, Grok CLI or Cursor Agent CLI.agent_modelsLists models available to a launched agent harness.agent_configureChanges the model or reasoning effort of a running Codex or Claude session.
What you need
- Node.js 18 or later
- tmux on POSIX systems, or psmux 3.3.8 or later on native Windows
- Codex CLI installed and authenticated to drive Codex
Try asking
- Launch Codex CLI in a persistent terminal and ask it to fix the failing tests
- Open a persistent terminal, run the build and read the output
- Start a Cursor agent using a Claude model to review this branch
Good to know
- Codex Steer wake-up is verified only for the macOS and Windows apps; the Linux app is not yet verified.
- Driving Codex requires the Codex CLI to be installed and authenticated.
- Native Windows needs psmux 3.3.8 or later.
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl https://cursor.com/install -fsS | bash
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to aiterm-mcp
All alternatives →Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.
Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.
Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.
Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.
VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.
Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.
Compare with Oh My Posh Validator, Sim or Omnara
aiterm-mcp: common questions
Does aiterm-mcp need someone sitting at a terminal?
No. It is driven programmatically over MCP, so an AI can launch and drive another agent from an orchestration loop, a CI step or a cron job.
Can Cursor run models other than Cursor's own?
Yes. The cursor-cli harness can select GPT, Claude or Grok, while Cursor still owns the session, hooks and transcript.
What terminal backend does it use?
It uses tmux on POSIX systems and psmux on native Windows, so sessions survive restarts of the MCP server or AI client.
How do I install aiterm-mcp?
In Claude Code run claude mcp add aiterm-mcp -- npx -y aiterm-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is aiterm-mcp the official server?
aiterm-mcp is a community project by kitepon, not verified by a company domain.
Is aiterm-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is aiterm-mcp safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality C. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to aiterm-mcp?
Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.
Does aiterm-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
