RemoteShell MCP

RemoteShell MCP

A server that enables LLMs to securely manage and execute commands on remote SSH servers.

Category
Visit Server

README

๐Ÿ”— RemoteShell MCP

A Model Context Protocol (MCP) server that enables LLMs to securely manage and execute commands on remote SSH servers.

โœจ Features

  • ๐Ÿ” Secure credential management - Save SSH server profiles once, no need to retype credentials
  • ๐Ÿ’ป Remote command execution - Execute non-interactive shell commands remotely
  • ๐Ÿ“ File operations - Upload/download files via SFTP
  • ๐Ÿค– LLM-powered - Built with FastMCP and Paramiko

๐Ÿš€ Installation

For Claude Code users

claude mcp add remoteshell --scope user -- uvx remoteshell-mcp

For other MCP clients

Add this to your MCP client configuration:

{
  "mcpServers": {
    "remoteshell": {
      "command": "uvx",
      "args": ["remoteshell-mcp"]
    }
  }
}

๐Ÿ“– Usage

Getting started is easy! You can either:

  1. ๐Ÿค– Let the LLM configure for you - Simply tell the LLM your host, username, password, etc., and ask it to set up the server configuration
  2. โš™๏ธ Manual configuration - Directly edit the configuration file at ~/.config/remoteshell/hosts.json

๐Ÿ’พ Configuration & Storage

RemoteShell securely stores your server configurations in:

~/.config/remoteshell/hosts.json

๐Ÿ”ง Configuration Management

  • LLM-managed: The LLM automatically manages this file using save_server and remove_server tools
  • Manual editing: You can also directly edit the JSON file for advanced configurations

๐Ÿ“‹ Example Configuration

{
  "version": 1,
  "servers": {
    "production-server": {
      "host": "1.2.3.4",
      "user": "root",
      "port": 22,
      "auth_type": "password",
      "password": "your_secure_password",
      "last_connected": null
    },
    "staging-server": {
      "host": "staging.example.com",
      "user": "ubuntu",
      "port": 22,
      "auth_type": "private_key",
      "private_key": "~/.ssh/id_rsa",
      "last_connected": "2025-01-01T00:00:00+00:00"
    }
  }
}

๐Ÿ”’ Security Note

On POSIX systems, protect your configuration file:

chmod 600 ~/.config/remoteshell/hosts.json

๐Ÿ› ๏ธ Available Tools

RemoteShell provides the following MCP tools for remote server management:

๐Ÿ“‹ list_servers()

Purpose: Display all saved server profiles with their connection status and last activity.

When to use:

  • User asks to "connect to server" or "show machines"
  • No specific connection_id is provided
  • Need to see available servers

Example: "Show me which servers I have configured" โ†’ Returns list of all saved servers with online status

๐Ÿ’พ save_server(connection_id, host, user, auth_type, credential, port)

Purpose: Create or update a server profile with authentication credentials.

Parameters:

  • connection_id: Unique identifier for the server (e.g., "production", "staging")
  • host: Server hostname or IP address
  • user: SSH username
  • auth_type: "password" or "private_key"
  • credential:
    • For password: Plain text password string
    • For private_key: File path (e.g., ~/.ssh/id_rsa) or PEM key content
  • port: SSH port (optional; defaults to 22 and keeps the existing saved port if omitted)

When to use:

  • Adding a new server configuration
  • Updating credentials after authentication failure
  • Changing server connection details

๐Ÿ—‘๏ธ remove_server(connection_id)

Purpose: Permanently delete a server profile from storage.

When to use:

  • User explicitly requests to remove or forget a server
  • Server is no longer accessible or needed

โš ๏ธ Warning: This action cannot be undone

โšก execute_command(connection_id, command)

Purpose: Execute non-interactive shell commands remotely and return results.

Returns: stdout, stderr, and exit_code

When to use:

  • Running system commands, scripts, or utilities
  • Checking server status, disk usage, process lists
  • File operations, package management, etc.

When NOT to use:

  • Interactive programs (vim, htop, top)
  • Commands requiring manual input ([Y/n] prompts) - unless using flags like -y

Example: execute_command(connection_id="production", command="df -h")

๐Ÿ“ค upload_file(connection_id, local_path, remote_path)

Purpose: Upload files from your local machine to a remote server via SFTP.

Parameters:

  • local_path: Path to the file on your local machine
  • remote_path: Destination path on the remote server

Notes:

  • If remote_path is a directory, the original filename is preserved
  • If local_path is omitted, server selects a default and returns it in response

๐Ÿ“ฅ download_file(connection_id, remote_path, local_path)

Purpose: Download files from a remote server to your local machine via SFTP.

Parameters:

  • remote_path: Path to the file on the remote server
  • local_path: Destination path on your local machine

Notes:

  • If local_path is omitted, defaults to: ~/.config/remoteshell/downloads/<connection_id>/<basename>

๐Ÿงช Development

Local Development Setup

For local development, use this MCP configuration:

{
  "mcpServers": {
    "remoteshell": {
      "command": "uv",
      "args": ["--directory", "/absolute/path/to/remoteShell-mcp", "run", "remoteshell-mcp"]
    }
  }
}

Running Tests

uv run pytest

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured