claude-aws-mcp

v0.1.2
claude-aws-mcp Checked 2 days ago Published 6 months ago

MCP 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.

ParameterTypeDescription
regionstring

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

ParameterTypeDescription
port *integer
security_group_id *string
descriptionstring
protocolstring
regionstring

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

ParameterTypeDescription
cidr *string
port *string
security_group_id *string
protocolstring
regionstring

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

ParameterTypeDescription
description *string
name *string
regionstring
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)

ParameterTypeDescription
regionstring
statestring

get_instance_details

Get detailed information about a specific EC2 instance. Args: instance_id: Instance ID (e.g. i-0abc1234) region: AWS region

ParameterTypeDescription
instance_id *string
regionstring

start_ec2_instance

Start a stopped EC2 instance. Args: instance_id: Instance ID region: AWS region

ParameterTypeDescription
instance_id *string
regionstring

stop_ec2_instance

Stop a running EC2 instance. Args: instance_id: Instance ID region: AWS region

ParameterTypeDescription
instance_id *string
regionstring

reboot_ec2_instance

Reboot an EC2 instance. Args: instance_id: Instance ID region: AWS region

ParameterTypeDescription
instance_id *string
regionstring

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)

ParameterTypeDescription
ami_id *string
instance_type *string
key_name *string
security_group_ids *string
namestring
regionstring
subnet_idstring
user_datastring

terminate_ec2_instance

Permanently terminate (delete) an EC2 instance. This action is irreversible. Args: instance_id: Instance ID to terminate region: AWS region

ParameterTypeDescription
instance_id *string
regionstring

list_key_pairs

List available EC2 key pairs.

ParameterTypeDescription
regionstring

list_vpcs

List VPCs and their associated subnets.

ParameterTypeDescription
regionstring

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)

ParameterTypeDescription
os_typestring
regionstring

get_instance_console_output

Get the system console output (boot log) of an EC2 instance. Args: instance_id: Instance ID region: AWS region

ParameterTypeDescription
instance_id *string
regionstring

list_elastic_ips

List allocated Elastic IPs and their associated instance information.

ParameterTypeDescription
regionstring

allocate_elastic_ip

Allocate a new Elastic IP address.

ParameterTypeDescription
regionstring

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

ParameterTypeDescription
allocation_id *string
instance_id *string
regionstring

disassociate_elastic_ip

Disassociate an Elastic IP from an instance. Args: association_id: EIP association ID (e.g. eipassoc-0abc1234) region: AWS region

ParameterTypeDescription
association_id *string
regionstring

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

ParameterTypeDescription
allocation_id *string
regionstring

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

ParameterTypeDescription
instance_id *string
key_path *string
regionstring
usernamestring

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

ParameterTypeDescription
instance_id *string
key *string
value *string
regionstring

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

ParameterTypeDescription
instance_id *string
new_instance_type *string
regionstring

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)

ParameterTypeDescription
bucket *string
max_keysinteger
prefixstring

create_s3_bucket

Create a new S3 bucket. Args: bucket_name: Bucket name (must be globally unique) region: AWS region

ParameterTypeDescription
bucket_name *string
regionstring

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)

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

ParameterTypeDescription
bucket *string
key *string
expires_ininteger

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)

ParameterTypeDescription
providerstring
regionstring

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

ParameterTypeDescription
prompt *string
max_tokensinteger
model_idstring
regionstring

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

ParameterTypeDescription
body *string
model_id *string
regionstring

list_bedrock_knowledge_bases

List Bedrock Knowledge Bases.

ParameterTypeDescription
regionstring

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

ParameterTypeDescription
knowledge_base_id *string
query *string
model_idstring
regionstring