Execute AWS CLI Commands Securely
MCP server that provides AWS CLI functionality through a standardized interface, reproducing the use_aws tool from Amazon Q Developer CLI for use in various AI
Why it matters
This asset provides a standardized interface for executing AWS CLI commands, replicating the functionality of Amazon Q Developer CLI's use_aws tool. It enhances security with automatic read-only/write operation detection and ensures proper parameter handling for various AI tools.
Outcomes
What it gets done
Execute AWS CLI commands through a standardized MCP interface.
Automatically detect and handle read-only vs. write operations for security.
Format parameters and manage AWS CLI user agents.
Truncate large responses for efficient handling.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/vb-use-aws-mcp | bash Capabilities
Tools your agent gets
Execute AWS CLI commands with proper parameter handling and security checks
Overview
use_aws_mcp server
What it does
A Model Context Protocol server that exposes AWS CLI functionality through a single use_aws tool, featuring automatic parameter formatting, security checks for read-only versus write operations, and comprehensive error handling with output truncation at 100KB.
How it connects
Best suited for integrating AWS CLI capabilities into MCP-compatible AI tools where you need proper parameter handling, automatic detection of operation types, and standardized AWS CLI access with user agent management and credential support through AWS profiles.
Source README
A standalone Model Context Protocol server that provides AWS CLI functionality through a standardized interface, reproducing the use_aws tool from Amazon Q Developer CLI for use in various AI tools.
Installation
Cargo Install
cargo install use_aws_mcp
From Source
cargo build --release
Configuration
MCP Client Configuration
{
"mcpServers": {
"use_aws_mcp": {
"name": "use_aws_mcp",
"command": "use_aws_mcp",
"timeout": 300,
"env": {},
"disabled": false
}
}
}
Available Tools
| Tool | Description |
|---|---|
use_aws |
Execute AWS CLI commands with proper parameter handling and security checks |
Features
- Integration with AWS CLI with proper parameter handling
- Security checks with automatic detection of read-only and write operations
- User Agent management for proper AWS CLI user agent configuration
- Parameter formatting with automatic kebab-case conversion
- Comprehensive error handling and output formatting
- Human-readable descriptions using terminal formatting
- Output truncation for large responses (maximum 100KB)
Environment Variables
Optional
AWS_DEFAULT_PROFILE- AWS profile to use for credentialsRUST_LOG- Enable debug logging (set to use_aws=debug)
Usage Examples
List my S3 buckets
Describe EC2 instances in us-west-2
List Lambda functions using development profile
Get information about AWS resources across different services
Notes
Requires an installed and configured AWS CLI with proper credentials. MCP clients without shell access, such as Cursor, may require explicit specification of an AWS profile. Read-only operations are automatically detected and do not require user confirmation.
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.