terminal-mcp
About
MCP server for interactive terminal sessions — SSH, REPLs, database CLIs, TUI apps
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
TERMINAL_MCP_MAX_SESSIONS TERMINAL_MCP_IDLE_TIMEOUTClaude Code
claude mcp add --env TERMINAL_MCP_MAX_SESSIONS= --env TERMINAL_MCP_IDLE_TIMEOUT= terminal-mcp -- uvx terminal-mcp
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"terminal-mcp","command":"uvx","args":["terminal-mcp"],"env":{"TERMINAL_MCP_MAX_SESSIONS":"","TERMINAL_MCP_IDLE_TIMEOUT":""}}'
JSON
{
"mcpServers": {
"terminal-mcp": {
"command": "uvx",
"args": [
"terminal-mcp"
],
"env": {
"TERMINAL_MCP_MAX_SESSIONS": "",
"TERMINAL_MCP_IDLE_TIMEOUT": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.