Skip to main content
Glama

Google VPS MCP Logo

πŸš€ Google VPS MCP

Professional & Secure MCP Server for Google Cloud VPS Management

License: MIT Node.js TypeScript MCP

Deploy β€’ Monitor β€’ Manage your Google Cloud VPS with AI assistance

Documentation β€’ Features β€’ Quick Start β€’ Support


πŸ“– Table of Contents


Related MCP server: GCP MCP Server

🎯 About

Google VPS MCP is a professional-grade Model Context Protocol (MCP) server that enables AI assistants to manage your Google Cloud VPS instances securely and efficiently. Built with TypeScript and designed for production use, it provides seamless integration with ChatGPT, Claude Desktop, and any MCP-compatible AI tool.

🌟 Key Features

  • πŸ–₯️ Complete VPS Setup - Automated VPS configuration with security hardening, Node.js, PM2, and firewall rules

  • πŸš€ One-Click Deploy - Deploy directly from GitHub with automatic dependency installation and PM2 configuration

  • πŸ“Š Live Logs - Real-time log streaming, search capabilities, and AI-powered troubleshooting

  • πŸ” Secure Environment - Manage .env files securely with validation, backup, and masked sensitive values

  • πŸ€– AI Integration - Works with ChatGPT, Claude Desktop, Google Antigravity, OpenCode, and any MCP client

  • πŸ”’ Enterprise Security - Command validation, sensitive data masking, audit logging, and secure authentication

πŸš€ What You Can Do

Perfect for developers who want to:

  • Deploy projects directly from GitHub to Google Cloud VPS

  • Monitor applications with live logs and real-time metrics

  • Redeploy with a single command

  • Manage environment variables securely

  • Troubleshoot issues with AI assistance

  • Control VPS instances using natural language

πŸ’Ό Use Cases

  • Startups - Quick deployment of web applications to Google Cloud

  • Developers - Automated VPS management without manual SSH commands

  • DevOps - AI-assisted monitoring and troubleshooting

  • Agencies - Multi-client VPS management with project isolation

  • Freelancers - Professional deployment workflow with minimal setup


✨ Features

πŸ–₯️ VPS Setup

πŸš€ One-Click Deploy

πŸ“‹ Live Logs

Automated VPS configuration

Deploy from GitHub instantly

Real-time log streaming

Security hardening included

PM2 process management

Search & filter capabilities

Node.js & PM2 pre-installed

Custom build commands

AI-powered troubleshooting

πŸ” Env Management

πŸ“Š Monitoring

πŸ”’ Enterprise Security

Secure .env file handling

CPU & memory tracking

Command validation

Backup before changes

Disk usage monitoring

Sensitive data masking

Validation & sanitization

Process management

Audit logging


πŸ”Œ Compatibility

Google VPS MCP works with any AI tool that supports the Model Context Protocol (MCP):

AI Tool

Status

Configuration

ChatGPT

βœ… Supported

Guide

Claude Desktop

βœ… Supported

Guide

OpenCode

βœ… Supported

MCP-compatible

Google Antigravity

βœ… Supported

MCP-compatible

Other MCP Clients

βœ… Supported

Standard MCP config


⚑ Quick Start

Get up and running in 4 steps!

# 1️⃣ Clone the repository
git clone https://github.com/dannymaaz/google-vps-mcp.git
cd google-vps-mcp

# 2️⃣ Install dependencies
npm install

# 3️⃣ Build the project
npm run build

# 4️⃣ Authenticate with Google Cloud
gcloud auth application-default login

➑️ See Full Documentation


πŸ“¦ Installation

Prerequisites

Ensure you have the following installed:

Requirement

Version

Purpose

Node.js

>= 18.0.0

Runtime environment

Google Cloud SDK

Latest

GCP authentication

Git

Latest

Version control

Step-by-Step Installation

# Clone the repository
git clone https://github.com/dannymaaz/google-vps-mcp.git
cd google-vps-mcp

# Install all dependencies
npm install

# Build the TypeScript code
npm run build

# Verify installation
npm run build

βš™οΈ Configuration

🎯 Automatic Project Selector (NEW!)

No need to manually enter Project IDs anymore!

Google VPS MCP now includes an automatic project selector that lists all your Google Cloud projects:

# Run the interactive selector
npm run setup

This will:

  1. List all your Google Cloud projects

  2. Let you select the one you want to use

  3. Automatically configure both .env and Antigravity

  4. You're ready to go!

Manual Configuration

If you prefer manual setup:

# Option 1: User authentication (development)
gcloud auth application-default login

# Option 2: Service account (production)
gcloud auth activate-service-account --key-file=path/to/service-account.json

Note: You don't need to set a project ID in configuration. The MCP will list your projects and you can choose dynamically when creating resources.


πŸ› οΈ Available Tools

VPS Management

Tool

Description

vps_setup

Create and configure a new VPS from scratch

vps_status

Get comprehensive VPS status and metrics

restart_service

Restart services or applications

execute_command

Run validated commands securely

Deployment

Tool

Description

deploy_project

Deploy from GitHub with full configuration

redeploy

Pull latest changes and restart application

Logs & Monitoring

Tool

Description

view_logs_live

Stream logs in real-time

search_logs

Search historical logs with filters

troubleshoot_logs

AI-friendly log analysis with suggestions

Environment

Tool

Description

configure_env

Create or update .env file

upload_env

Upload .env file securely

get_env

Retrieve environment configuration


πŸ”Œ AI Integration Setup

ChatGPT Setup

  1. Install an MCP-compatible ChatGPT client

  2. Add the following configuration:

{
  "mcpServers": {
    "google-vps": {
      "command": "node",
      "args": ["/path/to/google-vps-mcp/dist/index.js"],
      "env": {}
    }
  }
}

