mcpField
M
Mcp Server Gcp Manager

Mcp Server Gcp Manager

Local
github.com/KishoreKuCloud & Infra0Updated 39w ago

About Mcp Server Gcp Manager

Mcp Server Gcp Manager is an open-source MCP server connecting LLMs to the gcloud CLI. It lets AI agents manage Google Cloud Run services and Secret Manager using natural language, with configuration checks and automatic API enablement.

Key features

  1. 01Inspect Cloud Run services
  2. 02Create and update Secret Manager secrets
  3. 03Enable the Secret Manager API automatically
  4. 04Deploy services and update configuration
  5. 05Check existing configuration before changes

Use cases

  1. 01Review Cloud Run services in a project
  2. 02Create or update cloud secrets
  3. 03Deploy a new Cloud Run revision
  4. 04Adjust service memory or image configuration

MCP support

The MCP server exposes tools to list Cloud Run services, manage secrets, and deploy services. It uses the gcloud CLI to perform Google Cloud operations.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

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

  1. Python 3.10+

  2. 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

  1. Clone the repository:

    git clone https://github.com/YOUR_USERNAME/mcp-gcp-manager.git
    cd mcp-gcp-manager
    
    
  2. Create a Virtual Environment (Recommended):

    python3 -m venv venv
    source venv/bin/activate
    
    
  3. Install 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 NameDescription
list_running_servicesLists all Cloud Run services in a specific project.
create_secretCreates/Updates secrets. Handles API enablement automatically.
deploy_serviceDeploys 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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.