google-cloud-mcp
by krzko·★ 78·综合分 45
全面的 MCP 服务器,提供对多个 Google Cloud 服务的访问,包括计费、监控、IAM、Spanner 等。
概述
Google Cloud MCP 服务器通过模型上下文协议 (MCP) 提供 Google Cloud Platform 服务的广泛集成。它提供专业工具用于计费分析、错误监控、IAM 管理、日志查询、Spanner 数据库操作、指标监控、性能分析和分布式跟踪。该服务器支持服务账户密钥文件和环境变量两种认证方法,使其适用于各种部署场景。文档清晰,提供大量示例,用户可以通过自然语言提示轻松连接其 GCP 资源。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您已经在使用 Google Cloud 服务,并且需要 AI 协助进行成本管理、调试或基础设施监控而不必在多个工具间切换,请选择此 MCP 服务器。
什么时候不要选它
如果您不使用 Google Cloud 服务或更喜欢供应商无关的解决方案,请避免使用此服务器,因为它与 Google Cloud 紧密耦合,可能会引入单厂商锁定问题。
此 server 暴露的工具
从 README 抽取出 12 个工具gcp-billing-list-accountsList all Google Cloud billing accounts
gcp-billing-analyse-costsAnalyze costs for a specific Google Cloud project
gcp-error-reporting-list-groupsList error groups from Google Cloud Error Reporting
gcp-iam-get-project-policyGet IAM policy for a Google Cloud project
gcp-logging-query-logsQuery and filter log entries from Google Cloud Logging
gcp-spanner-execute-queryExecute SQL queries on Google Cloud Spanner databases
gcp-monitoring-query-metricsRetrieve and analyze metrics from Google Cloud Monitoring
gcp-profiler-list-profilesList CPU and heap profiles from Google Cloud Profiler
gcp-trace-get-traceGet details of a specific trace from Google Cloud Trace
gcp-billing-cost-recommendationsGenerate cost optimization recommendations for Google Cloud billing
gcp-iam-test-project-permissionsTest specific permissions for a Google Cloud project
gcp-monitoring-query-natural-languageQuery Google Cloud Monitoring using natural language
可对比工具
安装
# 克隆并安装仓库
git clone https://github.com/krzko/google-cloud-mcp.git
cd google-cloud-mcp
pnpm install
pnpm build
# 身份验证到 Google Cloud
gcloud auth application-default login
# 在 Claude Desktop 中配置
{
"mcpServers": {
"google-cloud-mcp": {
"command": "node",
"args": ["/path/to/google-cloud-mcp/dist/index.js"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json"
}
}
}
}FAQ
- 支持哪些认证方法?
- 该服务器支持通过 GOOGLE_APPLICATION_CREDENTIALS 环境变量的服务账户密钥文件(推荐),或直接使用 GOOGLE_CLIENT_EMAIL 和 GOOGLE_PRIVATE_KEY 环境变量。
- 如何解决超时问题?
- 在配置中启用调试日志 'debug: true',设置 'lazyAuth: true' 延迟认证直到需要时,确保凭据可访问,并检查日志中的错误消息。
google-cloud-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。