mcp-server-google-logging
by kazuhideoki
This MCP server retrieves logs from Google Cloud Logging based on specific criteria. It aims to provide necessary log information, such as content, resource name, and timestamp, in a YAML format, focusing on essential details.
Last updated: N/A
What is mcp-server-google-logging?
This is an MCP (Meta-Config Protocol) server designed to retrieve and present log data from Google Cloud Logging. It addresses the challenge of obtaining log information from different contexts (YS4B, residential, detached houses) with varying log output methods and domain knowledge by providing a unified interface to access logs as resources.
How to use mcp-server-google-logging?
To use the server, you need to have the gcloud CLI installed and be logged in with appropriate IAM permissions. You can run the server using the provided command: node -- /path/to/mcp-server-google-logging/dist/index.js --project=<project-id>
. The server returns data in YAML format using the --format yaml
option.
Key features of mcp-server-google-logging
Retrieves logs from Google Cloud Logging
Returns log data in YAML format
Filters logs based on specified criteria (though limited filtering capabilities)
Provides essential log information (content, resource name, timestamp)
Supports project ID as a startup parameter
Use cases of mcp-server-google-logging
Retrieving OCPP-related logs (transactions, status, connection status)
Retrieving service-related logs (reservations, usage logs, administrator logs)
Centralized log access for different project contexts
Integrating Google Cloud Logging data into MCP-based systems
FAQ from mcp-server-google-logging
How do I filter logs?
How do I filter logs?
Filtering is limited. While you can specify conditions when querying logs with gcloud logging read
, the server itself has limited filtering capabilities.
What kind of information is included in the logs?
What kind of information is included in the logs?
The logs include essential information such as the content, resource name, and timestamp.
What format does the server return the logs in?
What format does the server return the logs in?
The server returns the logs in YAML format when using the --format yaml
option.
What are the prerequisites for using this server?
What are the prerequisites for using this server?
You need to have the gcloud CLI installed, be logged in to gcloud, and have the necessary IAM permissions.
Can I monitor logs in real-time?
Can I monitor logs in real-time?
This server does not provide real-time log monitoring capabilities similar to gcloud logging tail
.