s3_bucket_create
Create a new Amazon S3 bucket by specifying a unique name. This tool enables users to manage AWS storage resources programmatically through natural language commands on the AWS MCP Server.
Instructions
Create a new S3 bucket
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket_name | Yes | Name of the S3 bucket to create |
Implementation Reference
- src/mcp_server_aws/server.py:146-150 (handler)Executes the s3_bucket_create tool by invoking the boto3 S3 client's create_bucket method with the provided bucket name and region location constraint.if name == "s3_bucket_create": response = s3_client.create_bucket(Bucket=arguments["bucket_name"], CreateBucketConfiguration={ 'LocationConstraint': os.getenv("AWS_REGION") or 'us-east-1' })
- src/mcp_server_aws/tools.py:6-19 (schema)Defines the Tool object for s3_bucket_create, including its input schema requiring a 'bucket_name' string.Tool( name="s3_bucket_create", description="Create a new S3 bucket", inputSchema={ "type": "object", "properties": { "bucket_name": { "type": "string", "description": "Name of the S3 bucket to create" } }, "required": ["bucket_name"] } ),
- src/mcp_server_aws/server.py:135-139 (registration)Registers all AWS tools, including s3_bucket_create, by returning the list from get_aws_tools() in response to list_tools requests.@server.list_tools() async def list_tools() -> list[Tool]: """List available AWS tools""" logger.debug("Handling list_tools request") return get_aws_tools()
- src/mcp_server_aws/tools.py:450-454 (registration)Combines and returns S3 and DynamoDB tools for registration, including s3_bucket_create via get_s3_tools().def get_aws_tools() -> list[Tool]: return [ *get_s3_tools(), *get_dynamodb_tools() ]
- src/mcp_server_aws/tools.py:4-20 (registration)Returns the list of S3 tools starting with the s3_bucket_create Tool definition for server registration.def get_s3_tools() -> list[Tool]: return [ Tool( name="s3_bucket_create", description="Create a new S3 bucket", inputSchema={ "type": "object", "properties": { "bucket_name": { "type": "string", "description": "Name of the S3 bucket to create" } }, "required": ["bucket_name"] } ), Tool(