Google VPS MCP
Manages .env configuration files on VPS instances securely, including creating/updating, uploading, retrieving, validating, backing up, and masking sensitive values.
Deploys projects directly from GitHub repositories to Google Cloud VPS instances, pulling the latest changes and installing dependencies, with redeploy support.
Manages Google Cloud VPS instances: creating and hardening VMs, retrieving status and metrics, running validated commands, deploying applications, and monitoring logs through the Google Cloud SDK.
Installs, configures, and controls PM2 process management on VPS instances for deploying applications and restarting services.
Click on "Deploy 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., "@Google VPS MCP Deploy my GitHub repo to a new Google Cloud VPS and show me the logs"
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.
π Google VPS MCP
Professional & Secure MCP Server for Google Cloud VPS Management
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 | |
Claude Desktop | β Supported | |
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 setupThis will:
List all your Google Cloud projects
Let you select the one you want to use
Automatically configure both
.envand AntigravityYou'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.jsonNote: 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 |
| Create and configure a new VPS from scratch |
| Get comprehensive VPS status and metrics |
| Restart services or applications |
| Run validated commands securely |
Deployment
Tool | Description |
| Deploy from GitHub with full configuration |
| Pull latest changes and restart application |
Logs & Monitoring
Tool | Description |
| Stream logs in real-time |
| Search historical logs with filters |
| AI-friendly log analysis with suggestions |
Environment
Tool | Description |
| Create or update .env file |
| Upload .env file securely |
| Retrieve environment configuration |
π AI Integration Setup
ChatGPT Setup
Install an MCP-compatible ChatGPT client
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
π Support
If you find this project helpful, consider supporting its development:
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.
π Star this repo if you find it useful!
Google VPS MCP β Professional VPS Management with AI
Documentation β’ Report Bug β’ Request Feature
Available Tools
17 toolsconfigure_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
Deploy and run your apps by asking your AI: services, Postgres, logs, traces, rollbacks, costs.
The Google GKE MCP server is a managed Model Context Protocol server that provides AI applications with tools to manage Google Kubernetes Engine (GKE) clusters and Kubernetes resources. It exposes a structured, discoverable interface that allows AI agents to interact with GKE and Kubernetes APIs, enabling them to inspect cluster configurations, retrieve Kubernetes resource YAMLs, monitor operations like cluster upgrades, diagnose issues, and optimize costsβall without needing to parse text output or use complex kubectl commands.
Deploy and manage your apps, databases, storage, and scheduled jobs from your AI agent
Deploy and run apps in your own AWS, Google Cloud, Azure or DigitalOcean account from any AI agent.
Related MCP Servers
- AlicenseBqualityDmaintenanceA 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.9289 npm199MIT
- AlicenseBqualityDmaintenanceEnables 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.16MIT
- FlicenseNot gradedqualityDmaintenanceEnables managing Google Cloud Platform infrastructure through natural language, including VM deployment, SSH key management, remote command execution, and Terraform infrastructure-as-code operations.2-
- FlicenseNot gradedqualityDmaintenanceModel 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-