npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@edjl/gcloud-mcp

v1.0.8

Published

Google Cloud Platform tools for MCP (Model Context Protocol)

Readme

GCloud MCP

A comprehensive Model Context Protocol (MCP) server for Google Cloud Platform tools.

Features

This MCP server provides tools for interacting with various GCP services:

Currently Implemented

Kubernetes/GKE

  • gcloud_clusters_list - List all GKE clusters
  • gcloud_cluster_describe - Get detailed cluster information
  • gcloud_workloads_list - List deployments, pods, and services
  • gcloud_workload_describe - Get details about specific workloads
  • gcloud_workload_history - View deployment history and rollout status
  • gcloud_logs_simple - Quick pod logs retrieval
  • gcloud_deployment_logs - Aggregated deployment logs
  • gcloud_workload_logs - Advanced workload logs with kubectl support

Artifact Registry

  • gcloud_artifacts_repositories_list - List artifact repositories
  • gcloud_artifacts_list - List artifacts/images in a repository
  • gcloud_artifact_versions - List versions of an artifact
  • gcloud_artifact_describe - Get artifact details and metadata

Cloud Storage

  • gcloud_buckets_list - List all storage buckets
  • gcloud_bucket_describe - Get bucket configuration details
  • gcloud_bucket_objects_list - List objects in a bucket
  • gcloud_bucket_object_read - Read object content
  • gcloud_bucket_object_metadata - Get object metadata

Cloud Logging

  • gcloud_logs_read - Read logs with various filters
  • gcloud_logs_tail - Stream logs in real-time
  • gcloud_logs_query - Execute advanced log queries
  • gcloud_logs_sinks_list - List log routing destinations

IAM & Security

  • gcloud_iam_roles_list - List IAM roles
  • gcloud_iam_policy_get - Get IAM policy for a resource
  • gcloud_service_accounts_list - List service accounts
  • gcloud_service_account_keys_list - List service account keys

Secrets Manager

  • gcloud_secrets_list - List secrets
  • gcloud_secret_versions_list - List secret versions
  • gcloud_secret_get - Get secret value (with security warnings)

Cloud SQL

  • gcloud_sql_instances_list - List Cloud SQL instances
  • gcloud_sql_instance_describe - Get instance details
  • gcloud_sql_databases_list - List databases
  • gcloud_sql_backups_list - List backups

Pub/Sub

  • gcloud_pubsub_topics_list - List topics
  • gcloud_pubsub_subscriptions_list - List subscriptions
  • gcloud_pubsub_topic_describe - Get topic details

Prerequisites

  1. gcloud CLI: Must be installed and in your PATH

    • Install from: https://cloud.google.com/sdk/docs/install
  2. Authentication: Must be authenticated with gcloud

    gcloud auth login
  3. Project: Must have a default project set

    gcloud config set project YOUR_PROJECT_ID
  4. kubectl: Required for Kubernetes tools

    • Usually installed with gcloud: gcloud components install kubectl

Installation

  1. Clone this repository
  2. Install dependencies:
    npm install
  3. Build the project:
    npm run build

Configuration

Add the server to your ~/.cursor/mcp.json:

{
  "mcpServers": {
    "gcloud-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/gcloud-mcp/build/index.js"
      ]
    }
  }
}

Usage Examples

Kubernetes Workloads

Q: When was the last example-app workload deployed in my-cluster?

1. gcloud_clusters_list
2. gcloud_workload_history cluster: "my-cluster", deployment: "example-app"

Artifact Registry

Q: What is the latest version of my-service artifact?

1. gcloud_artifacts_repositories_list
2. gcloud_artifact_versions repository: "my-repo", location: "us-central1", package: "my-service"

Cloud Logging

Q: What are the latest error logs from example-app in my-cluster?

gcloud_logs_read resource: "k8s_container", severity: "ERROR", filter: "resource.labels.container_name='example-app' AND resource.labels.cluster_name='my-cluster'"

Cloud Storage

Q: List all objects in my-data-bucket

gcloud_bucket_objects_list bucket: "my-data-bucket", recursive: true

Error Handling

All tools include comprehensive error handling:

  • Not Installed: Clear message if gcloud CLI is not found
  • Not Authenticated: Instructions to run gcloud auth login
  • No Project: Instructions to set a project
  • Permission Errors: Clear messages about required permissions
  • Resource Not Found: Helpful error messages with suggestions

Tool Parameters

Most tools support these common parameters:

  • project: Override the default project
  • limit: Control the number of results
  • filter: Apply filters to results

Kubernetes tools require:

  • cluster: Name of the GKE cluster
  • zone or region: Cluster location

Development

Adding New Tools

  1. Create a new file in src/tools/<category>/<tool-name>.ts
  2. Implement the ToolDefinition interface
  3. Export as default
  4. The tool will be automatically loaded with the gcloud_ prefix

Tool Structure

import { z } from 'zod';
import { ToolDefinition } from '../../types.js';
import { executeGCloudCommand } from '../../utils/gcloud.js';

const inputSchema = z.object({
  // Define parameters
});

const gcloudToolNameTool: ToolDefinition = {
  name: 'tool_name',
  description: 'Tool description',
  category: 'category',
  subcategory: 'subcategory',
  version: '1.0.0',
  inputSchema,
  handler: async (input) => {
    // Implementation
  }
};

export default gcloudToolNameTool;

Roadmap

See ROADMAP.md for planned features including:

  • IAM & Security tools
  • Secrets Manager integration
  • Cloud Run support
  • Compute Engine management
  • And many more GCP services

License

MIT