claude-aws-mcp
v0.1.2MCP server to control AWS resources directly from Claude Desktop or Claude Code
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_security_groups
List all security groups in the AWS account with inbound and outbound rules.
| Parameter | Type | Description |
|---|---|---|
region | string |
get_my_public_ip
Return the current public IP address of this machine.
add_my_ip_to_security_group
Add the current public IP as an inbound rule to the specified security group. Args: security_group_id: Security group ID (e.g. sg-0abc1234) port: Port number to allow (e.g. 22, 3389, 443) protocol: Protocol (tcp / udp / icmp) description: Rule description region: AWS region
| Parameter | Type | Description |
|---|---|---|
port * | integer | |
security_group_id * | string | |
description | string | |
protocol | string | |
region | string |
remove_ip_from_security_group
Remove a specific CIDR IP rule from a security group. Args: security_group_id: Security group ID cidr: CIDR to remove (e.g. 1.2.3.4/32) port: Port number or range (e.g. 22, 0-65535) protocol: Protocol (tcp / udp) region: AWS region
| Parameter | Type | Description |
|---|---|---|
cidr * | string | |
port * | string | |
security_group_id * | string | |
protocol | string | |
region | string |
create_security_group
Create a new security group. Args: name: Security group name description: Security group description vpc_id: VPC ID (uses default VPC if not specified) region: AWS region
| Parameter | Type | Description |
|---|---|---|
description * | string | |
name * | string | |
region | string | |
vpc_id |
list_ec2_instances
List EC2 instances with their state, IP addresses, and instance type. Args: region: AWS region state: Filter by state (all / running / stopped / pending / terminated)
| Parameter | Type | Description |
|---|---|---|
region | string | |
state | string |
get_instance_details
Get detailed information about a specific EC2 instance. Args: instance_id: Instance ID (e.g. i-0abc1234) region: AWS region
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
region | string |
start_ec2_instance
Start a stopped EC2 instance. Args: instance_id: Instance ID region: AWS region
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
region | string |
stop_ec2_instance
Stop a running EC2 instance. Args: instance_id: Instance ID region: AWS region
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
region | string |
reboot_ec2_instance
Reboot an EC2 instance. Args: instance_id: Instance ID region: AWS region
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
region | string |
create_ec2_instance
Launch a new EC2 instance. Args: ami_id: AMI ID (e.g. ami-0c2d3e23e757b5d84) instance_type: Instance type (e.g. t3.micro, t3.small) key_name: Key pair name security_group_ids: Security group IDs, comma-separated (e.g. sg-111,sg-222) name: Instance name tag subnet_id: Subnet ID (uses default subnet if not specified) region: AWS region user_data: Shell script to run on launch (optional)
| Parameter | Type | Description |
|---|---|---|
ami_id * | string | |
instance_type * | string | |
key_name * | string | |
security_group_ids * | string | |
name | string | |
region | string | |
subnet_id | string | |
user_data | string |
terminate_ec2_instance
Permanently terminate (delete) an EC2 instance. This action is irreversible. Args: instance_id: Instance ID to terminate region: AWS region
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
region | string |
list_key_pairs
List available EC2 key pairs.
| Parameter | Type | Description |
|---|---|---|
region | string |
list_vpcs
List VPCs and their associated subnets.
| Parameter | Type | Description |
|---|---|---|
region | string |
list_available_amis
List the latest official AMIs for common OS types. Args: region: AWS region os_type: OS type to query (amazon-linux / ubuntu / windows)
| Parameter | Type | Description |
|---|---|---|
os_type | string | |
region | string |
get_instance_console_output
Get the system console output (boot log) of an EC2 instance. Args: instance_id: Instance ID region: AWS region
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
region | string |
list_elastic_ips
List allocated Elastic IPs and their associated instance information.
| Parameter | Type | Description |
|---|---|---|
region | string |
allocate_elastic_ip
Allocate a new Elastic IP address.
| Parameter | Type | Description |
|---|---|---|
region | string |
associate_elastic_ip
Associate an Elastic IP with an EC2 instance. Args: allocation_id: EIP allocation ID (e.g. eipalloc-0abc1234) instance_id: Instance ID to associate with region: AWS region
| Parameter | Type | Description |
|---|---|---|
allocation_id * | string | |
instance_id * | string | |
region | string |
disassociate_elastic_ip
Disassociate an Elastic IP from an instance. Args: association_id: EIP association ID (e.g. eipassoc-0abc1234) region: AWS region
| Parameter | Type | Description |
|---|---|---|
association_id * | string | |
region | string |
release_elastic_ip
Release (return) an Elastic IP address. You will no longer own this IP. Args: allocation_id: EIP allocation ID (e.g. eipalloc-0abc1234) region: AWS region
| Parameter | Type | Description |
|---|---|---|
allocation_id * | string | |
region | string |
get_ssh_command
Generate an SSH command for connecting to an EC2 instance. Args: instance_id: Instance ID key_path: Local path to the PEM key file (e.g. ~/.ssh/my-key.pem) username: SSH username (auto-detected from AMI if not specified) region: AWS region
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
key_path * | string | |
region | string | |
username | string |
add_instance_tag
Add or update a tag on an EC2 instance. Args: instance_id: Instance ID key: Tag key (e.g. Name, Env, Owner) value: Tag value (e.g. my-server, production, john) region: AWS region
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
key * | string | |
value * | string | |
region | string |
change_instance_type
Change the instance type of an EC2 instance. Automatically stops the instance if running. Args: instance_id: Instance ID new_instance_type: Target instance type (e.g. t3.medium, c5.large) region: AWS region
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | |
new_instance_type * | string | |
region | string |
list_s3_buckets
List all S3 buckets with their creation date and region.
list_s3_objects
List objects in an S3 bucket. Args: bucket: S3 bucket name prefix: Path filter (e.g. logs/ or 2024/) max_keys: Maximum number of results to return (default 50)
| Parameter | Type | Description |
|---|---|---|
bucket * | string | |
max_keys | integer | |
prefix | string |
create_s3_bucket
Create a new S3 bucket. Args: bucket_name: Bucket name (must be globally unique) region: AWS region
| Parameter | Type | Description |
|---|---|---|
bucket_name * | string | |
region | string |
delete_s3_object
Delete a specific object from an S3 bucket. Args: bucket: S3 bucket name key: Object key path to delete (e.g. logs/2024/app.log)
| Parameter | Type | Description |
|---|---|---|
bucket * | string | |
key * | string |
get_s3_presigned_url
Generate a presigned (temporary) download URL for an S3 object. Args: bucket: S3 bucket name key: Object key path (e.g. reports/result.pdf) expires_in: URL expiry time in seconds (default 3600 = 1 hour)
| Parameter | Type | Description |
|---|---|---|
bucket * | string | |
key * | string | |
expires_in | integer |
list_bedrock_models
List available foundation models on AWS Bedrock. Args: region: AWS region (us-east-1 or us-west-2 recommended for Bedrock) provider: Provider filter (e.g. Anthropic, Amazon, Meta, Mistral AI — leave blank for all)
| Parameter | Type | Description |
|---|---|---|
provider | string | |
region | string |
invoke_bedrock_claude
Invoke a Claude model via AWS Bedrock. Args: prompt: Message to send to the model model_id: Bedrock model ID (default: Claude 3.5 Sonnet v2) max_tokens: Maximum number of tokens in the response region: AWS region
| Parameter | Type | Description |
|---|---|---|
prompt * | string | |
max_tokens | integer | |
model_id | string | |
region | string |
invoke_bedrock_model_raw
Invoke any Bedrock model with a raw JSON body. Use for non-Claude models (Titan, Llama, etc.). Args: model_id: Bedrock model ID body: Request JSON string in the model's expected format region: AWS region
| Parameter | Type | Description |
|---|---|---|
body * | string | |
model_id * | string | |
region | string |
list_bedrock_knowledge_bases
List Bedrock Knowledge Bases.
| Parameter | Type | Description |
|---|---|---|
region | string |
query_bedrock_knowledge_base
Query a Bedrock Knowledge Base and get a RAG-based answer. Args: knowledge_base_id: Knowledge Base ID query: Question to ask model_id: Model ID to use for generating the answer region: AWS region
| Parameter | Type | Description |
|---|---|---|
knowledge_base_id * | string | |
query * | string | |
model_id | string | |
region | string |