Back to Home
hisinha-rakesh icon

terraform-mcp-server

Verified Safe

by hisinha-rakesh

Overview

An MCP server enabling AI-powered infrastructure-as-code workflows by exposing Terraform operations to clients like Claude, with built-in safety features.

Installation

Run Command
docker run -d --name terraform-mcp-server -v C:/Users/kusha/terraform-workspace:/workspace rakacrdev.azurecr.io/terraform-mcp-server:latest python server.py

Security Notes

The server primarily executes Terraform CLI commands via `subprocess.run`. It uses argument lists to prevent shell injection vulnerabilities. Crucially, it implements strong safety checks for destructive operations: `terraform_apply` requires explicit approval (`auto_approve=True` or `plan_file`), and `terraform_state` explicitly blocks `rm` and `mv` commands. All commands include timeout protection. While user/AI input is directly passed as Terraform arguments (e.g., resource addresses, variable values), the server's strong safety mechanisms for destructive actions, combined with Terraform CLI's own argument parsing, significantly reduce the risk of unintended or malicious behavior. No hardcoded secrets or 'eval' are present.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassHigh
Avg Tokens1500
Stars0
Forks0
Last Update2025-12-15

Tags

TerraformInfrastructure-as-CodeAI AutomationMCPDevOps