These are instructions from AWS to set up AI agent integrations for building and deploying serverless applications on AWS Lambda. All commands are validated and ready to use.
Check whether the user has valid AWS credentials by running:
aws sts get-caller-identityIf the command succeeds and shows the user Account and Arn, the user is authenticated. If it fails (missing, expired, or invalid credentials), fetch and follow the signing-in-to-aws skill:
https://github.com/aws/agent-toolkit-for-aws/blob/main/skills/core-skills/signing-in-to-aws/SKILL.md
Use the correct section for your agent below.
Run these commands to install the AWS serverless skill, agent hooks, and the AWS MCP Server configuration in one step.
claude plugin marketplace add aws/agent-toolkit-for-aws
claude plugin install aws-core@agent-toolkit-for-aws
Install for other agents such as Cursor, Kiro CLI, GitHub Copilot, Codex, Devin Desktop, and OpenCode
npx skills add https://github.com/aws/agent-toolkit-for-aws --skill aws-serverless --yes --globalInstall additional AWS Lambda skills using any agent such as Claude Code, Cursor, Kiro CLI, GitHub Copilot, Codex, Devin Desktop, and OpenCode
Install Lambda MicroVM skill:
npx skills add https://github.com/aws/agent-toolkit-for-aws/tree/main/skills/specialized-skills/serverless-skills/aws-lambda-microvms --yes --globalInstall Lambda Managed Instances skill:
npx skills add https://github.com/aws/agent-toolkit-for-aws/tree/main/skills/specialized-skills/serverless-skills/aws-lambda-managed-instances --yes --globalInstall Lambda durable functions skill:
npx skills add https://github.com/aws/agent-toolkit-for-aws/tree/main/skills/specialized-skills/serverless-skills/aws-lambda-durable-functions --yes --globalRegister the Serverless MCP Server based on your agent. Replace AWS_PROFILE with your local AWS profile name.
Config file: ~/.kiro/settings/mcp.json
Add under "mcpServers":
"awslabs.aws-serverless-mcp": {
"command": "uvx",
"args": ["awslabs.aws-serverless-mcp-server@latest"],
"env": {
"AWS_PROFILE": <your profile here>,
"AWS_REGION": "us-east-1",
"FASTMCP_LOG_LEVEL": "ERROR"
},
"disabled": false
}claude mcp add awslabs-aws-serverless-mcp \
-e AWS_PROFILE=<your profile here> \
-e AWS_REGION=us-east-1 \
-e FASTMCP_LOG_LEVEL=ERROR \
--scope user \
-- uvx awslabs.aws-serverless-mcp-server@latestcodex mcp add awslabs-aws-serverless-mcp \
--env AWS_PROFILE=<your profile here> \
--env AWS_REGION=us-east-1 \
--env FASTMCP_LOG_LEVEL=ERROR \
-- uvx awslabs.aws-serverless-mcp-server@latestAdd to your agent's MCP config file under "mcpServers":
| Agent | Config file |
|---|---|
| Cursor | .cursor/mcp.json |
| GitHub Copilot | .vscode/mcp.json |
| Devin Desktop | ~/.codeium/windsurf/mcp_config.json |
| OpenCode | ~/.config/opencode/opencode.jsonc |
"awslabs.aws-serverless-mcp": {
"command": "uvx",
"args": ["awslabs.aws-serverless-mcp-server@latest"],
"env": {
"AWS_PROFILE": <your profile here>,
"AWS_REGION": "us-east-1",
"FASTMCP_LOG_LEVEL": "ERROR"
}
}