Google CloudSAFE
🤖 A Model Context Protocol (MCP) server for Google Cloud (GCP)
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
A Model Context Protocol server that connects to Google Cloud services to provide context and tools for interacting with your Google Cloud resources.
Services
Supported Google Cloud services:
- [x] Billing
- [x] Error Reporting
- [x] Identity and Access Management (IAM)
- [x] Logging
- [x] Monitoring
- [x] Profiler
- [x] Spanner
- [x] Trace
Billing
Manage and analyse Google Cloud billing with cost optimisation insights:
Tools: gcp-billing-list-accounts, gcp-billing-get-account-details, gcp-billing-list-projects, gcp-billing-get-project-info, gcp-billing-list-services, gcp-billing-list-skus, gcp-billing-analyse-costs, gcp-billing-detect-anomalies, gcp-billing-cost-recommendations, gcp-billing-service-breakdown
Example prompts:
- "Show me all my billing accounts"
- "Analyse costs for project my-app-prod-123 for the last 30 days"
- "Generate cost recommendations for billing account billingAccounts/123456-789ABC-DEF012"
- "Check for billing anomalies in project my-ecommerce-456"
Error Reporting
Monitor and analyse application errors with automated investigation and remediation suggestions:
Tools: gcp-error-reporting-list-groups, gcp-error-reporting-get-group-details, gcp-error-reporting-analyse-trends
Example prompts:
- "Show me error groups from project my-webapp-prod-789 for the last hour"
- "Get details for error group projects/my-app-123/groups/xyz789"
- "Analyse error trends for service m
362905660ef8OBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add google-cloud-mcp --env GOOGLE_APPLICATION_CREDENTIALS=${GOOGLE_APPLICATION_CREDENTIALS} --env GOOGLE_PRIVATE_KEY=${GOOGLE_PRIVATE_KEY} --env LAZY_AUTH=${LAZY_AUTH} -- npx -y [email protected]{
"mcpServers": {
"google-cloud-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "${GOOGLE_APPLICATION_CREDENTIALS}",
"GOOGLE_PRIVATE_KEY": "${GOOGLE_PRIVATE_KEY}",
"LAZY_AUTH": "${LAZY_AUTH}"
}
}
}
}Exposed tools (40)
38 read · 2 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
gcp-billing-analyse-costs | read | |
gcp-billing-cost-recommendations | read | |
gcp-billing-detect-anomalies | read | |
gcp-billing-get-account-details | read | |
gcp-billing-get-project-info | read | |
gcp-billing-list-accounts | read | |
gcp-billing-list-projects | read | |
gcp-billing-list-services | read | |
gcp-billing-list-skus | read | |
gcp-billing-service-breakdown | read | |
gcp-error-reporting-analyse-trends | read | |
gcp-error-reporting-get-group-details | read | |
gcp-error-reporting-list-groups | read | |
gcp-iam-analyse-permission-gaps | read | |
gcp-iam-get-project-policy | read | |
gcp-iam-list-deployment-services | read | |
gcp-iam-test-project-permissions | read | |
gcp-iam-test-resource-permissions | read | |
gcp-iam-validate-deployment-permissions | read | |
gcp-logging-query-logs | read | |
gcp-logging-query-time-range | read | |
gcp-logging-search-comprehensive | read | |
gcp-monitoring-list-metric-types | read | |
gcp-monitoring-query-metrics | read | |
gcp-monitoring-query-natural-language | read | |
gcp-profiler-analyse-performance | read | |
gcp-profiler-compare-trends | read | |
gcp-profiler-list-profiles | read | |
gcp-spanner-execute-query | write | |
gcp-spanner-list-databases | read | |
gcp-spanner-list-instances | read | |
gcp-spanner-list-tables | read | |
gcp-spanner-query-count | read | |
gcp-spanner-query-natural-language | read | |
gcp-trace-find-from-logs | read | |
gcp-trace-get-trace | read | |
gcp-trace-list-traces | read | |
gcp-trace-query-natural-language | read | |
gcp-utils-get-project-id | read | |
gcp-utils-set-project-id | write |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (5 observation(s))
- Network
- declared (5 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (15)
import { getProjectId } from "../../utils/auth.js";import { stateManager } from "../../utils/state-manager.js";import { GcpMcpError } from "../../utils/error.js";import { logger } from "../../utils/logger.js";import { getProjectId } from "../../utils/auth.js";@google-cloud/billing, @google-cloud/iam, @google-cloud/logging, @google-cloud/monitoring, @google-cloud/resource-manager, @google-cloud/spanner, @google-cloud/trace-agent, @modelcontextprotocol/sdk
* **Streamable HTTP transport**: Uses HTTP POST for client-to-server messages with optional Server-Sent Events for streaming capabilities. This transport enables remote server communication and suppor
MCP clients **MUST NOT** send tokens to the MCP server other than ones issued by the MCP server's authorization server.
Client->>+Server: POST InitializedNotification<br>Mcp-Session-Id: 1868a90c...
Client->>+Server: POST ... request ...<br>Mcp-Session-Id: 1868a90c...
Client->>+Server: POST ... notification/response ...<br>Mcp-Session-Id: 1868a90c...
src/services/monitoring/metrics_gcp.md
load_dotenv() # load environment variables from .env
This creates the beginnings of a .NET console application that can read the API key from user secrets.
curl -LsSf https://astral.sh/uv/install.sh | sh
Gates applied: no_behavioural_pass.
362905660ef8full audit observations/trust-audit/mcp-server/krzko__google-cloud.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 362905660ef8 | SAFE | B | 89 | first audit |
Questions
What is the Google Cloud MCP server?
🤖 A Model Context Protocol (MCP) server for Google Cloud (GCP)
What tools does Google Cloud expose?
40 in total: 38 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Google Cloud safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Google Cloud need?
It reads GOOGLE_APPLICATION_CREDENTIALS, GOOGLE_PRIVATE_KEY and LAZY_AUTH from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Google Cloud run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as google-cloud-mcp at 0.5.0.
How current is this page?
The grade is for one exact copy of the source (362905660ef8), read on 2026-10-07. The repository is watched and re-audited when it changes.