</>MCP Agents Market
MCP Server

ssh-mcp

by tufantunc752TypeScriptUpdated 2026-09-20

MCP server exposing SSH control for Linux servers via Model Context Protocol.

MCP Agents Market is an independent directory. We are not affiliated with tufantunc or ssh-mcp, and we do not host or distribute it. All links point to the official GitHub repository.

Claude CodeClaude DesktopCursorWindsurf

ssh-mcp is a security-focused MCP server that provides AI agents with controlled SSH access to remote Linux and Windows hosts. It implements command classification, role-based authorization, human-in-the-loop approval workflows, and comprehensive audit logging to manage the security risks of giving LLMs shell access. The server offers 14 tools for executing commands, managing sessions, transferring files via SFTP, and controlling processes, with configurable policies that restrict destructive operations based on host groups and user roles.

Key Features

14 MCP tools including read-only commands, arbitrary command execution, sudo operations, SFTP file transfers, and process signaling
Interactive and background SSH sessions with persistent state (working directory, environment variables)
Role-based authorization matrix (viewer/operator/admin) across environment tiers (dev/staging/prod)
Human-in-the-loop approval gates for destructive operations with configurable policies (auto/ask-destructive/ask-all/deny)
Streaming file transfers that bypass model context for large files with strict permission verification
ProxyJump support for reaching internal hosts through bastion servers without agent forwarding
SSH CA certificate authentication for enterprise deployments
Enforced config file permission checks (0600) with platform-specific ACL validation on Windows

Use Cases

  • 01Enabling AI coding assistants to deploy applications, restart services, and manage remote development servers
  • 02Allowing agents to investigate production incidents by reading logs and checking system status with read-only access
  • 03Automating build and deployment workflows across staging and production environments with approval gates
  • 04Monitoring long-running processes through background sessions that tail logs or track build progress
  • 05Transferring large files or archives between local and remote systems without consuming model context
  • 06Managing internal infrastructure through bastion hosts with controlled SSH tunneling

Related MCP Servers

View more

ssh-mcp — FAQ

What is ssh-mcp?+

ssh-mcp is a Model Context Protocol server that gives AI agents controlled SSH access to remote Linux and Windows servers. It includes command classification, role-based policies, approval workflows, and audit logging to manage the security risks of LLM shell access.

How do I install ssh-mcp?+

Install globally via npm with 'npm install -g ssh-mcp', then create a TOML config file at the platform-specific path (~/.config/ssh-mcp/config.toml on Linux, ~/Library/Application Support/ssh-mcp/config.toml on macOS). The server refuses all operations until you configure at least one profile with host, user, and authentication details.

Which MCP clients work with ssh-mcp?+

ssh-mcp works with Claude Code, Claude Desktop, Cursor, and Windsurf. Connect via stdio transport by adding the server to your client's MCP configuration with the 'ssh-mcp' command.

Do I need API keys or credentials for ssh-mcp?+

You need SSH credentials for the remote hosts: either an SSH agent (recommended), SSH keys referenced in the config, or passwords/passphrases provided via environment variables like SSH_MCP_PASSWORD. Never pass credentials as CLI arguments. For sudo operations, set SSH_MCP_SUDO_PASSWORD.

Is ssh-mcp free to use?+

Yes, ssh-mcp is open source and distributed under a permissive license. It's available on npm and GitHub for free use.

Does ssh-mcp work with Windows servers?+

Yes, most features work with Windows OpenSSH, including command execution, SFTP operations, and background sessions. Interactive sessions require a POSIX shell and don't work with cmd.exe or PowerShell. Streaming file transfers are disabled on Windows clients due to local permission verification limitations.

How do I install ssh-mcp?+

Open the source repository on GitHub and follow its README. ssh-mcp is a mcp server — MCP Agents Market links you directly to the official repo.

Is ssh-mcp free?+

ssh-mcp is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches