Google Cloud Logging
About
An MCP server for accessing Google Cloud Logging data and services.
Details
- Author
- swen128
- Categories
- Cloud Service, Other, Infrastructure
Jump to
Setup
Install Google Cloud Logging in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/swen128/cloud-logging-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
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.
- 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
- Bunruntime
- Google Cloud credentials configured
- Access to Google Cloud Logging API
# Option 1: Use gcloud CLI gcloud auth application-default login # Option 2: Use service account export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account.json"
export GOOGLE_CLOUD_PROJECT="your-project-id"
Add the following to your Claude Desktop configuration file:
macOS:~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:%APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "cloud-logging": { "command": "bun", "args": ["run", "/path/to/cloud-logging-mcp/src/main.ts"], "env": { "GOOGLE_CLOUD_PROJECT": "your-project-id" } } } }
Search and filter logs from Google Cloud Logging.
{ "tool": "queryLogs", "input": { "projectId": "my-project", "filter": "resource.type=\"cloud_run_revision\" AND severity>=ERROR", "orderBy": { "timestamp": "desc" }, "pageSize": 50 } }
- projectId: GCP project ID
- filter: Log filter query (follows GCP logging query syntax)
- orderBy: Sort order for results
- pageSize: Number of results per page
- pageToken: Token for pagination
- resourceNames: Specific log resources to query
- summaryFields: Fields to include in the summary
Retrieve complete details for a specific log entry.
{ "tool": "getLogDetail", "input": { "projectId": "my-project", "logId": "65f5a7b60000000001234567" } }
- projectId: GCP project ID
- logId: The unique identifier of the log entry
List all accessible Google Cloud projects.
{ "tool": "listProjects", "input": {} }
- 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"
- Authentication errors:Ensure your Google Cloud credentials are properly configured
- Permission errors:Check that your account has thelogging.logEntries.listpermission
- No results:Verify your filter syntax and that logs exist for your query
# Run tests bun test # Type checking bun run typecheck # Linting bun run lint # Format code bun run format
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
Fetch logs, metrics, traces, and events from the Chronosphere observability platform.
Access AWS CloudWatch logs to list log groups and read log entries.
Navigate your Aiven projects and interact with the PostgreSQL®, Apache Kafka®, ClickHouse® and OpenSearch® services
This AWS Labs Model Context Protocol (MCP) server for CloudTrail enables your AI agents to query AWS account activity for security investigations, compliance auditing, and operational troubleshooting.
Manage and interact with Microsoft Azure services.
Deploy and operate workloads, secrets, and networking across AWS, GCP, Azure, and private clouds.
An MCP Server that connects to Gemini Cloud Assist APIs, enabling you to manage and troubleshoot your Google Cloud environment using natural language.
The IBM Instana MCP server enables seamless interaction with the IBM Instana observability platform, allowing you to access real-time observability data directly within your development workflow.
Query and interact with kubernetes environments monitored by Metoro
Interact with the RAD Security platform which provides AI-powered security insights for Kubernetes and cloud environments.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




