https://github.com/friendlygeorge/mcp-server-terraform
MCP server for Terraform infrastructure-as-code operations. Plan, apply, destroy, and inspect infrastructure state from AI assistants.
https://github.com/friendlygeorge/mcp-server-terraform
ai-agents ci-cd cloud devops gitops hashicorp hcl iac infrastructure-as-code kubernetes mcp mcp-server terraform terraform-cli typescript
Last synced: 2 days ago
JSON representation
MCP server for Terraform infrastructure-as-code operations. Plan, apply, destroy, and inspect infrastructure state from AI assistants.
- Host: GitHub
- URL: https://github.com/friendlygeorge/mcp-server-terraform
- Owner: friendlygeorge
- Created: 2026-06-25T13:01:40.000Z (19 days ago)
- Default Branch: main
- Last Pushed: 2026-06-25T13:02:23.000Z (19 days ago)
- Last Synced: 2026-06-25T15:15:20.520Z (19 days ago)
- Topics: ai-agents, ci-cd, cloud, devops, gitops, hashicorp, hcl, iac, infrastructure-as-code, kubernetes, mcp, mcp-server, terraform, terraform-cli, typescript
- Language: TypeScript
- Size: 24.6 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mcp-server-terraform
MCP server for Terraform infrastructure-as-code operations. Lets AI assistants manage Terraform workflows — plan, apply, destroy, and inspect infrastructure state.
## Tools
| Tool | Description |
|------|-------------|
| `terraform_plan` | Preview changes without applying |
| `terraform_apply` | Apply infrastructure changes |
| `terraform_destroy` | Destroy managed infrastructure |
| `terraform_init` | Initialize working directory, download providers |
| `terraform_validate` | Validate configuration syntax |
| `terraform_state_list` | List resources in state |
| `terraform_state_show` | Show resource attributes from state |
| `terraform_fmt` | Format HCL files to canonical style |
| `terraform_output` | Show output values from state |
| `terraform_import` | Import existing resources into state |
## Installation
```bash
npm install -g mcp-server-terraform
```
## Usage
Add to your MCP client configuration:
```json
{
"mcpServers": {
"terraform": {
"command": "mcp-server-terraform"
}
}
}
```
## Requirements
- Terraform CLI installed and in PATH
- Working directory with `.tf` files for the target infrastructure
## License
MIT