GCP MCP Server
Provides comprehensive tools for managing Google Cloud Platform (GCP) resources across 23 service domains including Compute Engine, GKE, Cloud Storage, IAM, BigQuery, Cloud Functions, Cloud Run, VPC Networking, Load Balancing, Cloud SQL, Firestore, Pub/Sub, Cloud Build, Artifact Registry, Secret Manager, Cloud KMS, Cloud DNS, Cloud Logging, Cloud Monitoring, Resource Manager, Billing, App Engine, and Service Usage. Enables AI agents to manage infrastructure, deployments, data, and security.
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., "@GCP MCP Serverlist all my compute engine instances"
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.
GCP MCP Server
A comprehensive Model Context Protocol (MCP) server for managing everything in Google Cloud Platform (GCP). This server exposes over 250 tools across 23 GCP service domains, allowing AI models to manage infrastructure, deployments, data, and security.
Features
TypeScript implementation using the
@modelcontextprotocol/sdkOAuth2 Authentication using a GCP Service Account JSON key
Dockerized for easy deployment
Write Safety controlled by environment variable
Comprehensive Coverage of 23 service domains:
Compute Engine, GKE, Cloud Storage
IAM, BigQuery, Cloud Functions, Cloud Run
VPC Networking, Load Balancing, Cloud SQL, Firestore
Pub/Sub, Cloud Build, Artifact Registry
Secret Manager, Cloud KMS, Cloud DNS
Cloud Logging, Cloud Monitoring
Resource Manager, Billing, App Engine, Service Usage
Related MCP server: GCP MCP Server
Prerequisites
GCP Project: You need an active GCP project.
Service Account: Create a service account with the necessary permissions (e.g., Editor or specific roles for services you want to manage).
JSON Key: Generate and download a JSON key for the service account.
Configuration
The server requires the following environment variables:
Variable | Description | Required |
| Path to the service account JSON key file | Yes (or use inline) |
| Your GCP Project ID | Yes |
| Default region (default: | No |
| Default zone (default: | No |
| Set to | No (default: |
Alternative Credential Methods
Instead of a file path, you can pass the credentials inline:
GCP_SERVICE_ACCOUNT_KEY_JSON: The raw JSON string of the key.GCP_SERVICE_ACCOUNT_KEY_BASE64: Base64 encoded string of the JSON key.
Installation & Usage
Method 1: Using Docker (Recommended)
Build the Docker image:
docker build -t gcp-mcp-server .Run the container:
docker run -i --rm \
-v /path/to/your/key.json:/app/key.json \
-env GOOGLE_APPLICATION_CREDENTIALS=/app/key.json \
-env GCP_PROJECT_ID=your-project-id \
-env GCP_ALLOW_WRITE=true \
gcp-mcp-serverMethod 2: Running Locally
Install dependencies:
npm installBuild the project:
npm run buildRun the server:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json export GCP_PROJECT_ID=your-project-id export GCP_ALLOW_WRITE=true npm start
Integration with Claude Desktop
Add the following to your claude_desktop_config.json:
Using Docker
{
"mcpServers": {
"gcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-v",
"/path/to/your/key.json:/app/key.json",
"-e",
"GOOGLE_APPLICATION_CREDENTIALS=/app/key.json",
"-e",
"GCP_PROJECT_ID=your-project-id",
"-e",
"GCP_ALLOW_WRITE=true",
"gcp-mcp-server"
]
}
}
}Using Node
{
"mcpServers": {
"gcp": {
"command": "node",
"args": [
"f:/MCP_Server/cloud_MCP/GCP_MCP_server/dist/index.js"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "f:/path/to/your/key.json",
"GCP_PROJECT_ID": "your-project-id",
"GCP_ALLOW_WRITE": "true"
}
}
}
}License
MIT
Related MCP Connectors
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.
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.
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Related MCP Servers
- 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
- AlicenseCqualityDmaintenanceProvides tools and context for interacting with Google Cloud services, enabling natural language management of billing, monitoring, logging, IAM, Spanner, and more.56120 npmApache 2.0
- FlicenseNot gradedqualityDmaintenanceAn MCP server that exposes 17 Google Workspace APIs (e.g., Gmail, Drive, Calendar) as auto-generated tools for AI assistants, enabling natural language control of Google services.-