AWS MCP Server Configuration & Usage Guide
Installationnpx
Risk LevelHigh Risk
API KeyRequired
Clients3 supported
AWS 服务管理,支持 S3、Lambda、EC2 等常用服务的查询和操作
Supported Clients
- Claude Desktop
- Cursor
- VS Code / Cline
Installation Command
npx -y @aws/mcp-serverConfiguration Example
{
"mcpServers": {
"aws": {
"command": "npx",
"args": [
"-y",
"@aws/mcp-server"
],
"env": {
"AWS_ACCESS_KEY_ID": "<your-access-key>",
"AWS_SECRET_ACCESS_KEY": "<your-secret-key>",
"AWS_REGION": "us-east-1"
}
}
}
}Environment variable required:AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION。Do not commit these values to public repositories.
Permission Scope & Security Notes
可操作 AWS 账号下的云资源,风险极高,务必使用最小权限 IAM 角色
- network-access
- credential-required
- infrastructure-write
Risk Score:8/10
Common Errors
- InvalidClientTokenId
- 检查 Access Key ID 是否正确
- AccessDenied
- 确认 IAM 用户/角色有对应服务的权限
Sources
Recently Verified:2026-05-18。Client versions and configuration formats may change. Please refer to official documentation before use.