Best MCP Servers for Command Line & Terminal (2026)

The best MCP servers for the command line — let AI agents run terminal commands, manage processes, and drive CLI tools with scoped, auditable access.

Browse all Command Line & Terminal servers →
  1. 1
    E
    Execkitblinkingbit-oss
    Most popular in this category on AllMCPs
    Stateful, structured, auditable shell sessions for AI agents over local, SSH, and Docker. Secret redaction, output budgeting, SSH host-key verification, and a loopback read-only browser viewer that streams the live transcript.
    0 0 0
  2. 2
    M
    Mcp Ssh Managerbvisible
    Community pick
    Manage multiple SSH servers from one MCP: command execution, file transfer/rsync, database dump/import/query (MySQL/PostgreSQL/MongoDB), backups & restore, health monitoring, persistent sessions, tunnels, ProxyJump/bastion, and opt-in per-server security modes (readonly/restricted) with audit log. Linux, macOS & Windows OpenSSH.
    0 0 0
  3. 3
    B
    Bashcapsulerun
    Community pick
    Sandboxed bash for agents. Run untrusted commands in WebAssembly sandboxes with no setup required.
    0 0 0
  4. 4
    C
    Cygnus Ssh Mcpcygnussystems
    Community pick
    MCP server for SSH-based control of remote Linux, macOS, and Windows servers with 46 purpose-built tools instead of one generic command-runner: line-level file editing (no download/edit/upload round-trip), background task launch/monitor/kill, real sudo support, host aliases, recursive directory ops, archive create/extract, and full Unicode via SFTP (avoids PowerShell OEM code page corruption on Windows targets). pip install cygnus-ssh-mcp or uvx cygnus-ssh-mcp.
    0 0 0
  5. 5
    H
    Hopdanmartuszewski
    Community pick
    Fast SSH connection manager with TUI dashboard and MCP server for discovering, searching, and executing commands on remote hosts.
    0 0 0
  6. 6
    R
    Rootpilot McpEaston-OU
    Community pick
    Safe, read-only SSH diagnostics for Linux/Docker servers: a fixed 38-command whitelist (no arbitrary execution), secret redaction, per-command timeouts. Collects evidence; your model does the reasoning. npx @rootpilot/mcp-ssh-diagnose
    0 0 0
  7. 7
    M
    Mcp Remote Sshfaizbawa
    Community pick
    Full SSH access for AI agents with secret-safe environment injection and automatic output redaction. Persistent sessions, structured execution, SFTP, port forwarding — secrets are fed via stdin (invisible to ps) and scrubbed from all tool responses before reaching the LLM. uvx mcp-remote-ssh
    0 0 0
  8. 8
    F
    Forgeferodrigop
    Community pick
    Terminal MCP server for AI coding agents with persistent PTY sessions, ring-buffer incremental reads, headless xterm screen capture, multi-agent orchestration, and a real-time web dashboard.
    0 0 0
  9. 9
    L
    Localhost McpHasanJahidul
    Community pick
    Inspect, manage, and kill local dev servers. Lists what's listening on each port (pid, framework, project, uptime, memory, cpu), diagnoses port conflicts with free alternatives nearby, finds zombie processes, and kills by pid or port with a dry-run default.
    0 0 0
  10. 10
    T
    Terminal History McpHasanJahidul
    Community pick
    Full-text search over your shell history (zsh / bash / fish) via SQLite FTS5. Local-only. 11-pattern secret redaction runs BEFORE insert. Captures cwd / exit code / duration via opt-in shell hook. Tools: searchhistory, recentindir, failedcommands, commandchains, reindex.
    0 0 0

Frequently asked questions

What is the best MCP server for terminal access?

Shell and terminal MCP servers that support allow-lists and working-directory limits are the most trusted. This page ranks command-line MCP servers by real usage.

How do I stop an agent from running dangerous commands?

Use a server that supports command allow-lists or confirmation prompts, run it as a low-privilege user, and scope it to a specific working directory. Never grant unrestricted root shell access.

Can these run long-running processes?

Some manage background processes and stream output; others are built for one-shot commands. Check each listing for process-management support.

More best-of guides

Best for DatabasesBest for DevelopersBest for Web Search & ScrapingBest for SecurityBest for Browser AutomationBest for Slack & CommunicationBest for Memory & KnowledgeBest for Finance & Fintech