awslabs.s3-tables-mcp-server

v0.1.2
awslabs.s3-tables-mcp-server Checked 16 hours ago Published 14 days ago

An AWS Labs Model Context Protocol (MCP) server for awslabs.s3-tables-mcp-server

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_table_buckets

List all S3 table buckets for your AWS account. Permissions: You must have the s3tables:ListTableBuckets permission to use this operation.

ParameterTypeDescription
region_nameThe AWS region name where the operation should be performed.

list_namespaces

List all namespaces across all S3 table buckets. Permissions: You must have the s3tables:ListNamespaces permission to use this operation.

ParameterTypeDescription
region_nameThe AWS region name where the operation should be performed.

list_tables

List all S3 tables across all table buckets and namespaces. Permissions: You must have the s3tables:ListTables permission to use this operation.

ParameterTypeDescription
region_nameThe AWS region name where the operation should be performed.

create_table_bucket

Creates an S3 table bucket. Permissions: You must have the s3tables:CreateTableBucket permission to use this operation.

ParameterTypeDescription
name *stringName of the table bucket to create. Must be 3-63 characters long and contain only lowercase letters, numbers, and hyphens.
region_nameThe AWS region name where the operation should be performed.

create_namespace

Create a new namespace in an S3 table bucket. Creates a namespace. A namespace is a logical grouping of tables within your S3 table bucket, which you can use to organize S3 tables. Permissions: You must have the s3tables:CreateNamespace permission to use this operation.

ParameterTypeDescription
namespace *stringThe name of the namespace. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
table_bucket_arn *stringTable bucket ARN
region_nameThe AWS region name where the operation should be performed.

create_table

Create a new S3 table in an S3 table bucket. Creates a new S3 table associated with the given S3 namespace in an S3 table bucket. The S3 table can be configured with specific format and metadata settings. Metadata contains the schema of the table. Do not use the metadata parameter if the schema is unclear. Supported Iceberg Primitive Types: - boolean: True or false - int: 32-bit signed integers (can promote to long) - long: 64-bit signed integers - float: 32-bit IEEE 754 floating point (can promote to double) - double: 64-bit IEEE 754 floating point -…

ParameterTypeDescription
name *stringThe name of the table. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
namespace *stringThe name of the namespace. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
table_bucket_arn *stringTable bucket ARN
formatstringThe format for the S3 table.
metadataThe metadata for the S3 table.
region_nameThe AWS region name where the operation should be performed.

get_table_maintenance_config

Get details about the maintenance configuration of a table. Gets details about the maintenance configuration of a table. For more information, see S3 Tables maintenance in the Amazon Simple Storage Service User Guide. Permissions: You must have the s3tables:GetTableMaintenanceConfiguration permission to use this operation.

ParameterTypeDescription
name *stringThe name of the table. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
namespace *stringThe name of the namespace. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
table_bucket_arn *stringTable bucket ARN
region_nameThe AWS region name where the operation should be performed.

get_maintenance_job_status

Get the status of a maintenance job for a table. Gets the status of a maintenance job for a table. For more information, see S3 Tables maintenance in the Amazon Simple Storage Service User Guide. Permissions: You must have the s3tables:GetTableMaintenanceJobStatus permission to use this operation.

ParameterTypeDescription
name *stringThe name of the table. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
namespace *stringThe name of the namespace. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
table_bucket_arn *stringTable bucket ARN
region_nameThe AWS region name where the operation should be performed.

get_table_metadata_location

Get the location of the S3 table metadata. Gets the S3 URI location of the table metadata, which contains the schema and other table configuration information. Permissions: You must have the s3tables:GetTableMetadataLocation permission to use this operation.

ParameterTypeDescription
name *stringThe name of the table. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
namespace *stringThe name of the namespace. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
table_bucket_arn *stringTable bucket ARN
region_nameThe AWS region name where the operation should be performed.

rename_table

Rename an S3 table or move it to a different S3 namespace. Renames an S3 table or moves it to a different S3 namespace within the same S3 table bucket. This operation maintains the table's data and configuration while updating its location. Permissions: You must have the s3tables:RenameTable permission to use this operation.

ParameterTypeDescription
name *stringThe name of the table. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
namespace *stringThe name of the namespace. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
table_bucket_arn *stringTable bucket ARN
new_nameThe name of the table. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
new_namespace_nameThe name of the namespace. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
region_nameThe AWS region name where the operation should be performed.
version_tokenThe version token of the S3 table. Must be 1-2048 characters long.

update_table_metadata_location

Update the metadata location for an S3 table. Updates the metadata location for an S3 table. The metadata location of an S3 table must be an S3 URI that begins with the S3 table's warehouse location. The metadata location for an Apache Iceberg S3 table must end with .metadata.json, or if the metadata file is Gzip-compressed, .metadata.json.gz. Permissions: You must have the s3tables:UpdateTableMetadataLocation permission to use this operation.

