gcp-mcp-server

v1.4.0
gcp-mcp-server Checked 5 hours ago Published 1 year ago

Model 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

ParameterTypeDescription
code *stringYour 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 *stringThe reasoning behind the code execution
projectIdstringGCP project ID to use for the operation
regionstringRegion 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

ParameterTypeDescription
projectId *stringID of the GCP project to select
regionstringRegion to use (defaults to us-central1 if not provided)

get-billing-info

Get billing information for the specified or currently selected project

ParameterTypeDescription
projectIdstringProject ID to get billing info for (defaults to selected project)

get-cost-forecast

Get cost forecast for the specified or currently selected project

ParameterTypeDescription
monthsnumberNumber of months to forecast (defaults to 3)
projectIdstringProject ID to get forecast for (defaults to selected project)

get-billing-account

Get billing account information

ParameterTypeDescription
billingAccountIdstringBilling 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

ParameterTypeDescription
billingAccountId *stringBilling account ID to associate with the project
projectIdstringProject ID (defaults to selected project)

get-cost-breakdown

Get detailed cost breakdown for a project or billing account

ParameterTypeDescription
billingAccountIdstringBilling account ID (if not provided, uses project billing account)
endDatestringEnd date in YYYY-MM-DD format (defaults to today)
groupByarrayDimensions to group costs by
projectIdstringProject ID (defaults to selected project)
startDatestringStart date in YYYY-MM-DD format (defaults to 30 days ago)

create-budget

Create a budget for cost monitoring

ParameterTypeDescription
amount *numberBudget amount in the billing currency
billingAccountId *stringBilling account ID
displayName *stringDisplay name for the budget
projectIdsarrayProject IDs to include in budget (optional)
thresholdRulesarrayThreshold rules for budget alerts

list-budgets

List budgets for a billing account

ParameterTypeDescription
billingAccountId *stringBilling account ID

update-budget

Update an existing budget

ParameterTypeDescription
budgetId *stringBudget ID
amountnumberUpdated budget amount
displayNamestringUpdated display name
thresholdRulesarrayUpdated threshold rules

delete-budget

Delete a budget

ParameterTypeDescription
budgetId *stringBudget ID to delete

get-cost-anomalies

Detect cost anomalies and unusual spending patterns

ParameterTypeDescription
anomalyThresholdnumberThreshold for anomaly detection (defaults to 2.0 standard deviations)
billingAccountIdstringBilling account ID
lookbackDaysnumberNumber of days to analyze (defaults to 30)
projectIdstringProject ID (defaults to selected project)

get-rightsizing-recommendations

Get recommendations for rightsizing resources to optimize costs

ParameterTypeDescription
projectIdstringProject ID (defaults to selected project)
regionstringRegion to analyze (defaults to all regions)
resourceTypestringType of resources to analyze (defaults to all)

export-billing-data

Export billing data to BigQuery or Cloud Storage

ParameterTypeDescription
billingAccountId *stringBilling account ID
destination *object
endDatestringEnd date for export in YYYY-MM-DD format
startDatestringStart date for export in YYYY-MM-DD format

list-iam-policies

List IAM policies for projects, folders, or organizations

ParameterTypeDescription
resourceType *stringType of resource to list IAM policies for
resourceIdstringResource ID (project ID, folder ID, or organization ID)

get-iam-policy

Get IAM policy for a specific resource

ParameterTypeDescription
resourceId *stringResource ID (project ID, folder ID, organization ID, or service account email)
resourceType *stringType of resource

set-iam-policy

Set IAM policy for a specific resource

ParameterTypeDescription
policy *objectIAM policy object with bindings
resourceId *stringResource ID
resourceType *stringType of resource

add-iam-binding

Add a member to an IAM role binding

ParameterTypeDescription
member *stringMember to add (e.g., user:email@domain.com, serviceAccount:account@project.iam.gserviceaccount.com)
resourceId *stringResource ID
resourceType *stringType of resource
role *stringIAM role (e.g., roles/viewer, roles/editor)

remove-iam-binding

Remove a member from an IAM role binding

ParameterTypeDescription
member *stringMember to remove
resourceId *stringResource ID
resourceType *stringType of resource
role *stringIAM role

list-service-accounts

List service accounts in a project

ParameterTypeDescription
projectIdstringProject ID (defaults to selected project)

create-service-account

Create a new service account

ParameterTypeDescription
accountId *stringService account ID (unique within project)
descriptionstringDescription of the service account
displayNamestringDisplay name for the service account
projectIdstringProject ID (defaults to selected project)

delete-service-account

Delete a service account

ParameterTypeDescription
email *stringService account email address
projectIdstringProject ID (defaults to selected project)

list-custom-roles

List custom IAM roles in a project or organization

ParameterTypeDescription
parent *stringParent resource (projects/PROJECT_ID or organizations/ORG_ID)

create-custom-role

Create a custom IAM role

ParameterTypeDescription
parent *stringParent resource (projects/PROJECT_ID or organizations/ORG_ID)
permissions *arrayList of permissions to include in the role
roleId *stringUnique ID for the custom role
title *stringHuman-readable title for the role
descriptionstringDescription of the role
stagestringLaunch stage of the role (defaults to GA)

