AWS CDK — Claude Code MCP server: what it does, how to install
An MCP server that puts AWS CDK knowledge in front of your coding agent: infrastructure-as-code patterns and CDK Nag security checks.
Apache-2.0 ★ 9,939 updated 2026-10-23
Open on GitHubWhat AWS CDK does
The server covers one subject: AWS CDK. Your agent gets CDK working practices, infrastructure-as-code patterns, and a pass over security rules with CDK Nag. It earns its keep when you edit an existing stack and want the code to stay idiomatic.
Connection is a local MCP server entry in the client config. In Claude that is .mcp.json, in Cursor .cursor/mcp.json, in Windsurf ~/.codeium/windsurf/mcp_config.json, in VS Code .vscode/mcp.json. The awslabs/mcp repository bundles many servers, so you register the one entry you need.
Licence is Apache-2.0. The repository authors describe the Agent Toolkit for AWS as the successor to these servers, with the most useful projects moving there over time. For anything new, start with the toolkit.
What it helps with
- check a CDK stack against AWS best practices
- run CDK Nag rules before a deploy
- choose an infrastructure-as-code pattern for a new service
- fix a stack without breaking security rules
- explain how a CDK resource is wired up
Example prompts for the agent
- Review
lib/app-stack.tsagainst AWS CDK best practices. - Pick an infrastructure-as-code pattern for an S3 bucket and a Lambda function, then explain the trade-offs.
- Check my CDK stack for security compliance before I deploy.
How to install AWS CDK
Install
The MCP registry has no launch command for it: see the repository README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about AWS CDK
How do I install AWS CDK in Claude Code?
Add the server to .mcp.json, the MCP config file for Claude. Other clients keep their own files: .cursor/mcp.json for Cursor, .vscode/mcp.json for VS Code, ~/.codeium/windsurf/mcp_config.json for Windsurf.
What does the AWS CDK MCP server do?
It hands the agent AWS CDK practices, infrastructure-as-code patterns, and a security check against CDK Nag rules.
Which MCP clients can use it?
Any MCP client on the list: Claude, Codex, Cursor, GitHub Copilot, Windsurf, Cline, Zed, Gemini CLI. Only the config file path changes.