ParameterTypeDescription
metadata_location *stringThe new metadata location for the S3 table. Must be 1-2048 characters long.
name *stringThe name of the table. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
namespace *stringThe name of the namespace. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
table_bucket_arn *stringTable bucket ARN
version_token *stringThe version token of the S3 table. Must be 1-2048 characters long.
region_nameThe AWS region name where the operation should be performed.

query_database

Execute SQL queries against S3 Tables using PyIceberg/Daft. This tool provides a secure interface to run read-only SQL queries against your S3 Tables data using the PyIceberg and Daft engine. Use a correct region for warehouse, region, and uri. Example input values: warehouse: 'arn:aws:s3tables:<Region>:<accountID>:bucket/<bucketname>' region: 'us-west-2' namespace: 'retail_data' query: 'SELECT * FROM customers LIMIT 10' uri: 'https://s3tables.us-west-2.amazonaws.com/iceberg' catalog_name: 's3tablescatalog' rest_signing_name…

ParameterTypeDescription
namespace *stringThe name of the namespace. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
region *stringAWS region for S3Tables/Iceberg REST endpoint
uri *stringREST URI for Iceberg catalog
warehouse *stringWarehouse string for Iceberg catalog
catalog_namestringCatalog name
querystringOptional SQL query. If not provided, will execute SELECT * FROM table. Must be a read operation.
rest_signing_namestringREST signing name
rest_sigv4_enabledstringEnable SigV4 signing

import_csv_to_table

Import data from a CSV file into an S3 table. This tool reads data from a CSV file stored in S3 and imports it into an S3 table. If the table doesn't exist, it will be created with a schema inferred from the CSV file. If the table exists, the CSV file schema must be compatible with the table's schema. The tool will validate the schema before attempting to import the data. If preserve_case is True, the column names will not be converted to snake_case. Otherwise, the column names will be converted to snake_case. Returns error dictionary with status and error message if:…

ParameterTypeDescription
namespace *stringThe name of the namespace. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
region *stringAWS region for S3Tables/Iceberg REST endpoint
s3_url *stringThe S3 URL of the file to preview (format: s3://bucket-name/key)
table_name *stringThe name of the table. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
uri *stringREST URI for Iceberg catalog
warehouse *stringWarehouse string for Iceberg catalog
catalog_namestringCatalog name
preserve_casebooleanPreserve case of column names
rest_signing_namestringREST signing name
rest_sigv4_enabledstringEnable SigV4 signing

import_parquet_to_table

Import data from a Parquet file into an existing S3 table. This tool reads data from a Parquet file stored in S3 and imports it into an existing S3 table. The table must already exist. The Parquet file schema must be compatible with the table's schema. The tool will validate the schema before attempting to import the data. If preserve_case is True, the column names will not be converted to snake_case. Otherwise, the column names will be converted to snake_case. Returns error dictionary with status and error message if: - URL is not a valid S3 URL - File is…

ParameterTypeDescription
namespace *stringThe name of the namespace. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
region *stringAWS region for S3Tables/Iceberg REST endpoint
s3_url *stringThe S3 URL of the file to preview (format: s3://bucket-name/key)
table_name *stringThe name of the table. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
uri *stringREST URI for Iceberg catalog
warehouse *stringWarehouse string for Iceberg catalog
catalog_namestringCatalog name
preserve_casebooleanPreserve case of column names
rest_signing_namestringREST signing name
rest_sigv4_enabledstringEnable SigV4 signing

get_bucket_metadata_config

Get the metadata table configuration for a regular general purpose S3 bucket. Retrieves the metadata table configuration for a regular general purpose bucket in s3. This configuration determines how metadata is stored and managed for the bucket. The response includes: - S3 Table Bucket ARN - S3 Table ARN - S3 Table Name - S3 Table Namespace Description: Amazon S3 Metadata accelerates data discovery by automatically capturing metadata for the objects in your general purpose buckets and storing it in read-only, fully managed Apache Iceberg tables that you ca…

ParameterTypeDescription
bucket *stringThe name of the S3 bucket to get metadata table configuration for.
region_nameThe AWS region name where the operation should be performed.

append_rows_to_table

Append rows to an Iceberg table using PyIceberg/Daft. This tool appends data rows to an existing Iceberg table using the PyIceberg engine. The rows parameter must be a list of dictionaries, each representing a row. Check the schema of the table before appending rows. Example input values: warehouse: 'arn:aws:s3tables:<Region>:<accountID>:bucket/<bucketname>' region: 'us-west-2' namespace: 'retail_data' table_name: 'customers' rows: [{"customer_id": 1, "customer_name": "Alice"}, ...] uri: 'https://s3tables.us-west-2.amazonaws.com…

ParameterTypeDescription
namespace *stringThe name of the namespace. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
region *stringAWS region for S3Tables/Iceberg REST endpoint
rows *arrayList of rows to append, each as a dict
table_name *stringThe name of the table. Must be 1-255 characters long and contain only alphanumeric characters, underscores, and hyphens.
uri *stringREST URI for Iceberg catalog
warehouse *stringWarehouse string for Iceberg catalog
catalog_namestringCatalog name
rest_signing_namestringREST signing name
rest_sigv4_enabledstringEnable SigV4 signing