Claude Desktop Setup

Edit claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "google-vps": {
      "command": "node",
      "args": ["/absolute/path/to/google-vps-mcp/dist/index.js"],
      "env": {}
    }
  }
}

πŸ”’ Security

Feature

Description

πŸ›‘οΈ Command Validation

Blocks dangerous operations automatically

πŸ” Env Masking

Hides sensitive values (passwords, keys, tokens)

πŸ“‹ Audit Logging

Records all operations for review

πŸ”‘ Secure Auth

Uses official Google Cloud libraries

Blocked Operations

The following are automatically blocked for security:

  • ❌ System modifications (rm -rf /, chmod -R 777)

  • ❌ Privilege escalation attempts

  • ❌ Service disruption commands

  • ❌ Data destruction operations

  • ❌ Network backdoors


πŸ“š Documentation

🌐 View Full Documentation

  • πŸ“– Complete tool reference

  • πŸ”§ Detailed integration guides

  • πŸ› οΈ Troubleshooting guides

  • ❓ FAQ section

Available in: πŸ‡ΊπŸ‡Έ English | πŸ‡ͺπŸ‡Έ EspaΓ±ol


πŸ‘¨β€πŸ’» Created By

Danny Maaz

GitHub LinkedIn


πŸ’– Support

If you find this project helpful, consider supporting its development:

PayPal Ko-fi

PayPal: paypal.me/Creativegt

Ko-fi: ko-fi.com/X8X71W99D6


πŸ“„ License

MIT License

Copyright Β© 2024 Danny Maaz

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software.

License: MIT


🌟 Star this repo if you find it useful!

Google VPS MCP β€” Professional VPS Management with AI

Documentation β€’ Report Bug β€’ Request Feature

Available Tools

17 tools
configure_envB

Create or update .env file on the VPS. Securely manage environment variables for production.

Inputs: projectId (required), projectPath (required), instanceName (required), backup, +2 more.

create_projectA

⚠️ Create a NEW Google Cloud project. The system will automatically list your billing accounts for selection. User must explicitly confirm. Use this when you want to create a fresh project for isolation, billing, or organizational purposes.

Inputs: projectId (required), projectName (required), confirm, folderId, +2 more.

deploy_projectB

Deploy a project from GitHub to the VPS. Clones repo, installs dependencies, and starts the application. You can use project name or ID.

Inputs: repoUrl (required), projectId (required), instanceName (required), port, +5 more.

execute_commandC

Execute a custom command on the VPS with security validation. Only allows safe, predefined operations.

Inputs: command (required), projectId (required), instanceName (required), workingDir.

get_envA

Retrieve current .env configuration from the VPS (values masked for security).

Inputs: projectId (required), projectPath (required), instanceName (required), showValues.

get_project_contextC

Get context and recommendations for a specific Google Cloud project. Use this to see project details before making decisions.

Inputs: projectId (required).

list_billing_accountsA

List all available billing accounts in your Google Cloud account. Use this to see which billing account to use when creating a new project.

Inputs: no named parameters.

list_projectsA

List all available Google Cloud projects. Shows project names and IDs. Use this to see what projects you can work with.

Inputs: no named parameters.

recommend_vpsA

Get intelligent VPS configuration recommendations based on your project type. Analyzes your repo and suggests optimal machine types with cost estimates. ALWAYS use this before creating a VPS to help user make informed decision.

Inputs: projectId (required), budget, repoUrl, description, +1 more.

redeployA

Redeploy an existing project. Pulls latest changes, rebuilds, and restarts the application.

Inputs: projectId (required), projectPath (required), instanceName (required), branch, +1 more.

restart_serviceB

Restart a service or application on the VPS. Useful after configuration changes.

Inputs: projectId (required), serviceName (required), instanceName (required), command.

search_logsC

Search through historical logs with filters. Find errors, warnings, or specific patterns.

Inputs: query (required), projectId (required), instanceName (required), level, +3 more.

troubleshoot_logsB

Analyze logs and provide AI-friendly troubleshooting suggestions. Identifies common errors and solutions.

Inputs: projectId (required), instanceName (required), timeRange, includeSuggestions.

upload_envC

Upload a local .env file to the VPS securely. Validates content before transfer.

Inputs: projectId (required), envContent (required), projectPath (required), instanceName (required), +1 more.

view_logs_liveB

Stream live logs from the VPS in real-time. Perfect for monitoring deployments and debugging.

Inputs: projectId (required), instanceName (required), lines, processName.

vps_setupA

⚠️ IMPORTANT: Initialize and configure a new Google Cloud VPS. ALWAYS call recommend_vps first to show user options. User must explicitly confirm before proceeding. Sets up SSH, firewall rules, Node.js, and PM2.

Inputs: projectId (required), instanceName (required), zone, image, +3 more.

vps_statusB

Get comprehensive VPS status including CPU, memory, disk, running processes, and active deployments.

Inputs: projectId (required), instanceName, includeProcesses.

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI assistants like Claude to interact with Google Cloud Platform environments through natural language, allowing users to query and manage GCP resources during conversations.
      9
      289 npm
      199
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to interact with and manage Google Cloud Platform resources including Compute Engine, Cloud Run, Storage, BigQuery, and other GCP services through a standardized MCP interface.
      1
      6
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables managing Google Cloud Platform infrastructure through natural language, including VM deployment, SSH key management, remote command execution, and Terraform infrastructure-as-code operations.
      2
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Model Context Protocol server for Google Cloud Platform, enabling interaction with Resource Manager, Compute Engine, Cloud Storage, BigQuery, Pub/Sub, and Cloud Logging via natural language.
      3
      -