AWS CLI MCP Server

v0.1.2
io.github.musaddiq-dev/aws-cli-mcp-server Checked 12 hours ago Published 6 months ago

Python MCP server for AWS CLI inspection and operations

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

call_aws Execute AWS CLI Command

Execute AWS CLI commands with validation and error handling. This is the primary tool for executing AWS CLI commands. Use this when you know the specific AWS service and operation you want to perform. Key points: - Commands MUST start with "aws" and follow AWS CLI syntax - Default region: us-east-1 (override with --region parameter) - Working directory: /tmp/aws-mcp-work - Use absolute paths for files Command restrictions: - DO NOT use shell pipes (|), redirects (>, >>, <), or command substitution ($()) - DO NOT use shell variables or environment variables - DO NOT use relative paths for fi…

ParameterTypeDescription
cli_command *stringThe complete AWS CLI command to execute. MUST start with 'aws'
max_resultsOptional limit for number of results (useful for pagination)

suggest_aws_commands Suggest AWS CLI Commands

Suggest AWS CLI commands based on a natural language query. Use this tool when you're unsure about the exact AWS CLI command syntax or want to explore available commands for a specific task. Best practices for query formulation: 1. Include the AWS service name (EC2, S3, Lambda, etc.) 2. Describe the action you want to perform 3. Include any relevant context or constraints Query examples: - "List all running EC2 instances in us-east-1" - "Get the size of my S3 bucket named 'my-backup-bucket'" - "List all IAM users with AdministratorAccess policy" - "Show me all Lambda functions in my account…

ParameterTypeDescription
query *stringNatural language description of what you want to accomplish

get_aws_regions Get AWS Regions

Get a list of available AWS regions. Returns: Dictionary with success status and list of AWS regions

get_caller_identity Get Caller Identity

Get the AWS identity of the current caller. Returns information about the IAM user or role whose credentials are used to call the operation. Returns: Dictionary with success status and caller identity (Account, ARN, UserId)