Terraform MCP Server with partner managed resources for AI-assisted remediation
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"terraform": {
"env": {
"TFE_TOKEN": "your-hcp-terraform-token",
"AWS_REGION": "us-west-2",
"TFE_ADDRESS": "https://app.terraform.io",
"AWS_ACCESS_KEY_ID": "your-aws-access-key",
"ENABLE_TF_OPERATIONS": "true",
"AWS_SECRET_ACCESS_KEY": "your-aws-secret-key"
},
"args": [
"--toolsets=partner,terraform"
],
"command": "/absolute/path/to/terraform-mcp-server"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
The Terraform MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with Terraform Registry APIs, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in devops
MCP server for using the GitLab API
Enhanced MCP server for GitLab: group projects listing and activity tracking
Yunxiao MCP Server provides AI assistants with the ability to interact with the Yunxiao platform. It provides a set of tools that interact with Yunxiao's API, allowing AI assistants to manage Codeup repository, Project, Pipeline, Packages etc.
MCP server for Komodo - manage Docker containers, servers, stacks, and deployments via AI
MCP Security Weekly
Get CVE alerts and security updates for Terraform Partner Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
The Terraform MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with Terraform Registry APIs, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
This fork extends the base server with Partner-Managed Resources - enabling AI-assisted security remediation through AWS Security Hub integration and HCP Terraform.
┌─────────────────────────────────────────────────────────────────────────────────┐
│ PARTNER-MANAGED RESOURCES WORKFLOW │
├─────────────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ ┌──────────────┐ │
│ │ AWS Security │ Discover ┌──────────────┐ │ HCP Terraform│ │
│ │ Hub │──────────────▶│ MCP Server │──────▶│ (CLI-Driven │ │
│ │ (Findings) │ │ │ │ Workspace) │ │
│ └──────────────┘ │ • Sync │ └──────┬───────┘ │
│ │ • Analyze │ │ │
│ ┌──────────────┐ │ • Link │ ▼ │
│ │ Claude │◀─────────────▶│ • Remediate │ ┌──────────────┐ │
│ │ Desktop │ Converse │ │ │ AWS │ │
│ │ or CLI │ └──────────────┘ │ Resources │ │
│ └──────────────┘ │ (Fixed!) │ │
│ └──────────────┘ │
└─────────────────────────────────────────────────────────────────────────────────┘
When you provide your HCP Terraform org, the system automatically discovers and links resources:
sync_recommendations(terraform_org: "my-org")
│
▼
┌─────────────────────────────────────────────────────────────────────────┐
│ 1. DISCOVER WORKSPACES │
│ Lists all workspaces in your org (via HCP Terraform API) │
└─────────────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────────────┐
│ 2. INDEX TERRAFORM STATE │
│ For each workspace, parses state and extracts cloud resource IDs: │
│ - ARNs from aws_security_group, aws_instance, aws_s3_bucket, etc. │
│ - Builds index: ARN → Terraform address │
│ Example: "arn:aws:ec2:...:sg-xxx" → "aws_security_group.web" │
└─────────────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────────────┐
│ 3. SYNC & AUTO-LINK │
│ Fetches findings from Security Hub, matches ARNs to Terraform │
│ Result: Each finding knows its Terraform resource automatically! │
└──────────────────────────
... [View full README on GitHub](https://github.com/vravind1/terraform-partner-mcp-server#readme)