gcp-mcp-setup

gcp-mcp-setup is a skill for Claude Code from gemini-cli-extensions/sre. It costs 70 tokens per session (943 once invoked), scanned B, original, Apache-2.0.

A setup guide for Google Managed MCP servers, which let command-line tools access Google Cloud services. It enables the services, creates an API key, and writes settings for Gemini, Antigravity, or Copilot CLI.

In plain words
What is it for?
Use it to configure Google Cloud Logging, Monitoring, GKE, Cloud Run, Resource Manager, and Developer Knowledge servers, with optional services such as BigQuery and Vertex AI.
Why use it?
It removes the manual work of enabling Google Cloud APIs and connecting MCP servers to your command-line environment.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Gemini CLI.

Part of the sre-extension plugin — 16 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/gemini-cli-extensions/sre/gcp-mcp-setup
Any agent
npx skills add gemini-cli-extensions/sre --skill gcp-mcp-setup
Clone the repo
git clone --depth 1 https://github.com/gemini-cli-extensions/sre

Made for: Claude Code.

Or install sre-extension, the plugin that ships this one along with the rest of its 16 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gcp-mcp-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/gemini-cli-extensions/sre/gcp-mcp-setup.svg)](https://agentmods.dev/skills/gemini-cli-extensions/sre/gcp-mcp-setup)
Your own site
<a href="https://agentmods.dev/skills/gemini-cli-extensions/sre/gcp-mcp-setup"><img src="https://agentmods.dev/badge/skills/gemini-cli-extensions/sre/gcp-mcp-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 943 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.00943
Opus 5 $0.00035 $0.00472
Sonnet 5 $0.00014 $0.00189
Haiku 4.5 $0.00007 $0.00094

Measured 6d ago against content hash ba5aab434c64, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

gcp-mcp-setup scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/harness_registry.py, scripts/setup_onemcp.py, scripts/test_mcp_endpoint.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **Gemini CLI**: `.gemini/settings.json` (local) or `~/.gemini/settings.json` (global).
skills/gcp-mcp-setup/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OneMCP Setup Skill

Overview

This skill provides the automated steps to configure your environment and enable the Core Google Managed MCP servers (Logging, Monitoring, GKE, Run, Resource Manager, Developer Knowledge) by default. Use the --all flag to include additional services like Error Reporting, Cloud SQL, Spanner, Pub/Sub, Vertex AI, Firestore, and BigQuery.

When to Use

Use this skill when the user asks to "install OneMCP", "setup OneMCP", or "configure Google Managed MCP servers".

Core Pattern

  1. Prerequisites Verification: Ensure the user has gcloud authenticated and a target Google Cloud Project with billing enabled.
  2. Setup Script Execution: Run the provided script to enable APIs, MCP services, and generate the required API Key.
    • By default, it installs a Lean SRE toolset (Logging, Monitoring, GKE, Run, Resource Manager, Developer Knowledge).
    • Use the --all flag to include optional services (Error Reporting, Databases, Vertex AI).
    • Use --harness to target a specific CLI harness (gemini, antigravity, or copilot). Defaults to gemini+antigravity.
    • Script: skills/gcp-mcp-setup/scripts/setup_onemcp.py <PROJECT_ID> [--local | --global] [--harness {gemini,antigravity,copilot}] [--all] [--google-maps-key YOUR_KEY]
  3. Configure Settings: The script automatically writes the mcpServers configuration to the correct location depending on the target harness:
    • Gemini CLI: .gemini/settings.json (local) or ~/.gemini/settings.json (global).
    • Antigravity CLI (agy): .gemini/antigravity/mcp_config.json and .gemini/config/mcp_config.json (local) or the global equivalents under ~/.gemini/.
    • GitHub Copilot CLI: ~/.copilot/mcp-config.json (always global — no workspace-level config yet).
  4. Verification & Diagnostics:
    • Script: skills/gcp-mcp-setup/scripts/verify_setup.py [--harness {gemini,antigravity,copilot}]
    • This script checks identity consistency (gcloud vs ADC), runs the harness-specific MCP list command, and confirms all expected google-* servers are registered.

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 60 lines · 70 tokens per session scan B ba5aab434c64

Subscribe to this mod's changes

gcp-mcp-setup is a skill published in the GitHub repository gemini-cli-extensions/sre (83 stars, last pushed 3d ago), licensed Apache-2.0. It adds 70 tokens to every session and 943 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gke-compute-classes

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…

google/skills · 83 tokens

gke-reliability

Improves GKE workload reliability, using PDBs, health probes, and topology spread constraints. Use when configuring GKE workload reliability, setting up PDBs, or configuring GKE health probes (liveness, readiness, startup). Don't use for disaster recovery setup or full cluster backups (use gke-backup-dr instead).

google/skills · 73 tokens

gke-workload-security

Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running cluster security audits (auditcluster.sh), configuring Workload Identity Federation (impersonation, KSA/GSA binding, and pod setup), enforcing Network Policies (default-deny…

google/skills · 181 tokens

nemo-automodel-launcher-config

Configure NeMo AutoModel job launches for interactive runs, Slurm clusters, and SkyPilot cloud execution.

NVIDIA/skills · 30 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

cloud-architect

Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost…

Jeffallan/claude-skills · 71 tokens