agentleFS
jpantsjohajpantsjoha/googlecloud-plugin/skills/mcp-servers/SKILL.md

mcp-servers

Skill4 starsChanged 4 months agoMITView on GitHub

Configure, install, and maintain Google-managed and self-hosted MCP servers for GCP. Covers setup, auth (ADC and SA key), capability map, troubleshooting, and version tracking. Every MCP entry includes a gcloud CLI fallback. Use when the user mentions: MCP setup, google MCP, model context protocol GCP, MCP install, MCP auth, genai toolbox, MCP tools GCP, configure MCP.

  • Installs packages

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All GCP MCP servers authenticate via Application Default Credentials (ADC):

    line 18

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

MCP Servers — Google Cloud

Configure and maintain Model Context Protocol (MCP) servers for Google Cloud. All auth flows through ADC or explicit SA key path — no credential values stored anywhere.

Auth Architecture

All GCP MCP servers authenticate via Application Default Credentials (ADC):

# Authenticate locally (developer machine)
gcloud auth application-default login

# Authenticate for a service account (CI/CD or production agent)
gcloud auth activate-service-account --key-file=/path/to/sa-key.json
gcloud auth application-default login --impersonate-service-account=SA@PROJECT.iam.gserviceaccount.com

What the plugin ships vs what you opt into

The portable mcp.json (Agent Plugins 1.0.0) declares one server — gcloud — because that is the only one that starts with no user-supplied configuration:

{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
  "mcpServers": {
    "gcloud": { "type": "stdio", "command": "npx", "args": ["-y", "@google-cloud/gcloud-mcp"] }
  }
}

Two consequences worth knowing:

  • No env block. Agent Plugins expands only ${PLUGIN_ROOT} and ${PLUGIN_DATA}. A ${GCP_PROJECT_ID} placeholder would be passed through literally and mis-set your project. Export it in your own shell instead — the client passes the ambient environment through:
    export CLOUDSDK_CORE_PROJECT=your-project-id
    gcloud auth application-default login
  • The capability table below lists logical GCP capabilities, not entries in mcp.json. Most are reachable through the gcloud server; anything needing its own config file is an opt-in you add to your client's own MCP settings.

Google-Managed MCP Servers (v0.1)

ServerCapabilityRequired Role
google-cloud-runDeploy/manage Cloud Run servicesroles/run.admin
google-bigqueryQuery/manage BigQuery datasetsroles/bigquery.user
google-gkeGKE cluster managementroles/container.developer
google-storageCloud Storage bucket opsroles/storage.objectAdmin
google-vertex-aiVertex AI model/endpoint managementroles/aiplatform.user
google-iamIAM policy managementroles/iam.securityAdmin
google-loggingCloud Logging query/ingestroles/logging.viewer
google-monitoringMetrics, alertingroles/monitoring.viewer

GenAI Toolbox (Google's MCP for Databases) — opt-in

Google's MCP Toolbox for Databases enables LLM agents to query Cloud SQL, AlloyDB, Spanner, BigQuery, and more safely.

Why this is not in mcp.json. Toolbox needs --config <your tools.yaml>, a path only you can supply. No Agent Plugins placeholder can express it, so shipping it in the portable manifest would mean a server that fails to start on every fresh install. Add it to your own client config once you have a tools.yaml. (A failing server is isolated by spec — it would not take the skills down — but a broken default is still a broken default.)

# Run the toolbox MCP server (requires a tools.yaml pointing at your database)
# Tested 2026-07-23: this is the correct package. Full docs: https://mcp-toolbox.dev
npx -y @toolbox-sdk/server --stdio --config tools.yaml

# Example tools.yaml (BigQuery source)
# sources:
#   my-bq:
#     kind: bigquery
#     project: PROJECT_ID
# tools:
#   run_query:
#     source: my-bq
#     description: Run a read-only BigQuery query
#     statement: SELECT ...

Package note (tested 2026-07-23): use @toolbox-sdk/server via npx — not pip install toolbox-core / uvx toolbox-core. toolbox-core is the Python SDK library for building apps; it has no server CLI entry point.

Self-Hosted / Community MCPs

ServerInstallUse
gcloud-mcpnpx @modelcontextprotocol/server-gcloudBroad gcloud CLI coverage
k8s-mcpStandard k8s MCP serverKubernetes API for GKE

Troubleshooting

SymptomLikely CauseFix
401 UnauthorizedADC not set or expiredgcloud auth application-default login
403 Permission DeniedSA missing required roleAdd role per table above
MCP server not foundServer not installedCheck install step in references/
Connection timeoutVPC firewall blockingVerify Private Google Access + firewall

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.