terminal-mcp
v0.3.1MCP server for interactive terminal sessions — SSH, REPLs, database CLIs, TUI apps
Values you need
| Variable | What it is | |
|---|---|---|
TERMINAL_MCP_MAX_SESSIONS | optional | Maximum concurrent sessions |
TERMINAL_MCP_IDLE_TIMEOUT | optional | Seconds before auto-close (default 1800) |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add terminal-mcp -- uvx terminal-mcp==0.3.1Add to
claude_desktop_config.json{
"mcpServers": {
"terminal-mcp": {
"args": [
"terminal-mcp==0.3.1"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"terminal-mcp": {
"args": [
"terminal-mcp==0.3.1"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"terminal-mcp": {
"args": [
"terminal-mcp==0.3.1"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.terminal-mcp]
command = "uvx"
args = ["terminal-mcp==0.3.1"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: session_create, session_send, session_resize, session_read, session_close, session_list, session_exec.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json