GCP MCP
GCP MCP
Ein Model Context Protocol (MCP)-Server, der KI-Assistenten wie Claude die Interaktion mit Ihrer Google Cloud Platform-Umgebung ermöglicht. Dies ermöglicht Abfragen in natürlicher Sprache und die Verwaltung Ihrer GCP-Ressourcen während Konversationen.

Merkmale
🔍 GCP-Ressourcen mithilfe natürlicher Sprache abfragen und ändern
☁️ Unterstützung für mehrere GCP-Projekte
🌐 Unterstützung mehrerer Regionen
🔐 Sichere Handhabung der Anmeldeinformationen (es werden keine Anmeldeinformationen an externe Dienste weitergegeben)
🏃♂️ Lokale Ausführung mit Ihren GCP-Anmeldeinformationen
🔄 Automatische Wiederholungsversuche für verbesserte Zuverlässigkeit
Related MCP server: Kubectl MCP Tool
Voraussetzungen
Node.js
Claude Desktop/Cursor/Windsurf
GCP-Anmeldeinformationen lokal konfiguriert (Standardanmeldeinformationen der Anwendung)
Installation
Klonen Sie das Repository:
git clone https://github.com/eniayomi/gcp-mcp
cd gcp-mcpInstallieren Sie Abhängigkeiten:
npm installKonfiguration
Claude Desktop
Öffnen Sie die Claude-Desktop-App und gehen Sie zu Einstellungen -> Entwickler -> Konfiguration bearbeiten
Fügen Sie den folgenden Eintrag zu Ihrer
claude_desktop_config.jsonhinzu:
über npm:
{
"mcpServers": {
"gcp": {
"command": "sh",
"args": ["-c", "npx -y gcp-mcp"]
}
}
}Wenn Sie die Installation aus der Quelle durchgeführt haben:
{
"mcpServers": {
"gcp": {
"command": "npm",
"args": [
"--silent",
"--prefix",
"/path/to/gcp-mcp",
"start"
]
}
}
}Ersetzen Sie /path/to/gcp-mcp durch den tatsächlichen Pfad zu Ihrem Projektverzeichnis, wenn Sie die Quellinstallation verwenden.
Cursor
Öffnen Sie Cursor und gehen Sie zu Einstellungen (⌘,)
Navigieren Sie zu AI -> Model Context Protocol
Fügen Sie eine neue MCP-Konfiguration hinzu:
{
"gcp": {
"command": "npx -y gcp-mcp"
}
}Windsurf
Öffnen Sie
~/.windsurf/config.json(erstellen Sie es, falls es nicht existiert)Fügen Sie die MCP-Konfiguration hinzu:
{
"mcpServers": {
"gcp": {
"command": "npx -y gcp-mcp"
}
}
}GCP-Einrichtung
Richten Sie die GCP-Anmeldeinformationen ein:
Richten Sie die Standardanmeldeinformationen für Anwendungen mit
gcloud auth application-default loginein.
Aktualisieren Sie Ihren KI-Assistenten (Claude Desktop/Cursor/Windsurf)
Verwendung
Wählen Sie zunächst ein Projekt aus oder stellen Sie Fragen wie:
„Alle GCP-Projekte auflisten, auf die ich Zugriff habe“
„Zeigen Sie mir alle Cloud SQL-Instanzen im Projekt X“
„Wie ist mein aktueller Rechnungsstatus?“
„Zeigen Sie mir die Protokolle meiner Cloud Run-Dienste“
„Liste alle GKE-Cluster in us-central1 auf“
„Zeigen Sie mir alle Cloud Storage-Buckets in Projekt X“
„Welche Cloud-Funktionen werden in us-central1 bereitgestellt?“
„Alle Cloud Run-Dienste auflisten“
„Zeigen Sie mir BigQuery-Datensätze und -Tabellen“
Verfügbare Tools
run-gcp-code: Führen Sie GCP-API-Aufrufe mit TypeScript-Code auslist-projects: Listet alle zugänglichen GCP-Projekte aufselect-project: Wählen Sie ein GCP-Projekt für nachfolgende Vorgänge ausget-billing-info: Rechnungsinformationen für das aktuelle Projekt abrufenget-cost-forecast: Kostenprognose für das aktuelle Projekt abrufenget-billing-budget: Ruft die Abrechnungsbudgets für das aktuelle Projekt ablist-gke-clusters: Listet alle GKE-Cluster im aktuellen Projekt auflist-sql-instances: Listet alle Cloud SQL-Instanzen im aktuellen Projekt aufget-logs: Ruft Cloud Logging-Einträge für das aktuelle Projekt ab
Beispielinteraktionen
Liste der verfügbaren Projekte:
List all GCP projects I have access toWählen Sie ein Projekt aus:
Use project my-project-idRechnungsstatus prüfen:
What's my current billing status?Protokolle anzeigen:
Show me the last 10 log entries from my projectUnterstützte Dienste
Google Compute Engine
Cloud-Speicher
Cloud-Funktionen
Cloud Run
BigQuery
Cloud SQL
Google Kubernetes Engine (GKE)
Cloud-Protokollierung
Cloud-Abrechnung
Ressourcenmanager
Mehr folgt in Kürze ...
Fehlerbehebung
So zeigen Sie Protokolle an:
tail -n 50 -f ~/Library/Logs/Claude/mcp-server-gcp.logHäufige Probleme:
Authentifizierungsfehler: Stellen Sie sicher, dass Sie
gcloud auth application-default loginausgeführt haben.Berechtigungsfehler: Überprüfen Sie die IAM-Rollen für Ihr Konto
API-Fehler: Überprüfen Sie, ob die erforderlichen APIs in Ihrem Projekt aktiviert sind
Beitragen
Beiträge sind willkommen! Senden Sie gerne einen Pull Request.
Lizenz
MIT
Available Tools
9 toolsget-billing-budgetC
Get billing budgets for the current project
Inputs: projectId.
get-billing-infoC
Get billing information for the current project
Inputs: projectId.
get-cost-forecastB
Get cost forecast for the current project
Inputs: months, projectId.
get-logsB
Get Cloud Logging entries for the current project
Inputs: filter, pageSize.
list-gke-clustersB
List all GKE clusters in the current project
Inputs: location.
list-projectsA
List all GCP projects accessible with current credentials
Inputs: no named parameters.
list-sql-instancesB
List all Cloud SQL instances in the current project
Inputs: no named parameters.
run-gcp-codeD
Run GCP code
Inputs: code (required), reasoning (required), region, projectId.
select-projectB
Selects GCP project to use for subsequent interactions
Inputs: projectId (required), region.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Tools are mostly distinct: billing-related tools (budget, info, forecast) are clearly separate, and list/select tools for different resources are unambiguous. The only potential confusion is 'run-gcp-code' which is vague but still distinct from other tools.
All tool names follow a consistent verb-noun pattern with hyphens (e.g., get-billing-budget, list-gke-clusters, select-project). The naming convention is uniform and predictable.
The server has 9 tools, which is an appropriate size for a focused GCP management server. It covers several key areas without being overwhelming.
The tool surface is limited to reading and listing operations for select GCP services (billing, logs, GKE, SQL, projects). Missing CRUD operations for resources, compute, storage, IAM, and other common GCP tasks. The vague 'run-gcp-code' tool does not compensate for these gaps.
Related MCP Connectors
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.
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.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze data—enabling direct access to enterprise analytics data without requiring manual SQL coding.
Related MCP Servers
- AlicenseCqualityDmaintenanceA Model Context Protocol server that connects to Google Cloud services, allowing users to query logs, interact with Spanner databases, and analyze Cloud Monitoring metrics through natural language interaction.4080Apache 2.0
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that enables AI assistants to interact with Kubernetes clusters through natural language, supporting core Kubernetes operations, monitoring, security, and diagnostics.280 npm976MIT
- AlicenseCqualityDmaintenanceA Model Context Protocol server allowing Claude AI to interact with AWS resources through natural language, enabling users to query and manage AWS services without using the traditional AWS Console or CLI.36ISC
- AlicenseCqualityCmaintenanceA Model Context Protocol server implementation that enables AI assistants like Claude to perform Google searches and retrieve web data directly through natural language requests.1704 npm170MIT