MCP Catalogs
首页

google-cloud-mcp

by krzko·78·综合分 45

全面的 MCP 服务器,提供对多个 Google Cloud 服务的访问,包括计费、监控、IAM、Spanner 等。

cloud-storagedeveloper-toolsops-infra
20
Forks
8
活跃 Issue
5 个月前
最近提交
2 天前
收录于

概述

Google Cloud MCP 服务器通过模型上下文协议 (MCP) 提供 Google Cloud Platform 服务的广泛集成。它提供专业工具用于计费分析、错误监控、IAM 管理、日志查询、Spanner 数据库操作、指标监控、性能分析和分布式跟踪。该服务器支持服务账户密钥文件和环境变量两种认证方法,使其适用于各种部署场景。文档清晰,提供大量示例,用户可以通过自然语言提示轻松连接其 GCP 资源。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:DevOps 工程师监控云基础设施成本和性能
:开发人员使用错误报告和日志调试应用程序
:安全团队审计 IAM 权限和访问控制
:支持哪些认证方法?
:如何解决超时问题?

什么时候选它

如果您已经在使用 Google Cloud 服务,并且需要 AI 协助进行成本管理、调试或基础设施监控而不必在多个工具间切换,请选择此 MCP 服务器。

什么时候不要选它

如果您不使用 Google Cloud 服务或更喜欢供应商无关的解决方案,请避免使用此服务器,因为它与 Google Cloud 紧密耦合,可能会引入单厂商锁定问题。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • gcp-billing-list-accounts

    List all Google Cloud billing accounts

  • gcp-billing-analyse-costs

    Analyze costs for a specific Google Cloud project

  • gcp-error-reporting-list-groups

    List error groups from Google Cloud Error Reporting

  • gcp-iam-get-project-policy

    Get IAM policy for a Google Cloud project

  • gcp-logging-query-logs

    Query and filter log entries from Google Cloud Logging

  • gcp-spanner-execute-query

    Execute SQL queries on Google Cloud Spanner databases

  • gcp-monitoring-query-metrics

    Retrieve and analyze metrics from Google Cloud Monitoring

  • gcp-profiler-list-profiles

    List CPU and heap profiles from Google Cloud Profiler

  • gcp-trace-get-trace

    Get details of a specific trace from Google Cloud Trace

  • gcp-billing-cost-recommendations

    Generate cost optimization recommendations for Google Cloud billing

  • gcp-iam-test-project-permissions

    Test specific permissions for a Google Cloud project

  • gcp-monitoring-query-natural-language

    Query Google Cloud Monitoring using natural language

可对比工具

aws-mcpazure-mcpopenstack-mcp

安装

# 克隆并安装仓库
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 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。