Google Cloud MCP Server
Google Cloud MCP サーバー
Google Cloud サービスに接続して、Google Cloud リソースを操作するためのコンテキストとツールを提供するモデル コンテキスト プロトコル サーバー。
サービス
サポートされているサービス:
[x] Googleクラウドロギング
[x] Google Cloud モニタリング
[x] Google Cloud Spanner
開発中のサーバー:
[ ] Google Cloud Trace
[ ] Google IAM
[ ] Googleクラウドコンピューティング
[ ] Google Cloud Run
[ ] Googleクラウドストレージ
Google クラウド ロギング
Google Cloud Logging からのログエントリをクエリおよびフィルタリングします。
カスタムフィルターを使用してログをクエリする
特定の時間範囲内のログを検索する
ログエントリを読み取り可能な形式でフォーマットして表示する
Google Cloud Spanner
Google Cloud Spanner データベースと対話する:
Spanner データベースに対して SQL クエリを実行する
利用可能なデータベースとテーブルを一覧表示する
データベーススキーマの探索
Google Cloud モニタリング
Google Cloud Monitoring から指標を取得して分析します。
カスタムフィルターを使用したクエリメトリクス
メトリックデータを時間経過とともに視覚化する
利用可能なメトリックの種類を一覧表示する
Google Cloud Trace
Google Cloud Trace からの分散トレースを分析します。
IDでトレースを取得する
フィルタリングオプションを使用して最近のトレースを一覧表示する
ログに関連付けられたトレースを検索する
失敗したトレースを特定する
自然言語を使用してトレースを照会します(例:「過去 1 時間の失敗したトレースを表示してください」)
Related MCP server: BigQuery MCP Server
認証
このサーバーは、Google Cloud での 2 つの認証方法をサポートしています。
サービス アカウント キー ファイル(推奨):
GOOGLE_APPLICATION_CREDENTIALS環境変数にサービス アカウント キー ファイルのパスを設定します。これは Google Cloud の標準認証方法です。環境変数:
GOOGLE_CLIENT_EMAILおよびGOOGLE_PRIVATE_KEY環境変数を直接設定します。これは、キーファイルの保存が現実的でない環境で便利です。
サーバーは、設定されている場合はGOOGLE_CLOUD_PROJECT環境変数も使用します。設定されていない場合は、認証資格情報からプロジェクト ID を判別しようとします。
インストール
# Clone the repository
git clone https://github.com/krzko/google-cloud-mcp.git
cd google-cloud-mcp
# Install dependencies
pnpm install
# Build
pnpm buildGoogle Cloud への認証:
gcloud auth application-default loginクライアントでmcpServersを構成します。
{
"mcpServers": {
"google-cloud-mcp": {
"command": "node",
"args": [
"/Users/foo/code/google-cloud-mcp/dist/index.js"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/Users/foo/.config/gcloud/application_default_credentials.json"
}
}
}
}発達
サーバーの起動
# Build the project
pnpm build
# Start the server
pnpm start開発モード
# Build the project
pnpm build
# Start the server and inspector
npx -y @modelcontextprotocol/inspector node dist/index.jsSmithery での使用(近日)
このサーバーはSmitheryで導入・使用できます。サーバーは認証の遅延読み込みを実装しており、起動は即時に行われ、実際に必要になるまで認証は遅延されます。動作には認証が必要ですが、このアプローチによりサーバーの初期化中にタイムアウトが発生するのを防ぎます。
注意: Smithery ローカル サーバーのサポートは現在開発中であり、まだ利用できない可能性があります。
トラブルシューティング
サーバーのタイムアウトの問題
Smithery を使用してサーバーを実行しているときにタイムアウトの問題が発生した場合は、次の操作を試してください。
設定で
debug: trueを設定してデバッグログを有効にする実際に必要になるまで認証を延期するために、
lazyAuth: trueが設定されていることを確認します。資格情報ファイルにアクセスでき、有効であることを確認してください
ログにエラーメッセージがないか確認してください
重要: 操作には依然として認証が必要ですが、遅延読み込みを有効にすると、サーバーは初期化時ではなく必要なときにすぐに起動して認証を行います。
認証の問題
サーバーは 2 つの認証方法をサポートしています。
サービス アカウント キー ファイル:
GOOGLE_APPLICATION_CREDENTIALS環境変数をサービス アカウント キー ファイルのパスに設定します。環境変数:
GOOGLE_CLIENT_EMAILおよびGOOGLE_PRIVATE_KEY環境変数を設定する
認証の問題が発生した場合は、次の点を確認してください。
サービスアカウントに必要な権限がある
キーファイルは適切にフォーマットされ、アクセス可能である
環境変数が正しく設定されている
Available Tools
40 toolsgcp-billing-analyse-costsAnalyse Billing CostsC
Perform detailed cost analysis with trends and insights for Google Cloud billing data
Inputs: billingAccountName (required), startDate (required), endDate (required), projectId, +2 more.
gcp-billing-cost-recommendationsGenerate Cost RecommendationsB
Generate cost optimisation recommendations with potential savings for Google Cloud billing
Inputs: billingAccountName (required), projectId, minSavingsAmount, priority.
gcp-billing-detect-anomaliesDetect Cost AnomaliesC
Detect unusual cost patterns and spending anomalies in Google Cloud billing data
Inputs: billingAccountName (required), lookbackDays, thresholdPercentage, projectId.
gcp-billing-get-account-detailsGet Billing Account DetailsA
Retrieve detailed information about a specific Google Cloud billing account
Inputs: billingAccountName (required).
gcp-billing-get-project-infoGet Project Billing InformationA
Retrieve billing configuration and status for a Google Cloud project
Inputs: projectId.
gcp-billing-list-accountsList Billing AccountsA
List all Google Cloud billing accounts accessible to the user
Inputs: pageSize, pageToken, filter.
gcp-billing-list-projectsList Billing Account ProjectsA
List all projects associated with a specific Google Cloud billing account
Inputs: billingAccountName (required), pageSize, pageToken.
gcp-billing-list-servicesList Google Cloud ServicesB
List all available Google Cloud services for billing and cost analysis
Inputs: pageSize, pageToken.
gcp-billing-list-skusList Service SKUsB
List all SKUs (Stock Keeping Units) and pricing information for a Google Cloud service
Inputs: serviceId (required), pageSize, pageToken, currencyCode.
gcp-billing-service-breakdownGet Service Cost BreakdownC
Get detailed cost breakdown by Google Cloud service with usage and SKU information
Inputs: billingAccountName (required), projectId, timeRange.
gcp-error-reporting-analyse-trendsD
Inputs: no named parameters.
gcp-error-reporting-get-group-detailsD
Inputs: no named parameters.
gcp-error-reporting-list-groupsD
Inputs: no named parameters.
gcp-iam-analyse-permission-gapsAnalyse Permission GapsC
Compare current permissions against required permissions for specific operations and identify gaps
Inputs: requiredPermissions (required), project, operationDescription.
gcp-iam-get-project-policyGet Project IAM PolicyB
Retrieve the IAM policy for a Google Cloud project
Inputs: project, requestedPolicyVersion.
gcp-iam-list-deployment-servicesList Available Deployment ServicesB
List all GCP services with pre-defined deployment permission sets
Inputs: no named parameters.
gcp-iam-test-project-permissionsTest Project IAM PermissionsA
Test which permissions the current caller has on a Google Cloud project
Inputs: permissions (required), project.
gcp-iam-test-resource-permissionsTest Resource-Specific IAM PermissionsA
Test which permissions the current caller has on specific Google Cloud resources
Inputs: resource (required), permissions (required).
gcp-iam-validate-deployment-permissionsValidate Deployment PermissionsA
Check if current caller has required permissions for deploying to common GCP services
Inputs: service (required), project, includeOptional.
gcp-logging-query-logsQuery LogsB
Query Google Cloud Logs with custom filters. Searches across all payload types (text, JSON, proto) and metadata fields.
Inputs: filter (required), limit.
gcp-logging-query-time-rangeQuery Logs by Time RangeA
Query Google Cloud Logs within a specific time range. Supports relative times (1h, 2d) and ISO timestamps.
Inputs: startTime (required), endTime, filter, limit.
gcp-logging-search-comprehensiveComprehensive Log SearchC
Search across all log fields including textPayload, jsonPayload, protoPayload, labels, HTTP requests, and metadata. Provides maximum context.
Inputs: searchTerm (required), timeRange, severity, resource, +1 more.
gcp-monitoring-list-metric-typesD
Inputs: filter, pageSize, timeout.
gcp-monitoring-query-metricsD
Inputs: filter (required), startTime (required), endTime, alignmentPeriod.
gcp-monitoring-query-natural-languageD
Inputs: query (required), startTime, endTime, alignmentPeriod.
gcp-profiler-analyse-performanceD
Inputs: no named parameters.
gcp-profiler-compare-trendsD
Inputs: no named parameters.
gcp-profiler-list-profilesD
Inputs: no named parameters.
gcp-spanner-execute-queryD
Inputs: sql (required), instanceId, databaseId, params.
gcp-spanner-list-databasesD
Inputs: instanceId (required).
gcp-spanner-list-instancesD
Inputs: _dummy.
gcp-spanner-list-tablesD
Inputs: instanceId, databaseId.
gcp-spanner-query-countD
Inputs: instanceId, databaseId, queryType, status, +3 more.
gcp-spanner-query-natural-languageD
Inputs: query (required), instanceId, databaseId.
gcp-trace-find-from-logsD
Inputs: filter (required), projectId, limit.
gcp-trace-get-traceD
Inputs: traceId (required), projectId.
gcp-trace-list-tracesD
Inputs: projectId, filter, limit, startTime.
gcp-trace-query-natural-languageD
Inputs: query (required), projectId.
gcp-utils-get-project-idGet Project IDA
Get the current Google Cloud project ID and recent project history
Inputs: no named parameters.
gcp-utils-set-project-idSet Project IDB
Set the default Google Cloud project ID to use for all operations
Inputs: project_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 40 tools
Tools are separated by service prefix, but within services like logging and Spanner, multiple tools for querying logs or databases overlap in purpose. Additionally, many tools lack descriptions, increasing ambiguity.
All tools follow a consistent pattern: 'gcp-{service}-{action}-{noun}' in snake_case. For example, gcp-billing-list-accounts, gcp-iam-get-project-policy. No mixing of styles.
40 tools is high but not extreme for a multi-service server. However, several services have only 3 tools with missing descriptions, suggesting the count is inflated without full coverage.
Many services have significant gaps: error reporting, monitoring, profiler, and trace lack CRUD operations and detailed descriptions. Spanner is missing update/delete. Billing and logging are more complete, but overall surface is incomplete.
Maintenance
Related MCP Connectors
The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze data—enabling direct access to enterprise analytics data without requiring manual SQL coding.
The Google GKE MCP server is a managed Model Context Protocol server that provides AI applications with tools to manage Google Kubernetes Engine (GKE) clusters and Kubernetes resources. It exposes a structured, discoverable interface that allows AI agents to interact with GKE and Kubernetes APIs, enabling them to inspect cluster configurations, retrieve Kubernetes resource YAMLs, monitor operations like cluster upgrades, diagnose issues, and optimize costs—all without needing to parse text output or use complex kubectl commands.
The Google Compute Engine MCP server is a fully-managed Model Context Protocol server that provides tools to manage Google Compute Engine resources through AI agents. It enables capabilities including instance management (creating, starting, stopping, resetting, listing), disk management, handling instance templates and group managers, viewing machine and accelerator types, managing images, and accessing reservation and commitment information. The server operates as a zero-deployment, enterprise-grade endpoint at https://compute.googleapis.com/mcp with built-in IAM-based security.
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants like Claude to interact with Google Cloud Platform environments through natural language, allowing users to query and manage GCP resources during conversations.9171 npm199MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables LLMs to understand BigQuery dataset structures and execute SQL queries.5MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that connects to Google Cloud services, allowing users to query logs, interact with Spanner databases, and analyze monitoring metrics through natural language.MIT
- AlicenseDqualityDmaintenanceAn MCP server that enables querying and interacting with Google Cloud services including Logging, Spanner, Monitoring, and Cloud Trace through natural language.171MIT