gcp-mcp-server
v1.4.0Model Context Protocol (MCP) server for Google Cloud Platform - Talk to your GCP resources
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
run-gcp-code
Run GCP code to interact with Google Cloud resources
| Parameter | Type | Description |
|---|---|---|
code * | string | Your job is to answer questions about GCP environment by writing Javascript/TypeScript code using Google Cloud Client Libraries. The code must adhere to a few rules: - Must use promises and async/awai… |
reasoning * | string | The reasoning behind the code execution |
projectId | string | GCP project ID to use for the operation |
region | string | Region to use (defaults to us-central1 if not provided) |
list-projects
List all GCP projects accessible with current credentials
select-project
Select a GCP project to use for subsequent interactions
| Parameter | Type | Description |
|---|---|---|
projectId * | string | ID of the GCP project to select |
region | string | Region to use (defaults to us-central1 if not provided) |
get-billing-info
Get billing information for the specified or currently selected project
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project ID to get billing info for (defaults to selected project) |
get-cost-forecast
Get cost forecast for the specified or currently selected project
| Parameter | Type | Description |
|---|---|---|
months | number | Number of months to forecast (defaults to 3) |
projectId | string | Project ID to get forecast for (defaults to selected project) |
get-billing-account
Get billing account information
| Parameter | Type | Description |
|---|---|---|
billingAccountId | string | Billing account ID (if not provided, lists all accessible accounts) |
list-billing-accounts
List all accessible billing accounts
set-project-billing
Set or change billing account for a project
| Parameter | Type | Description |
|---|---|---|
billingAccountId * | string | Billing account ID to associate with the project |
projectId | string | Project ID (defaults to selected project) |
get-cost-breakdown
Get detailed cost breakdown for a project or billing account
| Parameter | Type | Description |
|---|---|---|
billingAccountId | string | Billing account ID (if not provided, uses project billing account) |
endDate | string | End date in YYYY-MM-DD format (defaults to today) |
groupBy | array | Dimensions to group costs by |
projectId | string | Project ID (defaults to selected project) |
startDate | string | Start date in YYYY-MM-DD format (defaults to 30 days ago) |
create-budget
Create a budget for cost monitoring
| Parameter | Type | Description |
|---|---|---|
amount * | number | Budget amount in the billing currency |
billingAccountId * | string | Billing account ID |
displayName * | string | Display name for the budget |
projectIds | array | Project IDs to include in budget (optional) |
thresholdRules | array | Threshold rules for budget alerts |
list-budgets
List budgets for a billing account
| Parameter | Type | Description |
|---|---|---|
billingAccountId * | string | Billing account ID |
update-budget
Update an existing budget
| Parameter | Type | Description |
|---|---|---|
budgetId * | string | Budget ID |
amount | number | Updated budget amount |
displayName | string | Updated display name |
thresholdRules | array | Updated threshold rules |
delete-budget
Delete a budget
| Parameter | Type | Description |
|---|---|---|
budgetId * | string | Budget ID to delete |
get-cost-anomalies
Detect cost anomalies and unusual spending patterns
| Parameter | Type | Description |
|---|---|---|
anomalyThreshold | number | Threshold for anomaly detection (defaults to 2.0 standard deviations) |
billingAccountId | string | Billing account ID |
lookbackDays | number | Number of days to analyze (defaults to 30) |
projectId | string | Project ID (defaults to selected project) |
get-rightsizing-recommendations
Get recommendations for rightsizing resources to optimize costs
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project ID (defaults to selected project) |
region | string | Region to analyze (defaults to all regions) |
resourceType | string | Type of resources to analyze (defaults to all) |
export-billing-data
Export billing data to BigQuery or Cloud Storage
| Parameter | Type | Description |
|---|---|---|
billingAccountId * | string | Billing account ID |
destination * | object | |
endDate | string | End date for export in YYYY-MM-DD format |
startDate | string | Start date for export in YYYY-MM-DD format |
list-iam-policies
List IAM policies for projects, folders, or organizations
| Parameter | Type | Description |
|---|---|---|
resourceType * | string | Type of resource to list IAM policies for |
resourceId | string | Resource ID (project ID, folder ID, or organization ID) |
get-iam-policy
Get IAM policy for a specific resource
| Parameter | Type | Description |
|---|---|---|
resourceId * | string | Resource ID (project ID, folder ID, organization ID, or service account email) |
resourceType * | string | Type of resource |
set-iam-policy
Set IAM policy for a specific resource
| Parameter | Type | Description |
|---|---|---|
policy * | object | IAM policy object with bindings |
resourceId * | string | Resource ID |
resourceType * | string | Type of resource |
add-iam-binding
Add a member to an IAM role binding
| Parameter | Type | Description |
|---|---|---|
member * | string | Member to add (e.g., user:email@domain.com, serviceAccount:account@project.iam.gserviceaccount.com) |
resourceId * | string | Resource ID |
resourceType * | string | Type of resource |
role * | string | IAM role (e.g., roles/viewer, roles/editor) |
remove-iam-binding
Remove a member from an IAM role binding
| Parameter | Type | Description |
|---|---|---|
member * | string | Member to remove |
resourceId * | string | Resource ID |
resourceType * | string | Type of resource |
role * | string | IAM role |
list-service-accounts
List service accounts in a project
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project ID (defaults to selected project) |
create-service-account
Create a new service account
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Service account ID (unique within project) |
description | string | Description of the service account |
displayName | string | Display name for the service account |
projectId | string | Project ID (defaults to selected project) |
delete-service-account
Delete a service account
| Parameter | Type | Description |
|---|---|---|
email * | string | Service account email address |
projectId | string | Project ID (defaults to selected project) |
list-custom-roles
List custom IAM roles in a project or organization
| Parameter | Type | Description |
|---|---|---|
parent * | string | Parent resource (projects/PROJECT_ID or organizations/ORG_ID) |
create-custom-role
Create a custom IAM role
| Parameter | Type | Description |
|---|---|---|
parent * | string | Parent resource (projects/PROJECT_ID or organizations/ORG_ID) |
permissions * | array | List of permissions to include in the role |
roleId * | string | Unique ID for the custom role |
title * | string | Human-readable title for the role |
description | string | Description of the role |
stage | string | Launch stage of the role (defaults to GA) |
list-compute-instances
List all Compute Engine instances in the project
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project ID (defaults to selected project) |
zone | string | Zone to list instances from (optional, lists from all zones if not provided) |
get-compute-instance
Get detailed information about a specific Compute Engine instance
| Parameter | Type | Description |
|---|---|---|
instanceName * | string | Name of the instance to get details for |
zone * | string | Zone where the instance is located |
projectId | string | Project ID (defaults to selected project) |
start-compute-instance
Start a stopped Compute Engine instance
| Parameter | Type | Description |
|---|---|---|
instanceName * | string | Name of the instance to start |
zone * | string | Zone where the instance is located |
projectId | string | Project ID (defaults to selected project) |
stop-compute-instance
Stop a running Compute Engine instance
| Parameter | Type | Description |
|---|---|---|
instanceName * | string | Name of the instance to stop |
zone * | string | Zone where the instance is located |
projectId | string | Project ID (defaults to selected project) |
list-storage-buckets
List all Cloud Storage buckets in the project
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project ID (defaults to selected project) |
list-storage-objects
List objects in a Cloud Storage bucket
| Parameter | Type | Description |
|---|---|---|
bucketName * | string | Name of the bucket to list objects from |
maxResults | number | Maximum number of objects to return (default: 100) |
prefix | string | Optional prefix to filter objects |
get-storage-object-info
Get metadata information about a specific Cloud Storage object
| Parameter | Type | Description |
|---|---|---|
bucketName * | string | Name of the bucket containing the object |
objectName * | string | Name of the object to get info for |
list-bigquery-datasets
List all BigQuery datasets in the project
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project ID (defaults to selected project) |
list-bigquery-tables
List tables in a BigQuery dataset
| Parameter | Type | Description |
|---|---|---|
datasetId * | string | ID of the dataset to list tables from |
projectId | string | Project ID (defaults to selected project) |
query-bigquery
Execute a BigQuery SQL query
| Parameter | Type | Description |
|---|---|---|
query * | string | SQL query to execute |
maxResults | number | Maximum number of results to return (default: 100) |
projectId | string | Project ID (defaults to selected project) |
list-sql-instances
List all Cloud SQL instances in the project
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project ID (defaults to selected project) |
get-sql-instance
Get detailed information about a Cloud SQL instance
| Parameter | Type | Description |
|---|---|---|
instanceId * | string | ID of the Cloud SQL instance |
projectId | string | Project ID (defaults to selected project) |
list-cloud-functions
List all Cloud Functions in the project
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project ID (defaults to selected project) |
region | string | Region to list functions from (optional, lists from all regions if not provided) |
get-cloud-function
Get detailed information about a specific Cloud Function
| Parameter | Type | Description |
|---|---|---|
functionName * | string | Name of the function to get details for |
region * | string | Region where the function is located |
projectId | string | Project ID (defaults to selected project) |
list-cloud-run-services
List all Cloud Run services in the project
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project ID (defaults to selected project) |
region | string | Region to list services from (optional, lists from all regions if not provided) |
get-cloud-run-service
Get detailed information about a specific Cloud Run service
| Parameter | Type | Description |
|---|---|---|
region * | string | Region where the service is located |
serviceName * | string | Name of the Cloud Run service |
projectId | string | Project ID (defaults to selected project) |
list-gke-clusters
List all GKE clusters in the project
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project ID (defaults to selected project) |
zone | string | Zone to list clusters from (optional, lists from all zones if not provided) |
get-gke-cluster
Get detailed information about a specific GKE cluster
| Parameter | Type | Description |
|---|---|---|
clusterName * | string | Name of the GKE cluster |
zone * | string | Zone where the cluster is located |
projectId | string | Project ID (defaults to selected project) |
query-logs
Query Cloud Logging for log entries
| Parameter | Type | Description |
|---|---|---|
filter * | string | Log filter query (Cloud Logging filter syntax) |
maxResults | number | Maximum number of log entries to return (default: 100) |
orderBy | string | Order by field (default: timestamp desc) |
projectId | string | Project ID (defaults to selected project) |
list-log-entries
List recent log entries for a resource
| Parameter | Type | Description |
|---|---|---|
resourceType * | string | GCP resource type (e.g., gce_instance, cloud_function, gae_app) |
maxResults | number | Maximum number of log entries to return (default: 50) |
projectId | string | Project ID (defaults to selected project) |
resourceName | string | Name of the resource (optional) |
severity | string | Minimum log severity (DEFAULT, DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY) |
list-organization-policies
List organization policies for a resource
| Parameter | Type | Description |
|---|---|---|
resourceId * | string | Resource ID (organization ID, folder ID, or project ID) |
resourceType * | string | Type of resource to list policies for |
get-organization-policy
Get a specific organization policy
| Parameter | Type | Description |
|---|---|---|
constraint * | string | Policy constraint name (e.g., constraints/compute.disableSerialPortAccess) |
resourceId * | string | Resource ID |
resourceType * | string | Type of resource |
set-organization-policy
Set or update an organization policy
| Parameter | Type | Description |
|---|---|---|
constraint * | string | Policy constraint name |
policy * | object | Policy specification |
resourceId * | string | Resource ID |
resourceType * | string | Type of resource |
delete-organization-policy
Delete an organization policy (reset to default)
| Parameter | Type | Description |
|---|---|---|
constraint * | string | Policy constraint name to delete |
resourceId * | string | Resource ID |
resourceType * | string | Type of resource |