ssh-mcp
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.
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
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 morefirecrawl
The context API to search, scrape, and interact with the web at scale. 🔥
markitdown
Python tool for converting files and office documents to Markdown.
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
langflow
Langflow is a powerful tool for building and deploying AI-powered agents and workflows.
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.