mcp-gke-log-server
Verified Safeby agileguy
Overview
A Model Context Protocol (MCP) server that enables AI assistants to query and retrieve Google Kubernetes Engine logs from Cloud Logging.
Installation
python -m gke_logs_mcp.serverEnvironment Variables
- GCP_PROJECT_ID
- DEFAULT_MAX_ENTRIES
- DEFAULT_HOURS_BACK
- LOG_LEVEL
- TIMEOUT_SECONDS
- CACHE_TTL_SECONDS
Security Notes
The server implements robust input validation for resource names and filter strings to prevent injection attacks. It uses minimal IAM permissions ('roles/logging.viewer', 'roles/container.clusterViewer'). Production deployments leverage Kubernetes Workload Identity, run as a non-root user with a read-only root filesystem, drop all capabilities, and include Network Policies to restrict traffic. No direct 'eval' or 'exec' with user-controlled input is present. The regex used for pod names and search text is passed to the Cloud Logging API, relying on GCP's security for filter evaluation.
Similar Servers
gcloud-mcp
Enables AI assistants to interact with the Google Cloud environment using the gcloud CLI for natural language cloud management and workflow automation.
mcp-k8s-go
This MCP server enables interaction with Kubernetes clusters to list, get, apply, and execute commands on various resources through a conversational interface.
mcp-k8s
Facilitates natural language interaction and automation for Kubernetes cluster management and Helm operations via the Model Control Protocol (MCP).
mkp
MKP is a Model Context Protocol (MCP) server for Kubernetes, enabling LLM-powered applications to interact with Kubernetes clusters by providing tools for resource listing, getting, applying, deleting, and executing commands.