
AWS IaC MCP Server: Setup for Claude, Cursor and Other Apps
Lets Claude and Cursor check CloudFormation templates, explain failed stack deployments and search CDK and CloudFormation docs.
This is the AWS Labs server for infrastructure as code. It checks templates with cfn-lint and cfn-guard, explains failed CloudFormation deployments, and searches CDK and CloudFormation documentation and code samples. It runs on your computer. Template checks need no AWS account access, and only deployment troubleshooting uses your AWS credentials.
Good for
- Developers who write CloudFormation templates and want errors caught before deploy
- Teams that need templates checked against security rules
- Engineers debugging a stack that failed to deploy
- CDK users who want docs and code samples inside the assistant
Works in
12 should work
Tap an app to see how to set it up and any known problems.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Client does not support this transport.
Client does not support this transport.
Install AWS IaC MCP
Claude Code
- 1
Copy this prompt.
Add the AWS IaC MCP server to Claude Code. Run this command: claude mcp add aws-iac -- uvx awslabs.aws-iac-mcp-server Then check that it loaded and tell me if I need to sign in or restart.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires uv (Python).
Built from the package data we hold. Not yet tested by us.
Tools
Checks a CloudFormation template for errors and suggests fixes
Runs your template through cfn-lint and lists each syntax, schema or property error with a fix suggestion and line number. You can pick regions to check against and skip chosen checks. This runs on your computer and needs no AWS permissions.
Try: “Validate this CloudFormation template and tell me what is wrong: [paste template]”
Read ·
validate_cloudformation_templateChecks a template against security and compliance rules
Runs your template through cfn-guard using the rules bundled with the server and returns what fails, with guidance on how to fix it. This runs locally and needs no AWS permissions.
Try: “Check this template for security and compliance problems: [paste template]”
Read ·
check_cloudformation_template_complianceExplains why a CloudFormation stack failed to deploy
Reads a failed stack by name and region, matches the failure against 30+ known cases, and suggests fixes. It can add CloudTrail deep links, which is on by default. This is the one tool that calls AWS with your credentials.
Try: “Troubleshoot my CloudFormation stack named my-app-stack in us-east-1.”
Network ·
troubleshoot_cloudformation_deploymentSearches CloudFormation docs for resource types and syntax
Searches the CloudFormation documentation knowledge base and returns relevant guidance and best practices.
Try: “Search CloudFormation documentation for AWS::Lambda::Function properties.”
Network ·
search_cloudformation_documentationReads a full CDK or CloudFormation docs page
Fetches a documentation page from a search result and converts it to markdown, so the assistant reads the whole page and not just an excerpt.
Try: “Read the full CDK documentation for aws-s3.Bucket from the page you just found.”
Network ·
read_iac_documentation_pageSearches AWS CDK docs, API reference and best practices
Searches the CDK API reference, best practices guide, code samples and CDK-NAG rules, and returns relevant excerpts. Specific construct names and boolean terms like "S3 AND encryption" give better results.
Try: “Search the CDK docs for S3 bucket encryption best practices.”
Network ·
search_cdk_documentationFinds CDK code samples and community constructs
Searches CDK samples, examples and constructs. You can filter by programming language, and the default is TypeScript.
Try: “Find Python CDK examples for API Gateway with a Lambda integration.”
Network ·
search_cdk_samples_and_constructsReturns AWS CDK best practices
Returns guidance on CDK application setup, coding, constructs, security and testing. It takes no input.
Try: “What are the CDK security best practices for S3 buckets?”
Read ·
cdk_best_practicesShows how to use CloudFormation pre-deployment validation
Returns instructions and CLI commands for the CloudFormation feature that validates a template while a change set is created, plus remediation guidance. It takes no input.
Try: “How do I validate my template before deploying it with a change set?”
Read ·
get_cloudformation_pre_deploy_validation_instructions
Read from the source code
Permissions
low risk · 2 things to watch
Low risk
It only reads, but troubleshooting sends stack details to your AI provider. Use a role that has just the four read permissions the README lists.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only modeHow to turn it on
Watch out for
Stack details go to your AI provider
The README warns that AWS responses are shared with your AI model provider. Check its data policy before troubleshooting stacks that hold sensitive names or settings. github.com
AWS access is needed only for troubleshooting
Template validation and compliance checks run locally. Give the server a role with only the four read permissions listed in the README. github.com
Security advisories
No published security advisories as of Nov 2, 2026.
Technical details
| Turning on read-only | Every documented tool only reads. The example IAM policy in the README grants describe and lookup permissions only. |
|---|---|
| Talks to | AWS documentation and CDK knowledge bases. CloudFormation and CloudTrail APIs in your AWS account (troubleshooting only) |
| Sign-in and keys | Uses your AWS credentials from an AWS profile or the standard AWS environment variables. Nothing is stored by the server. |
| Scopes |
|
Questions
Does it need AWS credentials?
Only for troubleshooting failed stacks. Template validation and compliance checks run locally with no AWS access. Troubleshooting uses your AWS profile or AWS environment variables and needs permission to describe stacks and look up CloudTrail events.
Can it deploy or change my CloudFormation stacks?
No. The documented tools validate templates, check compliance, troubleshoot failed stacks and search documentation. None of them creates, updates or deletes AWS resources.
Does it replace the older AWS CDK and CloudFormation servers?
Yes. AWS positions it as the replacement for the separate CDK, CloudFormation and Cloud Control API servers, which are deprecated.
Can I run it in Docker?
Yes. The README shows an optional Docker setup that mounts your AWS credentials folder read-only. Credentials must be refreshed on your host because the container only reads them.
Which apps does it work with?
Any app that can run a local server. The README has one-click buttons for Kiro, Cursor and VS Code. For Claude and others, use the install box above.
What does it send to my AI provider?
The results of its AWS calls, such as stack events, are passed back to your AI model provider. The README tells you to check that provider's data handling before using it with AWS resources.
Information
updated Nov 2, 2026
- Publisher
- Official
- Package
awslabs.aws-iac-mcp-server- Registry
- PyPI
- Transport
- stdio
- Auth
- token in env
- License
- Apache-2.0
- Last commit
- Oct 30, 2026
Other AWS MCP servers
Sources
Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.
Show all 1Hide
- AWS IaC MCP Server README · github.com