MCP.so
登录

Terraform MCP Assistant

@jashkahar

基本信息

分类

云与基础设施

传输方式

stdio

作者

jashkahar

关于 Terraform MCP Assistant

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

Terraform MCP Assistant 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "Terraform-MCP-Server": {
      "command": "python",
      "args": [
        "-m",
        "venv",
        ".venv"
      ]
    }
  }
}

Terraform MCP Assistant 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Terraform MCP Assistant?

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.

How to use Terraform MCP Assistant?

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".

Key features of Terraform MCP Assistant

  • Natural language processing of Terraform commands
  • Execution plan visualization
  • State inspection and management
  • Infrastructure deployment and destruction
  • Configuration documentation
  • Automatic workspace validation
  • Error handling and formatted output

Use cases of Terraform MCP Assistant

  • Initialize a Terraform workspace with a single English command
  • Preview changes before applying ("What will change if I apply?")
  • Inspect and manage current infrastructure state
  • Deploy or destroy all resources using natural language
  • List all resources in the workspace

常见问题

1

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.

2

How do I start the server?

Run `python src/main.py` from the project root after installing dependencies and configuring the environment.

3

What kind of commands can I use?

You can use natural language commands such as "Initialize the Terraform workspace", "Show me the current state", "Apply the configuration", and "Destroy the infrastructure".

评论

云与基础设施 分类下的更多 MCP 服务器