storage-mcp
v0.6.0Model Context Protocol (MCP) Server for interacting with GCS APIs
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_buckets
Lists all GCS buckets in the project.
| Parameter | Type | Description |
|---|---|---|
project_id | string | The project ID to list buckets for. |
get_bucket_location
Gets the location and storage class of a bucket.
| Parameter | Type | Description |
|---|---|---|
bucket_name * | string | The name of the bucket. |
get_bucket_metadata
Gets detailed metadata for a specific bucket.
| Parameter | Type | Description |
|---|---|---|
bucket_name * | string | The name of the bucket. |
view_iam_policy
Views the IAM policy for a bucket.
| Parameter | Type | Description |
|---|---|---|
bucket_name * | string | The name of the GCS bucket. |
check_iam_permissions
Tests IAM permissions for a bucket.
| Parameter | Type | Description |
|---|---|---|
bucket_name * | string | The name of the GCS bucket. |
permissions * | array | List of permissions to test. |
create_bucket
Creates a new bucket with specified configuration.
| Parameter | Type | Description |
|---|---|---|
bucket_name * | string | The name of the bucket to create. |
project_id * | string | The ID of the GCP project. |
labels | object | Labels to apply to the bucket. |
location | string | The location for the bucket. |
requester_pays | boolean | Whether to enable requester pays. |
storage_class | string | The storage class for the bucket. |
versioning_enabled | boolean | Whether to enable versioning. |
list_objects
Lists the names of objects in a Google Cloud Storage (GCS) bucket. Supports filtering by prefix, directory-like listing with a delimiter, pagination, and listing object versions.
| Parameter | Type | Description |
|---|---|---|
bucket_name * | string | The name of the GCS bucket. |
delimiter | string | Can be used to list objects in a directory-like structure. For example, using a delimiter of '/' will return objects at the root level and not in subdirectories. This helps in navigating virtual folde… |
max_results | number | The maximum number of object names to return in a single response. If not specified, the API defaults to 1,000. The maximum value allowed is also 1,000. |
page_token | string | A token used to retrieve the next page of results. This is obtained from the `next_page_token` field of a previous `list_objects` call. |
prefix | string | Filters results to objects whose names begin with this prefix. |
versions | boolean | If true, lists all versions of an object as distinct results. |
read_object_content
Reads the content of a specific object.
| Parameter | Type | Description |
|---|---|---|
bucket_name * | string | The name of the GCS bucket. |
object_name * | string | The name of the object. |
read_object_metadata
Reads metadata for a specific object.
| Parameter | Type | Description |
|---|---|---|
bucket_name * | string | The name of the GCS bucket. |
object_name * | string | The name of the object. |
get_metadata_table_schema
Checks if GCS insights service is enabled and returns the BigQuery table schema for a given insights dataset configuration in JSON format. Also returns hints for each column in the table
| Parameter | Type | Description |
|---|---|---|
datasetConfigLocation * | string | The location of the dataset configuration. |
datasetConfigName * | string | The name of the dataset configuration. |
projectId | string | The project ID to check Storage Insights availability for. |
execute_insights_query
Executes a BigQuery SQL query against an insights dataset and returns the result.
| Parameter | Type | Description |
|---|---|---|
config * | string | The JSON object of the BigQuery table schema for a given insights dataset configuration. |
query * | string | The BigQuery SQL query to execute. |
jobTimeoutMs | number | The maximum amount of time for the job to run on the server. |
list_insights_configs
Lists the names of all Storage Insights dataset configurations for a given project.
| Parameter | Type | Description |
|---|---|---|
projectId | string | The project ID to list Storage Insights dataset configurations for. |
write_object_safe
Writes a new object to the bucket. Fails if the object already exists.
| Parameter | Type | Description |
|---|---|---|
bucket_name * | string | The name of the GCS bucket. |
content * | string | The content to write to the object, encoded in base64. |
object_name * | string | The name of the object to write. |
content_type | string | The content type of the object. |
upload_object_safe
Uploads a file to a GCS bucket. Fails if the object already exists.
| Parameter | Type | Description |
|---|---|---|
bucket_name * | string | The name of the GCS bucket. |
file_path * | string | The local path of the file to upload. |
content_type | string | The content type of the object. |
object_name | string | The name of the object in GCS. If not provided, the filename from file_path will be used. |
copy_object_safe
Copies an object to a new destination. Fails if an object already exists at the destination.
| Parameter | Type | Description |
|---|---|---|
destination_bucket_name * | string | The name of the destination GCS bucket. |
destination_object_name * | string | The name for the copied object. |
source_bucket_name * | string | The name of the source GCS bucket. |
source_object_name * | string | The name of the source object. |