Connects to Google Cloud services to provide context and tools for interacting with Google Cloud resources, including logging, monitoring, and database services.
Enables executing SQL queries against Spanner databases, listing available databases and tables, and exploring database schema.
Google Cloud MCP Server
A Model Context Protocol server that connects to Google Cloud services to provide context and tools for interacting with your Google Cloud resources.
Services
Supported services:
Google Cloud Logging
Google Cloud Monitoring
Google Cloud Spanner
Servers in development:
Google Cloud Trace
Google IAM
Google Cloud Compute
Google Cloud Run
Google Cloud Storage
Google Cloud Logging
Query and filter log entries from Google Cloud Logging:
Query logs with custom filters
Search logs within specific time ranges
Format and display log entries in a readable format
Google Cloud Spanner
Interact with Google Cloud Spanner databases:
Execute SQL queries against Spanner databases
List available databases and tables
Explore database schema
Google Cloud Monitoring
Retrieve and analyse metrics from Google Cloud Monitoring:
Query metrics with custom filters
Visualise metric data over time
List available metric types
Google Cloud Trace
Analyse distributed traces from Google Cloud Trace:
Retrieve traces by ID
List recent traces with filtering options
Find traces associated with logs
Identify failed traces
Use natural language to query traces (e.g., "Show me failed traces from the last hour")
Authentication
This server supports two methods of authentication with Google Cloud:
Service Account Key File (Recommended): Set the
GOOGLE_APPLICATION_CREDENTIALS
environment variable to the path of your service account key file. This is the standard Google Cloud authentication method.Environment Variables: Set
GOOGLE_CLIENT_EMAIL
andGOOGLE_PRIVATE_KEY
environment variables directly. This is useful for environments where storing a key file is not practical.
The server will also use the GOOGLE_CLOUD_PROJECT
environment variable if set, otherwise it will attempt to determine the project ID from the authentication credentials.
Installation
Authenticate to Google Cloud:
Configure the mcpServers
in your client:
Development
Starting the server
Development mode
Using with Smithery (soon)
This server can be deployed and used with Smithery. The server implements lazy loading of authentication, which means it will start immediately and defer authentication until it's actually needed. Authentication is still required for operation, but this approach prevents timeouts during server initialization.
NOTE: Smithery local server support is currently in development and may not yet available.
Troubleshooting
Server Timeout Issues
If you encounter timeout issues when running the server with Smithery, try the following:
Enable debug logging by setting
debug: true
in your configurationEnsure
lazyAuth: true
is set to defer authentication until it's actually neededEnsure your credentials file is accessible and valid
Check the logs for any error messages
Important: Authentication is still required for operation, but with lazy loading enabled, the server will start immediately and authenticate when needed rather than during initialization.
Authentication Issues
The server supports two methods of authentication:
Service Account Key File: Set
GOOGLE_APPLICATION_CREDENTIALS
environment variable to the path of your service account key fileEnvironment Variables: Set
GOOGLE_CLIENT_EMAIL
andGOOGLE_PRIVATE_KEY
environment variables
If you're having authentication issues, make sure:
Your service account has the necessary permissions
The key file is properly formatted and accessible
Environment variables are correctly set
This server cannot be installed
A 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.
Related MCP Servers
- AsecurityFlicenseAqualityA server that provides access to Google Search Console data through the Model Context Protocol, allowing users to retrieve and analyze search analytics data with customizable dimensions and reporting periods.Last updated -27569
- AsecurityAlicenseAqualityA Model Context Protocol server that connects to Google Cloud services, allowing users to query logs, interact with Spanner databases, and analyze Cloud Monitoring metrics through natural language interaction.Last updated -406856Apache 2.0
- AsecurityAlicenseAqualityA Model Context Protocol server that provides Google Maps API integration, allowing users to search locations, get place details, geocode addresses, calculate distances, obtain directions, and retrieve elevation data through LLM processing capabilities.Last updated -71,186104MIT License
- -securityAlicense-qualityA Model Context Protocol server that integrates with Google Drive and Google Sheets, enabling users to create, read, update, and manage spreadsheets through natural language commands.Last updated -400MIT License