Remote Session Mcp MCP Server

A Model Context Protocol (MCP) server that enables AI assistants to manage persistent SSH sessions and execute commands on remote servers.

Local serverstdio

What is the Remote Session Mcp Server?

Remote Session Mcp is an MCP project maintained in the kayoch1n/remote-session-mcp repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server that enables AI assistants to manage persistent SSH sessions and execute commands on remote servers”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using uv. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
hostsList all hosts from ~/.ssh/config
createCreate a persistent SSH session
executeExecute a command (state persists)
closeClose a session
sessionsList active sessions
uploadUpload a file to remote server
downloadDownload a file from remote server

How to install the Remote Session Mcp Server

{
  "mcpServers": {
    "remote-session": {
      "command": "uv",
      "args": [
        "run",
        "remote-session-mcp"
      ],
      "cwd": "/path/to/sshmcp"
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.