vps-remote
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@vps-remoteCheck the nginx error logs on my VPS at 192.168.1.10"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π 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:
Package your local code and upload it to the VPS using
scp_upload.Run installation scripts, start docker containers, or execute long-running build tasks on the VPS using
execute_ssh_command.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
execFileto prevent local shell injection vulnerabilities. Zero hardcoded passwords or IP addresses.
βοΈ Installation
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 installRun 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
Open Cursor Settings > Features > MCP.
Click + Add New MCP Server.
Name it
vps-remote.Set the Type to
stdio.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-agentis 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.
This server cannot be installed
Maintenance
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
- emisarOAuthdev.emisar
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Scoped, audited SSH exec, sessions, and SFTP on your saved servers without exposing credentials
Deploy and manage your apps, databases, storage, and scheduled jobs from your AI agent
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables 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.1737MIT
- AlicenseAqualityCmaintenanceEnables 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.9562MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to execute commands and transfer files on remote servers over SSH connections.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to securely execute commands, transfer files, and manage port forwarding on remote servers via SSH.16836Apache 2.0
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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