Google Cloud Batch (HPC) & Compute Engine VM MCP Server
Provides tools for managing Google Cloud Batch jobs and Compute Engine VM instances, including creating, listing, inspecting, starting, stopping, resetting, and deleting VMs, as well as submitting and managing batch jobs.
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 Cloud Batch (HPC) & Compute Engine VM MCP ServerSubmit a batch job to run my Python script across 10 parallel tasks."
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 Cloud Batch (HPC) & Compute Engine VM MCP Server
A Model Context Protocol (MCP) server that empowers AI assistants (Antigravity CLI, IDEs, Claude, etc.) to manage Google Cloud Batch (HPC / Batch computing workloads) and Google Compute Engine Virtual Machines (VMs) directly through conversational prompts.
Capabilities
1. Google Cloud Batch (HPC Computing)
submit_batch_script_job: Submit bash/shell script batch computing jobs (configurable CPU millicores, RAM MiB, task counts, parallelism, and Spot/Preemptible VMs).submit_batch_container_job: Submit containerized batch workloads with Docker/OCI images.list_batch_jobs: List batch jobs in a project/region with current states (QUEUED, RUNNING, SUCCEEDED, FAILED).get_batch_job: Inspect job details, task statuses, failure reasons, and direct Google Cloud Console links.cancel_batch_job: Cancel a running or scheduled batch job.delete_batch_job: Permanently remove a batch job definition.list_batch_tasks: List individual tasks and exit codes inside a job group.
2. Google Compute Engine VM Management
create_gcp_vm: Provision new VM instances in Google Cloud Console with customized machine types (e.g.e2-medium,c2-standard-8,a2-highgpu-1g), OS families (Ubuntu, Debian, COS, CentOS), boot disk size/type, startup scripts, network tags, and Spot pricing.list_gcp_vms: List instances across one or all zones with runtime status, machine type, internal IP, and external IP.get_gcp_vm: Retrieve detailed hardware, networking, and disk specifications for an instance.start_gcp_vm: Start a stopped VM instance.stop_gcp_vm: Gracefully stop a running VM instance.reset_gcp_vm: Hard reset a VM.delete_gcp_vm: Terminate and delete a VM instance.get_vm_serial_port_output: Inspect serial console boot logs (crucial for debugging startup scripts and HPC initialization).
3. Diagnostics & Health
check_gcp_connection: Verify active GCP credentials, service account email, and default project/region/zone.
Related MCP server: GCP MCP
Authentication Setup
The server automatically detects credentials in the following order:
Environment Variable:
GOOGLE_APPLICATION_CREDENTIALSpointing to a Service Account key JSON file.Local Key File: Place your Google Cloud Service Account JSON file as
gcp_credentials.jsondirectly in this folder (C:\Users\banda\gcp-batch-mcp-server\gcp_credentials.json).Application Default Credentials (ADC): Run
gcloud auth application-default loginin your terminal.
Required IAM Roles on Google Cloud
Ensure your Service Account or user identity has:
Batch Job Administrator (
roles/batch.jobsAdmin)Compute Instance Admin (v1) (
roles/compute.instanceAdmin.v1)Service Account User (
roles/iam.serviceAccountUser)
Configuration (.env)
Copy .env.example to .env and fill in your values:
GCP_PROJECT_ID=your-project-id
GCP_REGION=us-central1
GCP_ZONE=us-central1-a
GOOGLE_APPLICATION_CREDENTIALS=C:\Users\banda\gcp-batch-mcp-server\gcp_credentials.jsonRunning the Server Standalone
cd C:\Users\banda\gcp-batch-mcp-server
.venv\Scripts\python.exe src\server.pyRunning Unit Tests
cd C:\Users\banda\gcp-batch-mcp-server
.venv\Scripts\python.exe -m unittest discover -s tests -p "test_*.py"This server cannot be deployed
Maintenance
Related MCP Connectors
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
The Google Compute Engine MCP server is a fully-managed Model Context Protocol server that provides tools to manage Google Compute Engine resources through AI agents. It enables capabilities including instance management (creating, starting, stopping, resetting, listing), disk management, handling instance templates and group managers, viewing machine and accelerator types, managing images, and accessing reservation and commitment information. The server operates as a zero-deployment, enterprise-grade endpoint at https://compute.googleapis.com/mcp with built-in IAM-based security.
Interact with your Google Cloud Composer resources using natural language commands.
Interact with your Google Bigtable resources using natural language commands.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to manage Google Cloud Dataproc clusters and jobs through a standardized interface. Supports cluster creation/deletion, job submission (Spark, PySpark, Hive, etc.), and serverless batch operations.13MIT
- AlicenseCqualityDmaintenanceEnables AI assistants to interact with Google Cloud Platform resources through natural language queries. Supports querying and managing GCP services like Compute Engine, Cloud Storage, BigQuery, and more across multiple projects and regions.95,594 npmMIT
- 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-
- AlicenseBqualityNot gradedmaintenanceEnables AI assistants to interact with and manage Google Cloud Platform resources including Artifact Registry, BigQuery, Cloud Build, Compute Engine, Cloud Run, Cloud Storage, and monitoring services through a standardized MCP interface.1MIT