
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A lightweight Rust SSH client MCP server that lets LLMs connect to SSH servers, run remote commands, set up port forwarding, and manage multiple sessions via password, key, or SSH agent authentication.
SSH-MCP: an SSH client server with Model Context Protocol integration is cataloged as an MCP server attributed to mingyang91. A lightweight Rust SSH client MCP server that lets LLMs connect to SSH servers, run remote commands, set up port forwarding, and manage multiple sessions via password, key, or SSH agent authentication. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for SSH-MCP: an SSH client server with Model Context Protocol integration are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It exposes SSH client capabilities as MCP commands so LLMs can connect to SSH servers, execute commands, and manage sessions.
Yes, port forwarding is enabled by default through the port_forward Cargo feature.
README.md · 76537d5d5e84 · Fetched 2026-11-13 10:28:55 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Rust implementation of an SSH client server with Model Context Protocol (MCP) integration, allowing Large Language Models (LLMs) to connect to a SSH server and utilize SSH features.
Lightweight and Efficient:
ssh-mcp: only 4.3MB binary size, 1.8MB memory footprintssh-mcp-stdio: only 1.5MB binary size, 2.3MB memory usagedocker: only 27.5MB final image sizeport_forward feature)You have two options for installation:
No Rust toolchain required - just Docker!
# Pull the pre-built image from Docker Hub
docker pull mingyang91/ssh-mcp
# Run the server
docker run -p 8000:8000 mingyang91/ssh-mcp
Or build the image yourself:
# Build the Docker image
docker build -t ssh-mcp .
# Run the server
docker run -p 8000:8000 ssh-mcp
Prerequisites:
cargo install ssh-mcp
To use SSH-MCP with mcpServers, add the following configuration to your mcpServers JSON configuration:
{
"mcpServers": {
"ssh": {
"command": "ssh-mcp-stdio",
"args": []
}
}
}
{
"mcpServers": {
"ssh": {
"command": "docker",
"args": ["run", "--entrypoint", "ssh-mcp-stdio", "-i", "--rm", "ssh-mcp"]
}
}
}
This will register the SSH handler, allowing LLMs to manage SSH connections through your MCP server.
{
"command": "ssh_connect",
"params": {
"address": "example.com:22",
"username": "user",
"password": "password"
}
}
{
"command": "ssh_connect",
"params": {
"address": "example.com:22",
"username": "user",
"key_path": "/path/to/private_key"
}
}
{
"command": "ssh_connect",
"params": {
"address": "example.com:22",
"username": "user"
}
}
Response:
{
"session_id": "c8a3b2e1-4f5d-6e7c-8a9b-0c1d2e3f4a5b",
"message": "Successfully connected to user@example.com:22",
"authenticated": true
}
If connection fails:
{
"error": "Failed to connect: Connection refused"
}
{
"command": "ssh_execute",
"params": {
"session_id": "c8a3b2e1-4f5d-6e7c-8a9b-0c1d2e3f4a5b",
"command": "ls -la"
}
}
Response:
{
"stdout": "total 32\ndrwxr-xr-x 5 user group 4096 Jan 1 12:00 .\ndrwxr-xr-x 25 user group 4096 Jan 1 12:00 ..\n-rw-r--r-- 1 user group 142 Jan 1 12:00 file.txt\n",
"stderr": "",
"exit_code": 0
}
Note: Port forwarding is enabled by default via the port_forward feature flag.
{
"command": "ssh_forward",
"params": {
"session_id": "c8a3b2e1-4f5d-6e7c-8a9b-0c1d2e3f4a5b",
"local_port": 8080,
"remote_address": "internal-server",
"remote_port": 80
}
}
Response:
{
"local_address": "127.0.0.1:8080",
"remote_address": "internal-server:80",
"active": true
}
{
"command": "ssh_disconnect",
"params": {
"session_id": "c8a3b2e1-4f5d-6e7c-8a9b-0c1d2e3f4a5b"
}
}
Response:
"Session c8a3b2e1-4f5d-6e7c-8a9b-0c1d2e3f4a5b disconnected successfully"
{
"command": "ssh_list_sessions"
}
Response:
[
"c8a3b2e1-4f5d-6e7c-8a9b-0c1d2e3f4a5b",
"d9b4c3a2-5e6f-7g8h-9i0j-1k2l3m4n5o6p"
]
The server can be configured through the following environment variables:
| Variable | Description | Default |
|---|---|---|
| MCP_PORT | Port for the MCP server | 8000 |
| RUST_LOG | Logging level | info |
The project uses Cargo features to enable/disable certain functionality:
| Feature | Description | Default |
|---|---|---|
| port_forward | Enables SSH port forwarding support | Enabled |
To build without port forwarding:
cargo build --release --no-default-features
Contributions are welcome! Please feel free to submit a Pull Request.
This project uses GitHub Actions for continuous integration and deployment:
CARGO_REGISTRY_TOKEN, DOCKERHUB_USERNAME, and DOCKERHUB_TOKEN secrets in your GitHub repository settingsThis project is licensed under the MIT License - see the LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for SSH-MCP: an SSH client server with Model Context Protocol integration from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/ssh-mcp-mingyang91)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.