Skip to main content
Glama

VPS MCP Server

An MCP server that enables an AI agent to connect to and control a VPS (Virtual Private Server) via SSH.

Tools

Session Management

  • connect_vps: Establish SSH connection (Host, Port, User, Password/Key).

  • disconnect_vps: Close the session.

File System Operations

  • list_directory: List files/folders in a path (supports relative paths to CWD).

  • create_directory: Create a new directory.

  • read_file: Read file contents.

  • write_file: Create or overwrite a file with content.

  • delete_item: Recursively delete a file or directory.

  • change_directory: Change the current working directory for subsequent commands.

  • get_current_directory: Get the current tracked working directory.

Command Execution

  • execute_command: Run shell commands.

    • Note: Commands are automatically prefixed with cd <current_working_directory>.

    • To change directory persistently, use change_directory instead of running cd here.

Related MCP server: MCP VPS Manager

Usage

Add the following configuration to your MCP client (e.g., Claude Desktop config file):

{
  "mcpServers": {
    "vps": {
      "command": "npx",
      "args": ["-y", "vps-mcp"]
    }
  }
}

Support

If you find this project useful, consider supporting me on Patreon:

Patreon or click here to donate.

Available Tools

10 tools
change_directoryC

Change the current working directory on the VPS.

Inputs: path (required).

connect_vpsB

Connect to a VPS using SSH. Requires host, username, and either password or privateKey.

Inputs: host (required), username (required), port, password, +1 more.

create_directoryC

Create a new directory on the VPS.

Inputs: path (required).

delete_itemA

Delete a file or directory on the VPS (recursive).

Inputs: path (required).

disconnect_vpsB

Disconnect from the current VPS session.

Inputs: no named parameters.

execute_commandB

Execute a shell command on the connected VPS and return the output. Runs in the current tracked directory.

Inputs: command (required).

get_current_directoryB

Get the current working directory path.

Inputs: no named parameters.

list_directoryB

List contents of a directory on the VPS. Defaults to current working directory.

Inputs: path.

read_fileC

Read the contents of a file on the VPS.

Inputs: path (required).

write_fileC

Create or overwrite a file on the VPS.

Inputs: path (required), content (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no ambiguity. For example, change_directory modifies the working directory while get_current_directory retrieves it, and list_directory shows contents while read_file reads file data. The actions (change, connect, create, delete, etc.) and targets (directory, VPS, file) are consistently differentiated.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with snake_case throughout. Examples include change_directory, execute_command, and list_directory. There are no deviations in naming conventions, making the set predictable and readable.

    Tool Count5/5

    With 10 tools, the count is well-scoped for managing a VPS via SSH. Each tool earns its place by covering essential operations like connection management, file system navigation, and command execution, without being excessive or insufficient for the domain.

    Completeness4/5

    The tool set provides strong coverage for core VPS management tasks, including connection handling, file CRUD operations, and directory navigation. A minor gap is the lack of tools for advanced operations like file permissions management or process monitoring, but agents can work around this using execute_command.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      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
      62 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables LLMs to securely manage Virtual Private Servers via SSH, with features including command execution, file operations, system monitoring, and service management.
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to manage remote servers via SSH with 43 specialized tools for command execution, file editing, directory operations, and background tasks across Linux, macOS, and Windows.
      46
      87 PyPI
      9
      GPL 3.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to securely execute commands, transfer files, and manage port forwarding on remote servers via SSH.
      158 npm
      38
      Apache 2.0