Remote Session MCP Server

Remote Session MCP Server

remote-session-mcp•bykayoch1n

An MCP server that lets AI assistants create and drive persistent SSH sessions on remote servers, with state that carries across commands.

License: Not specified•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Maintains interactive SSH shell sessions so working directories, environment variables, and other state persist across multiple commands.
  • •Provides tools to list configured hosts, create and close sessions, list active sessions, execute commands, and upload or download files.
  • •Parses the SSH config file for connection parameters, avoiding hardcoded credentials.

BEST FOR

  • •AI-driven deployment and debugging workflows where commands build on each other.
  • •Multi-step server management tasks such as navigating to a directory, pulling code, installing dependencies, and restarting a service in one session.

ABOUT REMOTE-SESSION-MCP

Remote Session MCP Server is cataloged as an MCP server attributed to kayoch1n. An MCP server that lets AI assistants create and drive persistent SSH sessions on remote servers, with state that carries across commands. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Remote Session MCP Server 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.

FREQUENTLY ASKED QUESTIONS

Do sessions stay open indefinitely?

No; sessions auto-close after one hour of inactivity by default, and this timeout is configurable.

What platforms does the server support?

It is Linux/POSIX only and requires the remote server to support interactive shell sessions.

Upstream README

View this exact version on GitHub

README.md · dfcc78650fe1 · Fetched 2026-11-13 13:25:17 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.

Remote Session MCP Server

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

Key Advantages

Persistent Sessions with State

Unlike SSH tools that execute single commands in isolation, this server uses invoke_shell() to maintain interactive shell sessions where state persists across multiple commands:

CapabilityPersistent SessionsSingle-Command
Working directory (cd)PersistsLost after each command
Environment variables (export)PersistsLost after each command
Multi-step workflowsNatural flowRequires manual context passing
AI context awarenessTracks pwd automaticallyNo state tracking

Typical workflow:

create → execute("cd /app") → execute("export ENV=prod") → execute("./deploy.sh") → close

This is ideal for AI-driven deployment, debugging, and server management tasks where commands build on each other.

Automatic SSH Config Integration

  • Parses ~/.ssh/config automatically for connection parameters
  • Supports key-based authentication, custom ports, jump hosts, and all standard SSH options
  • No need to hardcode credentials or connection details

Installation

# Using uv (recommended)
uv pip install -e .

# Or using pip
pip install -e .

Usage

1. Configure SSH

Ensure your servers are configured in ~/.ssh/config:

Host production
    HostName 192.168.1.100
    User deploy
    IdentityFile ~/.ssh/id_rsa

2. Run the MCP Server

remote-session-mcp
# Or: python -m remote_session_mcp

3. Claude Code Integration

Create .claude/settings.json or mcp.json in your project:

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

4. Available Tools

ToolDescription
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

Example: Deploy an Application

// 1. Create session
{"tool": "create", "arguments": {"host": "production"}}

// 2. Navigate and deploy (state persists)
{"tool": "execute", "arguments": {"session_id": "session_abc", "command": "cd /var/www/myapp"}}
{"tool": "execute", "arguments": {"session_id": "session_abc", "command": "git pull"}}
{"tool": "execute", "arguments": {"session_id": "session_abc", "command": "npm install"}}
{"tool": "execute", "arguments": {"session_id": "session_abc", "command": "sudo systemctl restart myapp"}}

// 3. Close session
{"tool": "close", "arguments": {"session_id": "session_abc"}}

Configuration (Optional)

Create ~/.remote-session/config.json for custom settings:

{
  "enable_raw_output": false,
  "ssh_config_path": "~/.ssh/config"
}
OptionDefaultDescription
enable_raw_outputfalseReturn raw output with only ANSI codes removed
ssh_config_path~/.ssh/configCustom path to SSH config file

Limitations

  • Linux/POSIX Only - Assumes POSIX-compatible shells and commands (pwd, echo $?)
  • Interactive Shell Required - Remote server must support interactive shell sessions
  • Session Timeout - Sessions auto-close after 1 hour of inactivity (configurable)

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Remote Session MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/remote-session-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

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.

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps