gloud-mcp-server

sajkani/gloud-mcp-server

3.2

If you are the rightful owner of gloud-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

A Model Context Protocol (MCP) server that provides Google Cloud tools for AI assistants.

Tools
5
Resources
0
Prompts
0

Google Cloud MCP Server

A Model Context Protocol (MCP) server that provides Google Cloud tools for AI assistants.

Features

gcloud Command Execution

  • Execute gcloud commands safely with security restrictions
  • Support for project-specific commands
  • Built-in timeout and buffer limits

Google Cloud Storage (GCS) Tools

  • List buckets and objects
  • Read object content and metadata
  • Support for filtering and pagination

Installation

npm install
npm run build

Usage

As an MCP Server

The server runs on stdio and can be configured in MCP clients:

{
  "servers": {
    "gcloud": {
      "command": "node",
      "args": ["dist/index.js"]
    }
  }
}

Available Tools

gcloud Tools
  • run_gcloud_command: Execute gcloud commands (with security restrictions)
GCS Tools
  • list_buckets: List all buckets in a project
  • list_objects: List objects in a bucket
  • read_object_content: Read the content of an object
  • get_object_metadata: Get metadata for an object

Security

The server includes security restrictions:

  • Prevents execution of authentication commands
  • Limits command execution time
  • Restricts buffer sizes

Authentication

The server uses Google Cloud Application Default Credentials. Ensure you have authenticated:

gcloud auth application-default login

Development

npm run dev    # Watch mode
npm run build  # Build TypeScript
npm run lint   # Lint code
npm run test   # Run tests

License

Apache-2.0