io.github.musaddiq-dev/aws-cli-mcp-server
Allows executing AWS CLI commands, suggesting AWS commands, listing AWS regions, and retrieving caller identity via AWS.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@io.github.musaddiq-dev/aws-cli-mcp-serverlist my S3 buckets"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AWS MCP Server
A Python Model Context Protocol (MCP) server that lets MCP-compatible clients inspect and operate AWS through the AWS CLI. It supports command execution with validation, command suggestions, AWS region lookup, and caller identity checks.
Features
Execute AWS CLI commands without shell expansion, preserving quoted arguments with shell-style parsing
Suggest common AWS CLI commands from natural language requests
Return available AWS regions
Return the current caller identity
Support stdio transport for local MCP clients
Validate configuration and write logs to stderr plus a local log file
Related MCP server: AWS CLI MCP Server
Safety Model
This server can execute AWS CLI commands using the credentials available to the process. It blocks shell operators by using subprocess.run(..., shell=False) and flags destructive-looking commands, but it cannot replace IAM least privilege or human review. Use scoped AWS profiles or roles, prefer non-production accounts for testing, and keep destructive commands on manual approval in your MCP client.
Requirements
Python 3.12+
AWS CLI v2 installed and available on
PATHAWS CLI authentication configured and configuration through an AWS profile, IAM Identity Center/SSO, environment variables, an IAM role, or another AWS-supported credential provider
MCP-compatible client such as Claude Desktop, Cursor, VS Code, or another MCP host
Installation
When published to PyPI, install or run the server like a standard Python MCP package:
uvx mdev-aws-mcp-serverFor local development from source:
git clone https://github.com/musaddiq-dev/aws-cli-mcp-server.git
cd aws-cli-mcp-server
python -m venv .venv
source .venv/bin/activate
pip install -e .Configuration
Before running this server, install the AWS CLI using the official AWS CLI install guide, then configure credentials using the official AWS CLI sign-in guide and AWS CLI configuration guide. AWS recommends short-term credentials where possible; avoid long-term IAM user keys unless your use case requires them.
Copy the example environment file and adjust values as needed.
cp .env.example .envVariable | Description | Default |
| Default AWS region |
|
| AWS credentials profile |
|
| Working directory for file operations |
|
| Emit warnings for destructive-looking operations |
|
| Application log level |
|
Running
mdev-aws-mcp-serverFrom a local checkout before PyPI publication, run:
python -m aws_mcp_server.serverMCP Client Configuration
For published installs, prefer uvx. MCP servers using stdio must write protocol messages only to stdout; this server writes logs to stderr and a local file under ~/.aws-mcp-server/logs.
Claude Desktop / Cursor / Windsurf / Cline
Most MCP clients accept this mcpServers JSON shape:
{
"mcpServers": {
"aws": {
"command": "uvx",
"args": ["mdev-aws-mcp-server"],
"env": {
"AWS_PROFILE": "default",
"AWS_REGION": "us-east-1"
}
}
}
}For local development from this repository, use the installed console script path instead:
{
"mcpServers": {
"aws": {
"command": "/absolute/path/to/aws-cli-mcp-server/.venv/bin/mdev-aws-mcp-server",
"args": [],
"env": {
"AWS_PROFILE": "default",
"AWS_REGION": "us-east-1"
}
}
}
}Claude Code CLI
claude mcp add aws --env AWS_PROFILE=default --env AWS_REGION=us-east-1 -- uvx mdev-aws-mcp-serverVS Code MCP
VS Code uses the same command/args/env model in its MCP configuration:
{
"servers": {
"aws": {
"type": "stdio",
"command": "uvx",
"args": ["mdev-aws-mcp-server"],
"env": {
"AWS_PROFILE": "default",
"AWS_REGION": "us-east-1"
}
}
}
}Tools
Tool | Purpose | Safety |
| Execute an AWS CLI command | Can modify AWS resources |
| Suggest common AWS CLI commands | Read-only |
| List AWS regions | Read-only |
| Return current AWS identity | Read-only |
Development
pip install -e .
pip install -e '.[dev]'
pytest
ruff check .
ruff format .
pyrightSmoke Check
python -m py_compile src/aws_mcp_server/server.py src/aws_mcp_server/config.py src/aws_mcp_server/aws/executor.py
python -m pytestManual AWS check, if credentials are configured:
aws sts get-caller-identityDistribution
This server is published through the standard Python MCP distribution path:
PyPI package:
mdev-aws-mcp-serverMCP Registry name:
io.github.musaddiq-dev/aws-cli-mcp-serverRuntime hint:
uvxTransport:
stdio
The mcp-name marker at the top of this README is required for MCP Registry ownership verification. Users should prefer uvx mdev-aws-mcp-server in local MCP client configurations.
Security Notes
Do not commit
.env, AWS credentials, profiles, access keys, or account-specific outputs.Use least-privilege IAM permissions for the profile or role running this server.
Keep
call_awson explicit manual approval in your MCP client.Do not expose this server over a network without adding authentication, TLS, and network controls.
Review generated command suggestions before executing them.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/musaddiq-dev/aws-cli-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server