GCP MCP Log Diagnostics
Provides tools for fetching logs from GCP Cloud Logging, enabling analysis and diagnosis of cloud resources.
Uses Gemini AI to analyze GCP logs, diagnose issues, identify root causes, and suggest fixes.
Click on "Install 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 Log Diagnosticsdiagnose errors in the last hour from Cloud Run"
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 Log Diagnostics
This project provides tools for diagnosing Google Cloud Platform (GCP) logs using the Model Context Protocol (MCP) and Google Gemini AI.
Overview
diagnose.py: A script that uses Gemini AI to analyze GCP logs fetched via MCP tools. It diagnoses issues, identifies root causes, and suggests fixes.log_mcp_server.py: An MCP server that exposes tools for fetching logs from GCP Cloud Logging.
Related MCP server: GCP MCP Server
Prerequisites
Python 3.8+
Google Cloud Project with appropriate permissions for Cloud Logging
Gemini API key
Setup
Clone or download the project files.
Install dependencies:
pip install -r requirements.txtSet up environment variables in a
.envfile:GEMINI_API_KEY=your_gemini_api_key_hereEnsure your Google Cloud credentials are configured (e.g., via
gcloud auth application-default login).Run the diagnosis:
python diagnose.py
Usage
The diagnose.py script is configured to fetch the last 2 hours of ERROR and CRITICAL logs from Cloud Run and provide a diagnosis. You can modify the query in the script or extend it for other resource types.
Dependencies
python-dotenv: For loading environment variablesgoogle-generativeai: For interacting with Gemini AIfastmcp: For MCP client and server functionalitygoogle-cloud-logging: For accessing GCP Cloud Logging
License
[Add license information if applicable]
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAllows developers and AI Agents to query Google Cloud Logging using natural language, translating queries into Google Cloud Logging Query Language (LQL) with Vertex AI Gemini 2.5.Last updated1
- Alicense-qualityDmaintenanceEnables AI assistants to interact with Google Cloud Platform services for log analysis and root cause investigation. Provides tools to query Cloud Logging, detect error patterns, and perform real-time log streaming across multiple GCP projects.Last updatedMIT
- AlicenseCqualityDmaintenanceEnables interaction with Google Cloud services including billing cost analysis, log querying, and metrics monitoring through natural language commands. Provides comprehensive tools for managing GCP resources, analyzing costs, detecting anomalies, and retrieving operational insights.Last updated401Apache 2.0
- Alicense-qualityFmaintenanceEnables AI assistants to query, search, and analyze logs across Google Cloud Platform projects. It supports advanced filtering by severity or resource type and provides detailed log entry retrieval and project listing capabilities.Last updated4511MIT
Related MCP Connectors
Remote MCP for Gemini upgrade evals, prompt regressions, output diffs, and eval receipts.
A paid remote MCP for AI SDK data query MCP, built to return verdicts, receipts, usage logs, and aud
Remote MCP for MCP tool deprecation receipt, structured receipts, audit logs, and reviewer-ready evi
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kanhaiworld/gcp_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server