About sftp-ssh-mcp
sftp-ssh-mcp is a local MCP server for SSH and SFTP control of Linux and Windows systems. It lets LLMs and other MCP clients run shell commands over SSH, with password or key-based authentication.
Key features
- 01Run shell commands over SSH
- 02Connect to Linux and Windows hosts
- 03Control systems through SFTP
- 04Authenticate with password or private key
Use cases
- 01Run remote shell commands from an MCP client
- 02Configure an SSH connection with a password
- 03Connect to a system using a private key
MCP support
The MCP server exposes SSH and SFTP control to LLMs and other MCP clients, including execution of shell commands over SSH.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
4Saved tool list · updated 3w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| localPath | string | Yes | Local file path to upload |
| remotePath | string | Yes | Remote path to save the file |
Details
From the project READMESFTP-SSH MCP Server is a local Model Context Protocol (MCP) server that exposes SFTP-SSH control for Linux and Windows systems, enabling LLMs and other MCP clients to execute shell commands securely via SSH.
Client Setup
You can configure Claude Desktop to use this MCP Server.
host: Hostname or IP of the Linux or Windows serverport: SSH port (default: 22)user: SSH usernamepassword: SSH password (or usekeyfor key-based auth) (optional)key: Path to private SSH key (optional)
{
"mcpServers": {
"sftp-ssh-mcp": {
"command": "npx",
"args": [
"sftp-ssh-mcp",
"-y",
"--",
"--host=1.2.3.4",
"--port=22",
"--user=root",
"--password=pass",
"--key=path/to/key"
]
}
}
}
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.