Labsco
swen128 logo

Google Cloud Logging

β˜… 11

from swen128

An MCP server for accessing Google Cloud Logging data and services.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeAdvanced setup

Google Cloud Logging MCP Server

A Model Context Protocol (MCP) server that provides access to Google Cloud Logging. This server allows AI assistants to query, search, and analyze logs from Google Cloud Platform projects.

Features

  • Query Logs: Search and filter logs across GCP projects
  • Get Log Details: Retrieve detailed information about specific log entries
  • List Projects: List available GCP projects

Common Filter Examples

  • By severity: severity>=ERROR
  • By time range: timestamp>="2024-01-01T00:00:00Z"
  • By resource: resource.type="cloud_run_revision"
  • By text search: textPayload:"connection timeout"
  • Combined: resource.type="k8s_container" AND severity=ERROR AND timestamp>="2024-01-01T00:00:00Z"

Development

# Run tests
bun test

# Type checking
bun run typecheck

# Linting
bun run lint

# Format code
bun run format

Architecture

The server follows a clean architecture pattern:

  • /adapter: External service integrations (Google Cloud APIs)
  • /domain: Core business logic and data models
  • /port: Interface definitions and MCP tool handlers
  • /util: Utility functions and helpers

License

MIT