terminal-mcp
local MCP serverterminal-mcp is a local MCP server: MCP server for interactive terminal sessions — SSH, REPLs, database CLIs, TUI apps. Install it from pypi as terminal-mcp.
Installation
Terminal
claude mcp add terminal-mcp -e TERMINAL_MCP_MAX_SESSIONS=... -e TERMINAL_MCP_IDLE_TIMEOUT=... -- uvx terminal-mcp
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"terminal-mcp": {
"command": "uvx",
"args": [
"terminal-mcp"
],
"env": {
"TERMINAL_MCP_MAX_SESSIONS": "...",
"TERMINAL_MCP_IDLE_TIMEOUT": "..."
}
}
}
}Fill in the environment variables with your own credentials.
What you need
- Runtime: Python with uv (runs with uvx).
- MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
- Environment variables:
TERMINAL_MCP_MAX_SESSIONS,TERMINAL_MCP_IDLE_TIMEOUT
Summary
MCP server for interactive terminal sessions — SSH, REPLs, database CLIs, TUI apps
terminal-mcp vs similar servers
| Server | Stars | Type | API key | Runtime |
|---|---|---|---|---|
| terminal-mcp | 12 | Local | Yes | pypi |
| DBHub | 3,574 | Local | Yes | npm |
| smart-terminal | 12 | Local | No | npm |
| Desktop Commander | 9,802 | Local | No | npm |
| LINQ to DB | 3,329 | Local | No | nuget |
Questions
It reads 2 environment variables: TERMINAL_MCP_MAX_SESSIONS, TERMINAL_MCP_IDLE_TIMEOUT. Set them in your MCP config before starting the server.
Python with uv (runs with uvx), plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.
terminal-mcp is a local MCP server distributed as the pypi package terminal-mcp.
Run: claude mcp add terminal-mcp -e TERMINAL_MCP_MAX_SESSIONS=... -e TERMINAL_MCP_IDLE_TIMEOUT=... -- uvx terminal-mcp
Run: codex mcp add terminal-mcp --env TERMINAL_MCP_MAX_SESSIONS=... --env TERMINAL_MCP_IDLE_TIMEOUT=... -- uvx terminal-mcp
Similar MCP servers
NameStars
- DBHubio.github.bytebase/dbhub3,574
- smart-terminalio.github.pungggi/smart-terminal12
- Desktop Commanderio.github.wonderwhy-er/desktop-commander9,802
- LINQ to DBio.github.linq2db/linq2db.cli3,329
- ArcadeDB MCP Servercom.arcadedb/mcp-server1,165
- ArcadeDBio.github.ArcadeData/arcadedb1,165
- token-saviorio.github.Mibayy/token-savior1,157
- mcp-neo4j-aura-managerio.github.neo4j-contrib/mcp-neo4j-aura-manager985