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 better Amazon Q alternative.
Features
- π Query and modify AWS resources using natural language
- βοΈ Support for multiple AWS profiles and SSO authentication
- π Multi-region support
- π Secure credential handling (no credentials are exposed to external services, your local credentials are used)
- πββοΈ Local execution with your AWS credentials
Prerequisites
- Node.jsβ
- Claude Desktopβ
- AWS credentials configured locally (
~/.aws/
directory)
Installation
- Clone the repository:
git clone https://github.com/RafalWilinski/aws-mcp
cd aws-mcp
- Install dependencies:
pnpm install
# or
npm install
Usage
- Open Claude desktop app and go to Settings -> Developer -> Edit Config
- Add the following entry to your
claude_desktop_config.json
:
{
"mcpServers": {
"aws": {
"command": "npm",
"args": ["--prefix", "/Users/<YOUR USERNAME>/aws-mcp", "start"]
}
}
}
Important: Replace /Users/<YOUR USERNAME>/aws-mcp
with the actual path to your project directory.
- Restart Claude desktop app. You should see this:
- 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.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
Last updated on