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 starsArchived on GitHubMPL-2.0Ops & ITSoftware development
Short answer: how to install Terraform MCP Server
Terraform MCP Server is an MPL-2.0-licensed, open-source MCP server on GitHub (hashicorp/terraform-mcp-server) with 1,564 stars as of December 2, 2026. Its last push was on December 2, 2026. To install it in Claude Code, run claude mcp add terraform -s user -t stdio -- docker run -i --rm hashicorp/terraform-mcp-server. It works with Claude Code, VS Code, Any MCP client; steps for each are below.
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
- Licence
- MPL-2.0
- Stars
- 1,564 as of December 2, 2026
- Last updated
- December 2, 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
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-serverClaude 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
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-serverSafety: 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.
How to add MCP servers in your app, step by step: Claude Code · Cursor · VS Code · Claude Desktop · Codex · Gemini CLI · Copilot CLI · OpenCode · Cline · Roo Code · Kilo Code · Zed · LM Studio · Antigravity · Windsurf · Hermes Agent · ChatGPT.
FAQ
How do I add Terraform MCP Server to Claude Code?
Run claude mcp add terraform -s user -t stdio -- docker run -i --rm hashicorp/terraform-mcp-server in your terminal.
How do I add Terraform MCP Server to Codex?
Run codex mcp add terraform -- docker run -i --rm hashicorp/terraform-mcp-server in your terminal.
How do I add Terraform MCP Server to Cursor?
Use the Add to Cursor button in the install panel on this page, or paste this entry under mcpServers in ~/.cursor/mcp.json: {"terraform":{"command":"docker","args":["run","-i","--rm","hashicorp/terraform-mcp-server"]}}.
Is Terraform MCP Server free?
The code is open source under the MPL-2.0 licence, so it's free to use. Any account or API key the connected service needs is billed by that service, not by the project; see the README.
Is Terraform MCP Server still maintained?
Its last push to GitHub was on December 2, 2026, and it had 1,564 stars as of December 2, 2026. We re-check GitHub daily.
Prefer a ready-made product?
Commercial agents for the same job, with real prices: all coding agents.
Get new open-source AI tools like Terraform MCP Server in one weekly email
One email a week: new open-source agents, skills, MCP servers and playbooks from the Hub, plus AI agent price changes and new free plans. Free; unsubscribe anytime.
Free, no signup needed: the AI agent pricing cheat sheet, the cheapest listed plan for every job on one printable page.
More from the Hub
-
Skill
Superpowers
A skills library and working method for coding agents: brainstorm, plan, test first, then build.
Software development★ 331k
-
Agent
OpenCode
An open-source coding agent for the terminal and desktop that works with many model providers.
Software development★ 231k
-
MCP server
MarkItDown MCP
Microsoft's official MCP server for MarkItDown: one tool, convert_to_markdown, turns PDFs, Office files and web pages (any http, https, file or data URI) into Markdown your AI assistant can read.
Personal productivity · Research★ 199k
-
MCP server
MCP reference servers
The official set of reference MCP servers (filesystem, fetch, git, memory, time and more) used as starting points.
Software development · Personal productivity★ 92k
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.
Featured in our guide: Best MCP servers for coding.