terry-form-mcp

aj-geddes/terry-form-mcp

3.3

If you are the rightful owner of terry-form-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Terry-Form MCP is a secure, containerized server that integrates AI assistants with Terraform for intelligent infrastructure management.

Terry-Form MCP is a Model Control Protocol server designed to bridge AI language models with Terraform infrastructure management. It provides a secure and controlled environment for AI assistants to execute Terraform commands locally using HashiCorp's official Terraform image. The server is enhanced with Language Server Protocol (LSP) integration, offering intelligent development capabilities such as code completion, documentation, and validation. Terry-Form MCP runs operations in isolated Docker containers, ensuring a safe execution environment. It supports dynamic variable passing to Terraform operations and returns structured JSON results for AI processing. This tool is ideal for developers looking to leverage AI for Terraform infrastructure management while maintaining security and control over their local environment.

Features

  • Secure, containerized execution of Terraform commands
  • LSP integration for intelligent code completion and validation
  • Supports Terraform commands like init, validate, fmt, and plan
  • Isolated Docker containers for safe execution
  • Structured JSON output for AI processing

Usages

usage with claude desktop windows

{
  "mcpServers": {
    "terry": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-v", "C:\\Users\\YourUsername\\terraform-projects:/mnt/workspace",
        "terry-form-mcp"
      ]
    }
  }
}

usage with claude desktop macos

{
  "mcpServers": {
    "terry": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-v", "/Users/YourUsername/terraform-projects:/mnt/workspace",
        "terry-form-mcp"
      ]
    }
  }
}

usage with claude desktop linux

{
  "mcpServers": {
    "terry": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-v", "/home/YourUsername/terraform-projects:/mnt/workspace",
        "terry-form-mcp"
      ]
    }
  }
}

usage with vscode extension generic

{
  "mcp.servers": {
    "terry": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-v", "${workspaceFolder}:/mnt/workspace",
        "terry-form-mcp"
      ]
    }
  }
}

Tools

  1. terry

    Executes Terraform commands in a containerized environment

  2. terraform_validate_lsp

    Validates Terraform files using LSP for detailed diagnostics

  3. terraform_hover

    Gets documentation for Terraform elements at cursor position

  4. terraform_complete

    Provides intelligent code completion suggestions

  5. terraform_format_lsp

    Formats Terraform files using LSP