What are the prerequisites?
You need Python 3, a virtual environment, and a Terraform workspace directory with your configuration files. Optional: Graphviz for plan visualization.
@jashkahar
Basic information
This project provides an MCP (Model Context Protocol) server that exposes Terraform infrastructure-as-code operations through natural language. It enables LLMs to execute Terraform commands and retrieve information about infrastructure without requiring specific command syntax kn
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"Terraform-MCP-Server": {
"command": "python",
"args": [
"-m",
"venv",
".venv"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
A FastMCP-based server that provides a natural language interface to Terraform operations. It allows you to manage your infrastructure using simple English commands instead of remembering specific Terraform syntax.
Clone the repository, create and activate a Python virtual environment, and install dependencies. Optionally install Graphviz for plan visualization. Set the TERRAFORM_WORKSPACE environment variable to point to your Terraform workspace, then place your Terraform configuration files there. Start the MCP server by running python src/main.py and issue commands like "Initialize the Terraform workspace" or "Apply the configuration".
You need Python 3, a virtual environment, and a Terraform workspace directory with your configuration files. Optional: Graphviz for plan visualization.
Run `python src/main.py` from the project root after installing dependencies and configuring the environment.
You can use natural language commands such as "Initialize the Terraform workspace", "Show me the current state", "Apply the configuration", and "Destroy the infrastructure".
Open source MCP Servers for AWS
Connect Supabase to your AI assistants
MCP server connecting to Kubernetes
The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.

Web hosting for websites built with AI. Connect your HostingFor.AI account and your AI assistant can publish and maintain your site directly: upload files, manage DNS records for custom domains, run SQL against your MySQ
Comments