AWS Terraform — Claude Code MCP server: what it does, how to install
AWS Terraform is an MCP server for Claude Code that provides AWS Infrastructure as Code patterns, applies Terraform best practices, and checks security compliance with Checkov.
Apache-2.0 ★ 9,939 updated 2026-10-23
Open on GitHubWhat AWS Terraform does
The server comes from the awslabs/mcp repository to help coding assistants build AWS infrastructure with Terraform. It supplies cloud architecture patterns, enforces Infrastructure as Code conventions, and audits configurations for security compliance using Checkov.
Host tools configure the server locally or remotely via transport mechanisms. The repository supplies setup paths across multiple clients, including .mcp.json for Claude Code, .cursor/mcp.json for Cursor, and cline_mcp_settings.json for Cline.
Running compliance checks requires Checkov in your environment. AWS notes that Agent Toolkit for AWS is the designated successor to these standalone servers, with key capabilities slated to migrate there over time.
What it helps with
- Structure AWS Terraform modules following established infrastructure patterns
- Audit Infrastructure as Code configurations against Checkov security rules
- Connect cloud infrastructure MCP tooling to Claude Code or Cursor
Example prompts for the agent
- Scan Terraform modules in the infra directory with Checkov and fix policy violations
- Generate an AWS Terraform template following official infrastructure patterns
- Review
main.tffor AWS security and compliance gaps
How to install AWS Terraform
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 Terraform
How do you configure AWS Terraform in Claude Code?
Add the server entry from the awslabs/mcp repository to your project's .mcp.json configuration file.
What does the AWS Terraform MCP server do?
It delivers AWS infrastructure patterns to your AI assistant, guides Terraform authoring, and enforces security policies via Checkov.
What external dependencies does this server expect?
Security compliance evaluation relies on having Checkov installed in the target environment.