Google VPS MCP
<div align="center">

# π Google VPS MCP
### Professional & Secure MCP Server for Google Cloud VPS Management
[](https://opensource.org/licenses/MIT)
[](https://nodejs.org/)
[](https://www.typescriptlang.org/)
[](https://modelcontextprotocol.io/)
**Deploy β’ Monitor β’ Manage** your Google Cloud VPS with AI assistance
[Documentation](https://dannymaaz.github.io/google-vps-mcp) β’ [Features](#-features) β’ [Quick Start](#-quick-start) β’ [Support](#-support)
</div>
---
## π Table of Contents
- [About](#-about)
- [Features](#-features)
- [Compatibility](#-compatibility)
- [Quick Start](#-quick-start)
- [Installation](#-installation)
- [Configuration](#-configuration)
- [Available Tools](#-available-tools)
- [Security](#-security)
- [Documentation](#-documentation)
- [Support](#-support)
- [License](#-license)
---
## π― 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
<div align="center">
| π₯οΈ **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 |
</div>
---
## π Compatibility
Google VPS MCP works with any AI tool that supports the **Model Context Protocol (MCP)**:
<div align="center">
| AI Tool | Status | Configuration |
|:---:|:---:|:---:|
| **ChatGPT** | β
Supported | [Guide](#chatgpt-setup) |
| **Claude Desktop** | β
Supported | [Guide](#claude-desktop-setup) |
| **OpenCode** | β
Supported | MCP-compatible |
| **Google Antigravity** | β
Supported | MCP-compatible |
| **Other MCP Clients** | β
Supported | Standard MCP config |
</div>
---
## β‘ Quick Start
<div align="center">
### Get up and running in 4 steps!
</div>
```bash
# 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
```
<div align="center">
β‘οΈ **[See Full Documentation](https://dannymaaz.github.io/google-vps-mcp)**
</div>
---
## π¦ 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
```bash
# 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:
```bash
# 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:
```bash
# 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:
```json
{
"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`
```json
{
"mcpServers": {
"google-vps": {
"command": "node",
"args": ["/absolute/path/to/google-vps-mcp/dist/index.js"],
"env": {}
}
}
}
```
---
## π Security
<div align="center">
| 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 |
</div>
### 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
<div align="center">
### π [View Full Documentation](https://dannymaaz.github.io/google-vps-mcp)
- π Complete tool reference
- π§ Detailed integration guides
- π οΈ Troubleshooting guides
- β FAQ section
**Available in:** πΊπΈ English | πͺπΈ EspaΓ±ol
</div>
---
## π¨βπ» Created By
<div align="center">
### **Danny Maaz**
[](https://github.com/dannymaaz)
[](https://linkedin.com/in/dannymaaz)
</div>
---
## π Support
<div align="center">
If you find this project helpful, consider supporting its development:
[](https://www.paypal.com/paypalme/Creativegt)
[](https://ko-fi.com/X8X71W99D6)
**PayPal:** [paypal.me/Creativegt](https://www.paypal.com/paypalme/Creativegt)
**Ko-fi:** [ko-fi.com/X8X71W99D6](https://ko-fi.com/X8X71W99D6)
</div>
---
## π License
<div align="center">
**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.
[](https://opensource.org/licenses/MIT)
</div>
---
<div align="center">
### π Star this repo if you find it useful!
**Google VPS MCP** β Professional VPS Management with AI
[Documentation](https://dannymaaz.github.io/google-vps-mcp) β’ [Report Bug](https://github.com/dannymaaz/google-vps-mcp/issues) β’ [Request Feature](https://github.com/dannymaaz/google-vps-mcp/issues)
</div>
TDQS
Scored across 17 tools
Most tools have clearly distinct purposes, with project, VPS, deployment, log, env, and status operations separated well. Minor overlap exists between configure_env/upload_env and between view_logs_live/search_logs/troubleshoot_logs, though descriptions make the boundaries understandable.
The set is predominantly snake_case with a verb_noun pattern such as list_projects, create_project, deploy_project, and search_logs. Deviations like vps_setup, redeploy, and vps_status are readable but slightly break the otherwise consistent convention.
17 tools is slightly heavy but justified by the breadth of the domain: billing, projects, VPS setup, deployment, logs, environment, and status operations. Each tool appears to earn its place, though a few logging/env tools could potentially be consolidated.
Core creation, deployment, monitoring, and configuration workflows are covered, but notable lifecycle gaps exist. There is no tool to stop, delete, or destroy a VPS or project, and no way to remove environment variables or SSH keys, which will cause agent dead ends during teardown or cleanup.