mcp-server-terraform
Provides tools for Terraform operations including init, plan, apply, validate, state list, and output, enabling AI-driven infrastructure-as-code workflows.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server-terraformrun terraform plan in the current directory"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-server-terraform
An MCP (Model Context Protocol) server that exposes Terraform CLI operations as tools for Claude and other MCP-compatible AI assistants. Enables AI-driven infrastructure-as-code workflows including planning, applying, and validating Terraform configurations.
Architecture
graph TB
subgraph Client["MCP Client (Claude)"]
style Client fill:#4A90D9,stroke:#2C5F8A,color:#FFFFFF
A[Claude Desktop / CLI]
end
subgraph Server["MCP Server"]
style Server fill:#2ECC71,stroke:#1A9B52,color:#FFFFFF
B[StdioTransport]
C[Tool Registry]
end
subgraph Tools["Terraform Tools"]
style Tools fill:#F39C12,stroke:#D68910,color:#FFFFFF
D[terraform_init]
E[terraform_plan]
F[terraform_apply]
G[terraform_validate]
H[terraform_state_list]
I[terraform_output]
end
subgraph Infra["Infrastructure"]
style Infra fill:#9B59B6,stroke:#7D3C98,color:#FFFFFF
J[Terraform CLI]
K[State Backend]
L[Cloud Providers]
end
A -->|stdio| B
B --> C
C --> D
C --> E
C --> F
C --> G
C --> H
C --> I
D --> J
E --> J
F --> J
G --> J
H --> J
I --> J
J --> K
J --> LRelated MCP server: MCP SysOperator
Tools
Tool | Description |
| Initialize a working directory, download providers and modules |
| Generate and display an execution plan |
| Apply changes to reach desired infrastructure state |
| Validate configuration files for syntax errors |
| List all resources in the state file |
| Read output values from state |
Quick Start
npm install
npm run build
npm startDocker
docker build -t mcp-server-terraform .
docker run -i mcp-server-terraformClaude Desktop Configuration
{
"mcpServers": {
"terraform": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/path/to/mcp-server-terraform"
}
}
}License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server that integrates Claude with the Terraform Cloud API, allowing Claude to manage your Terraform infrastructure through natural conversation.6223MIT
- AlicenseCquality-maintenanceAn MCP server for Infrastructure as Code that enables AI assistants to manage cloud resources through Ansible and Terraform operations. It supports executing playbooks, managing AWS services, and running Terraform commands with optional LocalStack integration.18
- Alicense-qualityCmaintenanceA secure, containerized MCP server that enables AI assistants to manage Terraform infrastructure using integrated Language Server Protocol (LSP) tools. It facilitates safe operations like initialization, validation, and planning while providing context-aware code completion and documentation.10MIT
- Alicense-qualityCmaintenanceAn MCP server that wraps terraform-ls to provide Terraform language intelligence as MCP tools, enabling AI assistants to understand and navigate Terraform codebases.MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Citadel-Cloud-Management/mcp-server-terraform'
If you have feedback or need assistance with the MCP directory API, please join our Discord server