ssh-mcp
Enables running commands on Linux servers over SSH in exec mode, returning stdout, stderr and exit code for each command.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ssh-mcp
A small local MCP server that lets Claude (desktop app) run commands on network devices and servers over SSH, using Paramiko.
Companion to switch-console-mcp (serial console).
Tools
Tool | What it does |
| Lists configured targets (name, host, port, mode). Never returns credentials. |
| Checks that a target is reachable and the login works. |
| Runs a list of commands on a target and returns the output. |
Modes (per target)
shell– interactive CLI for switches, routers, firewalls. All commands run in one session, soenable→configure terminal→ interface commands work in order.--More--style paging is answered automatically.exec– one command per channel for Linux / Windows OpenSSH. Returns stdout, stderr and exit code for each command.
Related MCP server: MCP SSH Server
Requirements
Python 3.10+
Claude desktop app
pip install -r requirements.txtWorks with both mcp 1.x (FastMCP) and 2.x (MCPServer).
Setup
Copy
ssh_mcp.pyto the machine that can reach your devices.Copy
ssh_targets.example.jsontossh_targets.jsonand fill in your devices (passwordorkey_file, optionalkey_passphrase,mode).Add the server to your Claude desktop config (Windows:
%APPDATA%\Claude\claude_desktop_config.json) inside"mcpServers"— seeclaude_desktop_config.ssh.example.json.Fully restart the Claude desktop app.
Environment variables
Variable | Default | Meaning |
|
| Targets file |
|
|
|
|
| Output log |
Example
Ask Claude: "On lab-switch, show the interface status."
Claude calls ssh_run with target="lab-switch" and commands=["show interfaces status"].
Security notes
Credentials live only in
ssh_targets.jsonon your machine (it is in.gitignore). Claude sees target names and command output, never passwords.With
SSH_STRICT_HOST_KEYS=falseunknown host keys are auto-accepted — fine for a lab, not for production. Set it totrueonce your hosts are inknown_hosts.ssh_rungives Claude full CLI access to every configured target. Only add devices you are comfortable having Claude change, and prefer least-privilege accounts.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
- browser-sshDeprecatedcom.browserssh
Scoped, audited SSH exec, sessions, and SFTP on your saved servers without exposing credentials
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables SSH remote access to servers through Claude, allowing users to execute commands, transfer files via SFTP, and manage multiple remote connections using natural language.129MIT
- AlicenseNot gradedqualityNot gradedmaintenanceConnects Claude to remote servers via SSH to execute commands, manage files, and browse directories. It allows users to add, edit, and switch between multiple server configurations through natural language conversations.-
- AlicenseAqualityDmaintenanceEnables Claude to connect to servers via SSH, execute commands, transfer files, and manage connections through natural language.921 npm1MIT
- -licenseNot gradedqualityNot gradedmaintenanceEnables Claude Code to control remote servers via SSH for automated deployment, testing, and operations, including command execution and file transfer.4-