list-compute-instances

List all Compute Engine instances in the project

ParameterTypeDescription
projectIdstringProject ID (defaults to selected project)
zonestringZone to list instances from (optional, lists from all zones if not provided)

get-compute-instance

Get detailed information about a specific Compute Engine instance

ParameterTypeDescription
instanceName *stringName of the instance to get details for
zone *stringZone where the instance is located
projectIdstringProject ID (defaults to selected project)

start-compute-instance

Start a stopped Compute Engine instance

ParameterTypeDescription
instanceName *stringName of the instance to start
zone *stringZone where the instance is located
projectIdstringProject ID (defaults to selected project)

stop-compute-instance

Stop a running Compute Engine instance

ParameterTypeDescription
instanceName *stringName of the instance to stop
zone *stringZone where the instance is located
projectIdstringProject ID (defaults to selected project)

list-storage-buckets

List all Cloud Storage buckets in the project

ParameterTypeDescription
projectIdstringProject ID (defaults to selected project)

list-storage-objects

List objects in a Cloud Storage bucket

ParameterTypeDescription
bucketName *stringName of the bucket to list objects from
maxResultsnumberMaximum number of objects to return (default: 100)
prefixstringOptional prefix to filter objects

get-storage-object-info

Get metadata information about a specific Cloud Storage object

ParameterTypeDescription
bucketName *stringName of the bucket containing the object
objectName *stringName of the object to get info for

list-bigquery-datasets

List all BigQuery datasets in the project

ParameterTypeDescription
projectIdstringProject ID (defaults to selected project)

list-bigquery-tables

List tables in a BigQuery dataset

ParameterTypeDescription
datasetId *stringID of the dataset to list tables from
projectIdstringProject ID (defaults to selected project)

query-bigquery

Execute a BigQuery SQL query

ParameterTypeDescription
query *stringSQL query to execute
maxResultsnumberMaximum number of results to return (default: 100)
projectIdstringProject ID (defaults to selected project)

list-sql-instances

List all Cloud SQL instances in the project

ParameterTypeDescription
projectIdstringProject ID (defaults to selected project)

get-sql-instance

Get detailed information about a Cloud SQL instance

ParameterTypeDescription
instanceId *stringID of the Cloud SQL instance
projectIdstringProject ID (defaults to selected project)

list-cloud-functions

List all Cloud Functions in the project

ParameterTypeDescription
projectIdstringProject ID (defaults to selected project)
regionstringRegion to list functions from (optional, lists from all regions if not provided)

get-cloud-function

Get detailed information about a specific Cloud Function

ParameterTypeDescription
functionName *stringName of the function to get details for
region *stringRegion where the function is located
projectIdstringProject ID (defaults to selected project)

list-cloud-run-services

List all Cloud Run services in the project

ParameterTypeDescription
projectIdstringProject ID (defaults to selected project)
regionstringRegion 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

ParameterTypeDescription
region *stringRegion where the service is located
serviceName *stringName of the Cloud Run service
projectIdstringProject ID (defaults to selected project)

list-gke-clusters

List all GKE clusters in the project

ParameterTypeDescription
projectIdstringProject ID (defaults to selected project)
zonestringZone to list clusters from (optional, lists from all zones if not provided)

get-gke-cluster

Get detailed information about a specific GKE cluster

ParameterTypeDescription
clusterName *stringName of the GKE cluster
zone *stringZone where the cluster is located
projectIdstringProject ID (defaults to selected project)

query-logs

Query Cloud Logging for log entries

ParameterTypeDescription
filter *stringLog filter query (Cloud Logging filter syntax)
maxResultsnumberMaximum number of log entries to return (default: 100)
orderBystringOrder by field (default: timestamp desc)
projectIdstringProject ID (defaults to selected project)

list-log-entries

List recent log entries for a resource

ParameterTypeDescription
resourceType *stringGCP resource type (e.g., gce_instance, cloud_function, gae_app)
maxResultsnumberMaximum number of log entries to return (default: 50)
projectIdstringProject ID (defaults to selected project)
resourceNamestringName of the resource (optional)
severitystringMinimum log severity (DEFAULT, DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY)

list-organization-policies

List organization policies for a resource

ParameterTypeDescription
resourceId *stringResource ID (organization ID, folder ID, or project ID)
resourceType *stringType of resource to list policies for

get-organization-policy

Get a specific organization policy

ParameterTypeDescription
constraint *stringPolicy constraint name (e.g., constraints/compute.disableSerialPortAccess)
resourceId *stringResource ID
resourceType *stringType of resource

set-organization-policy

Set or update an organization policy

ParameterTypeDescription
constraint *stringPolicy constraint name
policy *objectPolicy specification
resourceId *stringResource ID
resourceType *stringType of resource

delete-organization-policy

Delete an organization policy (reset to default)

ParameterTypeDescription
constraint *stringPolicy constraint name to delete
resourceId *stringResource ID
resourceType *stringType of resource