Provides comprehensive tools for managing Google Cloud resources including billing analysis with cost optimization insights, querying and filtering Cloud Logging entries, and retrieving metrics from Cloud Monitoring for infrastructure observability.
GCP Billing and Monitoring 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 Google Cloud services:
Billing
Manage and analyse Google Cloud billing with cost optimisation insights:
Tools: gcp-billing-list-accounts
, gcp-billing-get-account-details
, gcp-billing-list-projects
, gcp-billing-get-project-info
, gcp-billing-list-services
, gcp-billing-list-skus
, gcp-billing-analyse-costs
, gcp-billing-detect-anomalies
, gcp-billing-cost-recommendations
, gcp-billing-service-breakdown
Example prompts:
- "Show me all my billing accounts"
- "Analyse costs for project my-app-prod-123 for the last 30 days"
- "Generate cost recommendations for billing account billingAccounts/123456-789ABC-DEF012"
- "Check for billing anomalies in project my-ecommerce-456"
Logging
Query and filter log entries from Google Cloud Logging:
Tools: gcp-logging-query-logs
, gcp-logging-query-time-range
, gcp-logging-search-comprehensive
Example prompts:
- "Show me logs from project my-app-prod-123 from the last hour with severity ERROR"
- "Search for logs containing 'timeout' from service my-api in project backend-456"
- "Query logs for resource type gce_instance in project compute-prod-789"
Monitoring
Retrieve and analyse metrics from Google Cloud Monitoring:
Tools: gcp-monitoring-query-metrics
, gcp-monitoring-list-metric-types
, gcp-monitoring-query-natural-language
Example prompts:
- "Show me CPU utilisation metrics for project web-app-prod-123 for the last 6 hours"
- "List available metric types for Compute Engine in project infrastructure-456"
- "Query memory usage for instances in project backend-services-789"
Quick Start
Once configured, you can interact with Google Cloud services using natural language:
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
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 configuration - Ensure
lazyAuth: true
is set to defer authentication until it's actually needed - Ensure 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 file - Environment 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
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables interaction with Google Cloud services including billing cost analysis, log querying, and metrics monitoring through natural language commands. Provides comprehensive tools for managing GCP resources, analyzing costs, detecting anomalies, and retrieving operational insights.
Related MCP Servers
- AsecurityFlicenseAqualityEnables managing Google Cloud Platform resources through natural language commands in Claude Desktop, supporting comprehensive operations across compute, storage, databases, networking, monitoring, and IAM without manual credential setup.Last updated -5621
- -securityAlicense-qualityEnables AI assistants to interact with and manage Google Cloud Platform resources including Compute Engine, Cloud Run, Storage, BigQuery, and other GCP services through a standardized MCP interface.Last updated -4MIT License
- -securityFlicense-qualityAn MCP server that enables interaction with Google Cloud Logging API, allowing users to write, read, and manage log entries and configurations through natural language.Last updated -
- -securityFlicense-qualityAn MCP server that provides access to Google Cloud Monitoring API, enabling interaction with cloud resources monitoring data through natural language commands.Last updated -