Google Cloud MCP Server
Servidor MCP de Google Cloud
Un servidor de protocolo de contexto de modelo que se conecta a los servicios de Google Cloud para proporcionar contexto y herramientas para interactuar con sus recursos de Google Cloud.
Servicios
Servicios soportados:
[x] Registro de Google Cloud
[x] Monitoreo de Google Cloud
[x] Llave inglesa de Google Cloud
Servidores en desarrollo:
[ ] Rastreo de Google Cloud
[ ] Google IAM
[ ] Computación en la nube de Google
[ ] Google Cloud Run
[ ] Almacenamiento en la nube de Google
Registro de Google Cloud
Consultar y filtrar entradas de registro de Google Cloud Logging:
Consultar registros con filtros personalizados
Buscar registros dentro de rangos de tiempo específicos
Formatear y mostrar las entradas del registro en un formato legible
Llave inglesa de Google Cloud
Interactuar con las bases de datos de Google Cloud Spanner:
Ejecutar consultas SQL en bases de datos Spanner
Lista de bases de datos y tablas disponibles
Explorar el esquema de la base de datos
Monitoreo de Google Cloud
Recupere y analice métricas de Google Cloud Monitoring:
Métricas de consulta con filtros personalizados
Visualizar datos métricos a lo largo del tiempo
Lista de tipos de métricas disponibles
Rastreo de Google Cloud
Analizar seguimientos distribuidos desde Google Cloud Trace:
Recuperar rastros por ID
Lista de rastros recientes con opciones de filtrado
Encuentre rastros asociados con registros
Identificar rastros fallidos
Utilice lenguaje natural para consultar los seguimientos (por ejemplo, "Muéstrame los seguimientos fallidos de la última hora")
Related MCP server: BigQuery MCP Server
Autenticación
Este servidor admite dos métodos de autenticación con Google Cloud:
Archivo de clave de cuenta de servicio (recomendado): Establezca la variable de entorno
GOOGLE_APPLICATION_CREDENTIALScon la ruta del archivo de clave de su cuenta de servicio. Este es el método de autenticación estándar de Google Cloud.Variables de entorno : Establezca directamente las variables de entorno
GOOGLE_CLIENT_EMAILyGOOGLE_PRIVATE_KEY. Esto resulta útil en entornos donde no es práctico almacenar un archivo de clave.
El servidor también utilizará la variable de entorno GOOGLE_CLOUD_PROJECT si está configurada; de lo contrario, intentará determinar el ID del proyecto a partir de las credenciales de autenticación.
Instalación
# Clone the repository
git clone https://github.com/krzko/google-cloud-mcp.git
cd google-cloud-mcp
# Install dependencies
pnpm install
# Build
pnpm buildAutenticarse en Google Cloud:
gcloud auth application-default loginConfigure los mcpServers en su cliente:
{
"mcpServers": {
"google-cloud-mcp": {
"command": "node",
"args": [
"/Users/foo/code/google-cloud-mcp/dist/index.js"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/Users/foo/.config/gcloud/application_default_credentials.json"
}
}
}
}Desarrollo
Iniciando el servidor
# Build the project
pnpm build
# Start the server
pnpm startModo de desarrollo
# Build the project
pnpm build
# Start the server and inspector
npx -y @modelcontextprotocol/inspector node dist/index.jsUso con herrería (próximamente)
Este servidor se puede implementar y usar con Smithery. El servidor implementa la carga diferida de la autenticación, lo que significa que se iniciará inmediatamente y la pospondrá hasta que sea realmente necesaria. La autenticación sigue siendo necesaria para el funcionamiento, pero este enfoque evita tiempos de espera durante la inicialización del servidor.
NOTA: La compatibilidad con servidores locales de Smithery se encuentra actualmente en desarrollo y es posible que aún no esté disponible.
Solución de problemas
Problemas de tiempo de espera del servidor
Si encuentra problemas de tiempo de espera al ejecutar el servidor con Smithery, intente lo siguiente:
Habilite el registro de depuración configurando
debug: trueen su configuraciónAsegúrese de que
lazyAuth: trueesté configurado para diferir la autenticación hasta que realmente sea necesariaAsegúrese de que su archivo de credenciales sea accesible y válido
Revise los registros para ver si hay mensajes de error
Importante : aún se requiere autenticación para la operación, pero con la carga diferida habilitada, el servidor se iniciará inmediatamente y se autenticará cuando sea necesario en lugar de hacerlo durante la inicialización.
Problemas de autenticación
El servidor admite dos métodos de autenticación:
Archivo de clave de cuenta de servicio : establezca la variable de entorno
GOOGLE_APPLICATION_CREDENTIALSen la ruta de su archivo de clave de cuenta de servicioVariables de entorno : Establezca las variables de entorno
GOOGLE_CLIENT_EMAILyGOOGLE_PRIVATE_KEY
Si tiene problemas de autenticación, asegúrese de:
Su cuenta de servicio tiene los permisos necesarios
El archivo de clave está correctamente formateado y es accesible
Las variables de entorno están configuradas correctamente
Available Tools
40 toolsgcp-billing-analyse-costsAnalyse Billing CostsC
Perform detailed cost analysis with trends and insights for Google Cloud billing data
Inputs: billingAccountName (required), startDate (required), endDate (required), projectId, +2 more.
gcp-billing-cost-recommendationsGenerate Cost RecommendationsB
Generate cost optimisation recommendations with potential savings for Google Cloud billing
Inputs: billingAccountName (required), projectId, minSavingsAmount, priority.
gcp-billing-detect-anomaliesDetect Cost AnomaliesC
Detect unusual cost patterns and spending anomalies in Google Cloud billing data
Inputs: billingAccountName (required), lookbackDays, thresholdPercentage, projectId.
gcp-billing-get-account-detailsGet Billing Account DetailsA
Retrieve detailed information about a specific Google Cloud billing account
Inputs: billingAccountName (required).
gcp-billing-get-project-infoGet Project Billing InformationA
Retrieve billing configuration and status for a Google Cloud project
Inputs: projectId.
gcp-billing-list-accountsList Billing AccountsA
List all Google Cloud billing accounts accessible to the user
Inputs: pageSize, pageToken, filter.
gcp-billing-list-projectsList Billing Account ProjectsA
List all projects associated with a specific Google Cloud billing account
Inputs: billingAccountName (required), pageSize, pageToken.
gcp-billing-list-servicesList Google Cloud ServicesB
List all available Google Cloud services for billing and cost analysis
Inputs: pageSize, pageToken.
gcp-billing-list-skusList Service SKUsB
List all SKUs (Stock Keeping Units) and pricing information for a Google Cloud service
Inputs: serviceId (required), pageSize, pageToken, currencyCode.
gcp-billing-service-breakdownGet Service Cost BreakdownC
Get detailed cost breakdown by Google Cloud service with usage and SKU information
Inputs: billingAccountName (required), projectId, timeRange.
gcp-error-reporting-analyse-trendsD
Inputs: no named parameters.
gcp-error-reporting-get-group-detailsD
Inputs: no named parameters.
gcp-error-reporting-list-groupsD
Inputs: no named parameters.
gcp-iam-analyse-permission-gapsAnalyse Permission GapsC
Compare current permissions against required permissions for specific operations and identify gaps
Inputs: requiredPermissions (required), project, operationDescription.
gcp-iam-get-project-policyGet Project IAM PolicyB
Retrieve the IAM policy for a Google Cloud project
Inputs: project, requestedPolicyVersion.
gcp-iam-list-deployment-servicesList Available Deployment ServicesB
List all GCP services with pre-defined deployment permission sets
Inputs: no named parameters.
gcp-iam-test-project-permissionsTest Project IAM PermissionsA
Test which permissions the current caller has on a Google Cloud project
Inputs: permissions (required), project.
gcp-iam-test-resource-permissionsTest Resource-Specific IAM PermissionsA
Test which permissions the current caller has on specific Google Cloud resources
Inputs: resource (required), permissions (required).
gcp-iam-validate-deployment-permissionsValidate Deployment PermissionsA
Check if current caller has required permissions for deploying to common GCP services
Inputs: service (required), project, includeOptional.
gcp-logging-query-logsQuery LogsB
Query Google Cloud Logs with custom filters. Searches across all payload types (text, JSON, proto) and metadata fields.
Inputs: filter (required), limit.
gcp-logging-query-time-rangeQuery Logs by Time RangeA
Query Google Cloud Logs within a specific time range. Supports relative times (1h, 2d) and ISO timestamps.
Inputs: startTime (required), endTime, filter, limit.
gcp-logging-search-comprehensiveComprehensive Log SearchC
Search across all log fields including textPayload, jsonPayload, protoPayload, labels, HTTP requests, and metadata. Provides maximum context.
Inputs: searchTerm (required), timeRange, severity, resource, +1 more.
gcp-monitoring-list-metric-typesD
Inputs: filter, pageSize, timeout.
gcp-monitoring-query-metricsD
Inputs: filter (required), startTime (required), endTime, alignmentPeriod.
gcp-monitoring-query-natural-languageD
Inputs: query (required), startTime, endTime, alignmentPeriod.
gcp-profiler-analyse-performanceD
Inputs: no named parameters.
gcp-profiler-compare-trendsD
Inputs: no named parameters.
gcp-profiler-list-profilesD
Inputs: no named parameters.
gcp-spanner-execute-queryD
Inputs: sql (required), instanceId, databaseId, params.
gcp-spanner-list-databasesD
Inputs: instanceId (required).
gcp-spanner-list-instancesD
Inputs: _dummy.
gcp-spanner-list-tablesD
Inputs: instanceId, databaseId.
gcp-spanner-query-countD
Inputs: instanceId, databaseId, queryType, status, +3 more.
gcp-spanner-query-natural-languageD
Inputs: query (required), instanceId, databaseId.
gcp-trace-find-from-logsD
Inputs: filter (required), projectId, limit.
gcp-trace-get-traceD
Inputs: traceId (required), projectId.
gcp-trace-list-tracesD
Inputs: projectId, filter, limit, startTime.
gcp-trace-query-natural-languageD
Inputs: query (required), projectId.
gcp-utils-get-project-idGet Project IDA
Get the current Google Cloud project ID and recent project history
Inputs: no named parameters.
gcp-utils-set-project-idSet Project IDB
Set the default Google Cloud project ID to use for all operations
Inputs: project_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 40 tools
Tools are separated by service prefix, but within services like logging and Spanner, multiple tools for querying logs or databases overlap in purpose. Additionally, many tools lack descriptions, increasing ambiguity.
All tools follow a consistent pattern: 'gcp-{service}-{action}-{noun}' in snake_case. For example, gcp-billing-list-accounts, gcp-iam-get-project-policy. No mixing of styles.
40 tools is high but not extreme for a multi-service server. However, several services have only 3 tools with missing descriptions, suggesting the count is inflated without full coverage.
Many services have significant gaps: error reporting, monitoring, profiler, and trace lack CRUD operations and detailed descriptions. Spanner is missing update/delete. Billing and logging are more complete, but overall surface is incomplete.
Maintenance
Related MCP Connectors
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.
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 Model Context Protocol server for Wix AI tools
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants like Claude to interact with Google Cloud Platform environments through natural language, allowing users to query and manage GCP resources during conversations.9171 npm199MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables LLMs to understand BigQuery dataset structures and execute SQL queries.5MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that connects to Google Cloud services, allowing users to query logs, interact with Spanner databases, and analyze monitoring metrics through natural language.MIT
- AlicenseDqualityDmaintenanceAn MCP server that enables querying and interacting with Google Cloud services including Logging, Spanner, Monitoring, and Cloud Trace through natural language.171MIT