Skip to main content
Glama
MohamedCHAMI

vps-remote

by MohamedCHAMI

πŸ“– Overview

The VPS Remote Control MCP (Model Context Protocol) server allows your local AI assistant to directly execute commands and transfer files on any of your remote servers via SSH and SCP.

Instead of manually logging into your VPS to check logs, restart services, or deploy code, you simply tell your AI to do it. The AI uses this MCP server to seamlessly execute the necessary bash commands directly on your server.

🌟 Killer Use Case: Seamless Session Transfer to VPS

Tired of your local machine doing all the heavy lifting? With this MCP server, you can effectively "transfer" your local AI session (from Claude, Agy, Codex, etc.) straight to your VPS!

You can instruct your AI to:

  1. Package your local code and upload it to the VPS using scp_upload.

  2. Run installation scripts, start docker containers, or execute long-running build tasks on the VPS using execute_ssh_command.

  3. Keep the workflow going remotelyβ€”acting as an always-on remote worker while your local machine stays fast and clean!

How it Works

sequenceDiagram
    participant User
    participant AI as AI (e.g., agy / Claude)
    participant MCP as MCP Server (Local)
    participant VPS as VPS (Remote Server)
    
    User->>AI: "Check the nginx logs on my VPS"
    AI->>MCP: Call tool: execute_ssh_command
    Note over MCP: Safely spawns SSH process
    MCP->>VPS: ssh user@host 'tail -n 50 /var/log/nginx/error.log'
    VPS-->>MCP: Returns logs
    MCP-->>AI: Passes logs back to AI
    AI-->>User: "Here are the errors I found in your logs..."

Related MCP server: SSH MCP Server

✨ Features

  • πŸ’» execute_ssh_command: Execute arbitrary bash commands on a remote VPS via SSH.

  • πŸ“€ scp_upload: Securely upload local files or directories to the remote server.

  • πŸ“₯ scp_download: Download remote files from the server directly to your local machine.

  • πŸ”’ Secure by Design: Built using execFile to prevent local shell injection vulnerabilities. Zero hardcoded passwords or IP addresses.

βš™οΈ Installation

  1. Clone and build the repository on your machine:

git clone https://github.com/MohamedCHAMI/mcp-server-vps-remote.git ~/mcp-server-vps-remote
cd ~/mcp-server-vps-remote
npm install
  1. Run the automated configuration script. This will detect your installed AI CLIs (Claude, Agy, Codex) and automatically configure the MCP server for them!

npm run install-mcp

(Restart your AI CLI after running this command!)


πŸ€– Manual Configuration

If the automated script didn't detect your IDE, or if you are using a GUI-based assistant like Cursor or Cline, follow the manual steps below:

1. Cursor IDE

  1. Open Cursor Settings > Features > MCP.

  2. Click + Add New MCP Server.

  3. Name it vps-remote.

  4. Set the Type to stdio.

  5. Set the Command to: node /absolute/path/to/your/home/mcp-server-vps-remote/index.js

2. Cline (VS Code Extension)

In VS Code, open the Cline configuration file by clicking the MCP icon in the sidebar and adding:

{
  "mcpServers": {
    "vps-remote": {
      "command": "node",
      "args": ["/absolute/path/to/your/home/mcp-server-vps-remote/index.js"]
    }
  }
}

3. Claude Code / Antigravity / Codex

If you prefer to configure them manually, simply edit their respective config files (~/.claude.json, ~/.gemini/config/mcp_config.json, or ~/.codex/config.json) and add:

"mcpServers": {
  "vps-remote": {
    "type": "stdio",
    "command": "node",
    "args": ["/absolute/path/to/your/home/mcp-server-vps-remote/index.js"]
  }
}

πŸ› οΈ Usage Examples

Once configured, simply speak naturally to your AI:

  • πŸ” "Can you check the docker logs on my VPS? My username is root and the IP is 192.168.1.10"

  • πŸš€ "Upload this newly generated build folder to my remote server at admin@example.com:/var/www/html"

  • πŸ“„ "Download the nginx configuration file from my remote server so we can analyze it locally."

  • πŸ”„ "Transfer my current workspace to the VPS and run the database migration script remotely."

πŸ›‘οΈ Security & Authentication

This MCP server relies completely on your host system's native ssh and scp binaries.

  • SSH Keys Required: The server assumes you have SSH key-based authentication configured. It does not handle interactive password prompts. If your key requires a passphrase, ensure your ssh-agent is running.

  • No Stored Credentials: The server does not store, cache, or hardcode any credentials, IPs, or usernames.

  • Zero Local Shell Injection: Command arguments are passed directly to the binary execution layer, bypassing the local shell entirely.

πŸ“ License

Released under the MIT License.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to maintain persistent SSH terminal sessions and transfer files to/from remote servers. Allows stateful command execution, natural language server management, and seamless file operations through SSH connections.
    17
    37
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables AI assistants to securely connect to and manage remote servers via SSH, supporting command execution, file transfers via SFTP, and multi-server management with both password and SSH key authentication.
    9
    56
    2
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to securely execute commands, transfer files, and manage port forwarding on remote servers via SSH.
    168
    36
    Apache 2.0

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MohamedCHAMI/mcp-server-vps-remote'

If you have feedback or need assistance with the MCP directory API, please join our Discord server