AITeamGuide

AITeamGuide Hub · MCP server

Terraform MCP Server

HashiCorp's MCP server that gives assistants current Terraform provider and module docs for writing infrastructure code.

MCP server★ 1.6k starsMPL-2.0Ops & ITSoftware development

View on GitHub

Key facts

Type
MCP server
Jobs it fits
Write and review infrastructure code
Fields
Ops & IT, Software development
Works with
Claude Code, VS Code, Any MCP client
GitHub
hashicorp/terraform-mcp-server
Licence
MPL-2.0
Stars
1,551 as of October 21, 2026
Last updated
October 21, 2026 (last push to GitHub)
Author
@hashicorp
Submitted by
@aiteamguide
Added to the Hub
October 21, 2026

Install / Use it

MPL-2.0Local MCP server

Download ZIP View source

Cursor

Add to Cursor

Or paste into ~/.cursor/mcp.json

{
  "mcpServers": {
    "terraform": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "hashicorp/terraform-mcp-server"
      ]
    }
  }
}

Claude Code

Command from the README

claude mcp add terraform -s user -t stdio -- docker run -i --rm hashicorp/terraform-mcp-server

Claude Desktop

Add to claude_desktop_config.json (Settings → Developer → Edit Config), then restart Claude

{
  "mcpServers": {
    "terraform": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "hashicorp/terraform-mcp-server"
      ]
    }
  }
}

VS Code

Add to VS Code

Or from the command line

code --add-mcp '{"name":"terraform","type":"stdio","command":"docker","args":["run","-i","--rm","hashicorp/terraform-mcp-server"]}'

Codex

Command from the README

codex mcp add terraform -- docker run -i --rm hashicorp/terraform-mcp-server

Safety: Runs code from a third-party repo. Review the source and the permissions before installing.

Commands and configs are taken from the project's README and re-wrapped in each app's documented format. If they differ, the README wins.

Prefer a ready-made product?

Commercial agents for the same job, with real prices: all coding agents.

More from the Hub

Summary written by AITeamGuide in our own words. GitHub numbers come from the public GitHub API and refresh daily. Maintainer and want a correction or removal? Tell us. Got something similar? Submit it to the Hub.