MCP server for interactive terminal sessions (SSH, REPLs, database CLIs)
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add terminal -- uvx terminal-mcp~/.codex/config.toml
[mcp_servers.terminal]
command = "uvx"
args = ["terminal-mcp"]
# codex mcp add terminal -- uvx terminal-mcp~/.cursor/mcp.json
{
"mcpServers": {
"terminal": {
"command": "uvx",
"args": [
"terminal-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"terminal": {
"type": "stdio",
"command": "uvx",
"args": [
"terminal-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"terminal": {
"command": "uvx",
"args": [
"terminal-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"terminal": {
"command": "uvx",
"args": [
"terminal-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"terminal": {
"command": "uvx",
"args": [
"terminal-mcp"
]
}
}
}