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.

Top 10 · ranked by installs, upvotes, stars and views · refreshed hourly

  1. Ssh MCP logo

    #1 Ssh MCP

    tufantunc

    Why it’s hereMost popular in this category on AllMCPs

    MCP server exposing SSH control for Linux and Windows servers via Model Context Protocol. Securely execute remote shell commands with password or SSH key authentication.

    Upvotes: 0Installs: 0GitHub stars: 840
    Install
  2. Why it’s hereCommunity 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.

    Upvotes: 0Installs: 0GitHub stars: 525
    Install
  3. Iterm MCP logo

    #3 Iterm MCP

    ferrislucas

    Why it’s hereCommunity pick

    A Model Context Protocol server that provides access to iTerm. You can run commands and ask questions about what you see in the iTerm terminal.

    Upvotes: 0Installs: 0GitHub stars: 571
    Install
  4. Why it’s hereCommunity pick

    An MCP server that lets AI agents act like a human at a real terminal, local or over SSH.

    Upvotes: 0Installs: 0GitHub stars: 60
    Install
  5. Why it’s hereCommunity pick

    MCP server for AI CLI tools (Claude, Codex, and Gemini) with background process management

    Upvotes: 0Installs: 0GitHub stars: 27
    Install
  6. Hop logo

    #6 Hop

    danmartuszewski

    Why it’s herePopular pick — 1 upvotes

    Fast SSH connection manager with TUI dashboard and MCP server for discovering, searching, and executing commands on remote hosts.

    Upvotes: 1Installs: 0GitHub stars: 64
    Install
  7. Why it’s hereCommunity pick

    MCP server for SSH operations with built-in diagnostics

    Upvotes: 0Installs: 0GitHub stars: 6
    Install
  8. Why it’s hereCommunity pick

    Run approved shell commands on remote computers through AI assistants. The remote machine needs only curl and bash, with no SSH access or installed agent.

    Upvotes: 0Installs: 0GitHub stars: 3
    Install
  9. Fauxnix logo

    #9 Fauxnix

    20000419

    Why it’s hereCommunity pick

    bash for AI agents on Windows via deterministic bash→PowerShell translation — no WSL, VM, or bash toolchain. MCP bash tool with GNU-style output, bash-style errors, coreutils exit codes, session-persisted cwd/env across calls, and per-file UTF-8/GBK sniffing (GBK files grep correctly, unlike Git Bash). Unsupported bash constructs fail loudly with the construct named; native commands (git/node/npm) pass through with argv quoting. npm install -g fauxnix-cli; verified with Claude Code, Codex, OpenCode, Kimi Code and Qwen Code.

    Upvotes: 0Installs: 0GitHub stars: 903
    Install
  10. Sage logo

    #10 Sage

    PsYcGoD

    Why it’s hereCommunity pick

    Local-first CLI and MCP wrapper for AI coding agents. Routes shell commands through sage run --, stores command history locally, and returns compressed terminal output to reduce context noise.

    Upvotes: 0Installs: 0GitHub stars: 11
    Install

Which Command Line & Terminal MCP server should you use?

When choosing a Model Context Protocol server for Command Line & Terminal, select verified or official listings if you need strict API security guarantees. For rapid local dev testing with Claude or Cursor, community-maintained tools offer zero-setup configuration blocks ready to copy-paste.

Frequently asked questions about Command Line & Terminal MCP servers

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.