2native SSH MCP Server logo

2native SSH MCP Server

Go-based MCP server for remote SSH commands and file transfers while keeping credentials on the local machine.

Install 2native SSH MCP Server

Run the project’s own setup commands, in order.

Setup steps from the project

2native SSH MCP Server installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    go build -o 2native-ssh-mcp.exe .
    
  2. 2. Start the server
    2native-ssh-mcp.exe --config-file config.json
    
  3. 3. Start the server
    2native-ssh-mcp.exe start --config-file config.json --http-addr 127.0.0.1:8338
    

Overview

2native SSH MCP Server connects MCP clients to remote hosts over SSH for command execution, sessions, and file transfer. A local Go process handles authentication and SSH traffic, so credentials remain outside the model context. It exposes four MCP tools and supports both stdio and streamable HTTP operation. Reach for it when an agent needs controlled access to remote systems, including jump-host connections, long-running commands, or resumable transfers.

Use cases

  • Run maintenance commands on remote Linux hosts
  • Transfer files and directories over SSH
  • Inspect large command output locally
  • Reconnect to long-running background jobs
  • Reach private hosts through a bastion

Key features

  • Remote command execution with background jobs
  • SSH file transfer with resume and SHA-256 verification
  • Local credential isolation
  • ProxyJump-style bastion access
  • Destructive-command approval and audit logging
  • stdio and streamable HTTP transports

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 78d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit11d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How 2native SSH MCP Server works

What 2native SSH MCP Server does

2native SSH MCP Server gives an MCP-compatible AI client access to remote machines through SSH. The local process handles the connection, authentication, command execution, and file operations; the model interacts with MCP tools rather than receiving the underlying SSH credentials.

Four tools are exposed:

  • list-servers discovers configured SSH server entries.
  • execute-command runs commands remotely, with a background mode for long-running work.
  • session provides session-oriented SSH access.
  • file-transfer handles file operations between the local and remote systems.

Command output containing ANSI control sequences is cleaned up. Large output can be written to a local .ssh-mcp-out/ directory so an agent can inspect it without rerunning the command.

How it works

The server can run as a local stdio process launched by an MCP client or as a persistent streamable HTTP daemon. In either mode, the process creates SSH connections to configured hosts and keeps authentication material local. Connections support lazy establishment and keepalive behavior.

Remote commands can run without allocating a PTY by default. A timeout can terminate the remote process group, while background jobs can survive a disconnected client and be attached again later. File transfers support recursive directories, atomic writes, deduplication, resume behavior, SHA-256 verification, and progress notifications.

For network layouts that require an intermediary, the via setting supports OpenSSH ProxyJump-style access through a bastion. Each hop can authenticate independently, and agent forwarding is not used.

Setup and configuration

Build the Go binary with:

bash
go build -o 2native-ssh-mcp.exe .

Start it in stdio mode by supplying a configuration file:

bash
2native-ssh-mcp.exe --config-file config.json

For a persistent HTTP service, use the start command and bind an address:

bash
2native-ssh-mcp.exe start --config-file config.json --http-addr 127.0.0.1:8338

SSH credentials can be configured through the configuration file or environment variables. Supported authentication methods include passwords, private keys, ssh-agent, Pageant, and keyboard-interactive two-factor authentication. Environment variables can provide a fallback for unattended two-factor prompts.

Tools and capabilities

Security controls include command allowlists and blocklists, path allowlists, configuration-permission checks, and optional approval prompts for destructive commands. The ask-destructive approval mode uses MCP elicitation when the client supports it; clients without that capability use the server's stated fallback behavior.

Every command can be recorded in a JSONL audit log. Entries form a SHA-256 hash chain, and the audit-verify function can identify later changes to the chain. Logging can use batched or write-through persistence.

The server also negotiates SSH algorithms for compatibility with older hosts and supports proxy connections. Its transfer handling includes checksums and progress reporting, while command handling includes output capture and background execution.

Limitations and notes

The server exposes SSH access to whatever hosts and permissions are configured, so command and path restrictions should be selected for the deployment. Destructive-command approval is optional rather than universally enforced. MCP elicitation is required for interactive approval prompts; clients that cannot provide it follow the server's fallback behavior. The HTTP example binds to loopback, which limits access to the local machine unless deployment settings are changed.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about 2native SSH MCP Server

2native SSH MCP Server is an MCP server that connects AI clients to remote hosts over SSH while keeping credentials in the local process. Its main tools are list-servers, execute-command, session, and file-transfer, covering host discovery, remote commands, SSH sessions, and file operations.

Build it from source with Go, then launch the binary with a configuration file. Use `--config-file config.json` for stdio mode, or run `start --config-file config.json --http-addr 127.0.0.1:8338` for the streamable HTTP daemon.

SSH credentials stay in the local server process and are not placed in the model context. The local process performs authentication and SSH communication on behalf of the MCP client.

Yes. The `via` option supports OpenSSH ProxyJump-style connections through a bastion host. Authentication is handled independently for each hop, and SSH agent forwarding is not used.

Yes. It provides standard stdio and streamable HTTP MCP transports, so Cursor can use it as an MCP server when configured with the corresponding launch or HTTP connection settings.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG Preview2native SSH MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/2native-ssh-mcp-server?style=directory)](https://allmcps.com/mcp/2native-ssh-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/2native-ssh-mcp-server"><img src="https://allmcps.com/api/badge/2native-ssh-mcp-server?style=directory" alt="2native SSH MCP Server on AllMCPs" /></a>