Google Cloud MCP Server
Provides tools for managing Google Cloud Run services and Secret Manager secrets via the gcloud CLI, including listing Cloud Run services, creating/updating secrets, and deploying/updating Cloud Run revisions with safeguards.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Google Cloud MCP Server
An open-source Model Context Protocol (MCP) server that enables AI agents (like Claude, Llama 3.1, or custom LangChain bots) to interact with Google Cloud Platform safely and autonomously.
This server acts as a bridge between your LLM and the gcloud CLI, allowing you to manage Cloud Run services and Secrets using natural language.
🚀 Features
🔍 List Services: detailed inspection of running Cloud Run services.
🔐 Manage Secrets: Safely create and update secrets in Google Secret Manager.
Self-Healing: Automatically detects if the Secret Manager API is disabled and enables it for you.
🚀 Deploy & Update: Deploy new revisions or update memory/image configuration for Cloud Run services.
Safe-Guards: Checks existing configuration before applying changes to prevent accidental overwrites.
🛠️ Prerequisites
Python 3.10+
Google Cloud SDK (gcloud): Must be installed and authenticated.
Install: brew install --cask google-cloud-sdk (Mac) or see Official Docs.
Auth: Run gcloud auth login and gcloud config set project [YOUR_PROJECT_ID].
📦 Installation
Clone the repository:
git clone https://github.com/YOUR_USERNAME/mcp-gcp-manager.git cd mcp-gcp-managerCreate a Virtual Environment (Recommended):
python3 -m venv venv source venv/bin/activateInstall Dependencies:
pip install mcp
⚙️ Configuration
The server attempts to automatically find your gcloud executable.
If you see a "gcloud not found" error: You can manually tell the server where gcloud is by setting an environment variable:
# 1. Example for Mac/Linux
export GCLOUD_PATH="/usr/local/bin/gcloud"
# 2. Example for Windows (PowerShell)
$env:GCLOUD_PATH="C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.exe"💻 Usage
Option 1: Using with Claude Desktop To use this with the official Claude Desktop app, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"gcp-manager": {
"command": "/path/to/your/venv/bin/python",
"args": ["/path/to/mcp-gcp-manager/server.py"]
}
}
}Option 2: Using with LangChain / Custom Python Agents
You can connect to this server using langchain-mcp-adapters:
from langchain_mcp_adapters.client import MultiServerMCPClient
# 3. Connect to the local server process
client = MultiServerMCPClient({
"gcp": {
"command": "python",
"args": ["server.py"],
"transport": "stdio"
}
})
# 4. Get tools and bind to your model (Llama 3, GPT-4, etc.)
tools = await client.get_tools()🛡️ Tools Available
Tool Name | Description |
| Lists all Cloud Run services in a specific project. |
| Creates/Updates secrets. Handles API enablement automatically. |
| Deploys a new revision. Supports updating memory, image, etc. |
🤝 Contributing
Pull requests are welcome! Please ensure any new tools include proper error handling and do not hardcode local paths.
📄 License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
Deploy applications to Cloud Run
Approval-gated Cloudflare ops for agents: DNS, email auth, Pages, cache, Turnstile, tokens.
Permission checks, human approval cards, and signed audit trails for AI agent tool calls.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables MCP-compatible AI agents to deploy applications to Google Cloud Run by providing tools for deploying code, listing services, and managing Google Cloud projects.88,578 npm640Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Google Cloud Platform services through gcloud CLI commands via a Cloud Run deployed MCP server. Supports executing gcloud commands and managing GCP resources through natural language.MIT
- AlicenseBqualityDmaintenanceEnables interaction with Google Cloud Platform services through gcloud CLI, supporting operations like querying logs, checking Cloud Run status, managing secrets, executing Cloud SQL queries, and monitoring billing information.1123 npm1MIT
- 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