AWS MCP
Interact with your AWS environment using natural language. Requires local AWS credentials.
AWS MCP
A Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with your AWS environment. This allows for natural language querying and management of your AWS resources during conversations. Think of it as a better Amazon Q alternative.
Features
- Query and modify AWS resources using natural language
- Support for multiple AWS profiles
- Multi-region support
- Local execution with your AWS credentials
Workflow
Prerequisites
- Python
- Claude Desktop
- AWS credentials configured locally (
~/.aws/
directory)
Installation
- Clone the repository:
git clone https://github.com/yourusername/aws-mcp
cd aws-mcp
- Install the Python MCP server:
pip install -e .
Using as a CLI
The AWS MCP can also be used as a command-line interface:
# Show available commands
python -m aws_mcp --help
# List available AWS profiles
python -m aws_mcp list-credentials
# Select an AWS profile
python -m aws_mcp select-profile myprofile
# Run AWS operations
python -m aws_mcp run-aws-code "list all S3 buckets"
# Use pretty formatting for more readable output
python -m aws_mcp --format pretty list-credentials
Note: Replace python
with the path to your Python executable if needed.
Usage with Claude Desktop
-
Open Claude desktop app and go to Settings -> Developer -> Edit Config
-
Add the following entry to your
claude_desktop_config.json
:
{
"mcpServers": {
"aws-mcp": {
"command": "/path/to/your/python",
"args": ["/path/to/your/aws-mcp/run_aws_mcp.py"]
}
}
}
Important: Replace /path/to/your/python
with the result of which python
from your terminal.
Important: Replace /path/to/your/aws-mcp/run_aws_mcp.py
with the actual path to the run_aws_mcp.py file.
-
Restart Claude desktop app. You should see this no errors:
-
Start by selecting an AWS profile or jump to action by asking:
- "List available AWS profiles"
- "List all EC2 instances in my account"
- "Show me S3 buckets with their sizes"
- "What Lambda functions are deployed in us-east-1?"
- "List all ECS clusters and their services"
Troubleshooting
To see logs:
tail -n 50 -f ~/Library/Logs/Claude/mcp-server-aws-mcp.log
# or
tail -n 50 -f ~/Library/Logs/Claude/mcp.log
Features in Development
- MFA support
- Cache SSO credentials to prevent from refreshing them too eagerly
Contact
For questions, suggestions, or discussions about AWS MCP, please:
- Open an issue on GitHub
- Email: arun.sanna@outlook.com
Check out CONTRIBUTING.md for information on how to contribute to this project.
AWS Integration
AWS MCP supports dynamic execution of AWS operations using boto3. It can:
- Parse natural language or code-like requests to determine the AWS service and operation
- Automatically execute the appropriate boto3 command
- Format results in a readable table when possible
- Handle errors gracefully
Supported Services
The parser can dynamically recognize and work with all AWS services available through boto3, including:
- S3
- EC2
- Lambda
- IAM
- DynamoDB
- RDS
- CloudFormation
- CloudWatch
- SNS
- SQS
- KMS
- Secrets Manager
- SSM
- Route53
- CloudFront
- Elastic Beanstalk
- API Gateway
- ECS
- STS
- Cognito
- CodeBuild
- CodeCommit
- CodePipeline
- Organizations
- GuardDuty
- ...and many more!
Related Servers
Remote MCP Server (Authless)
A template for deploying a remote, authentication-free MCP server on Cloudflare Workers.
commercetools MCP Essentials
An MCP server and toolkit for integrating with the commercetools platform APIs.
Weather MCP
An MCP server for accessing real-time weather data and forecasts.
Cisco Support MCP Server
Access Cisco Support APIs for bug searches and other support-related tasks.
Exoscale
An MCP server for interacting with the Exoscale cloud platform.
Cisco NSO MCP Server
An MCP server for Cisco NSO (Network Services Orchestrator) that exposes NSO data and operations as MCP primitives.
GCP Tools MCP Server
Automate Google Cloud Platform infrastructure setup and GitHub repository configuration for cloud-native projects.
Authorize.Net by CData
A read-only MCP server by CData for querying live Authorize.Net data.
MCP Server Sample
Provides weather information tools using the US National Weather Service API.
Qwen Max
An MCP server for the Qwen Max large language model, powered by Dashscope.