Terraform
CommunityMCP server by hashicorp · updated · ★ 1.6k
Generate more accurate Terraform and automate workflows for HCP Terraform and Terraform Enterprise Terraform is a community project by hashicorp, not verified by a company domain.
Last commit 2 days ago
MPL-2.0: permissive, fine for commercial use
Clear description, published package or server URL, 1,551 stars, original repository
No risky patterns in the files we checked
Install Terraform
Built from the published package, never by AIclaude mcp add terraform -- docker run -i --rm docker.io/hashicorp/terraform-mcp-server:1.0.0Run in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"terraform": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/hashicorp/terraform-mcp-server:1.0.0"
]
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"terraform": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/hashicorp/terraform-mcp-server:1.0.0"
]
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"terraform": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/hashicorp/terraform-mcp-server:1.0.0"
]
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add terraform -- docker run -i --rm docker.io/hashicorp/terraform-mcp-server:1.0.0{
"mcpServers": {
"terraform": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/hashicorp/terraform-mcp-server:1.0.0"
]
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add terraform docker run -i --rm docker.io/hashicorp/terraform-mcp-server:1.0.0Gemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the terraform block.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Terraform
All alternatives →All Azure MCP tools to create a seamless connection between AI agents and Azure services.
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Cloudflare MCP servers
Open-source agent that observes and fixes your application. Query logs, traces, metrics, incidents.
Analyzes deployed EVM bytecode: extracts function selectors and CBOR metadata; infers argument types, state mutability, storage layouts, and control flow.
Azure MCP Server - Model Context Protocol implementation for Azure, for linux on x64
Terraform: common questions
How do I install Terraform?
In Claude Code run claude mcp add terraform -- docker run -i --rm docker.io/hashicorp/terraform-mcp-server:1.0.0. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Terraform the official server?
Terraform is a community project by hashicorp, not verified by a company domain.
Is Terraform free?
The code is published under the MPL-2.0 licence. The service it connects to may have its own pricing.
Is Terraform safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Terraform?
Similar MCP servers: Azure MCP Server, Omnara, mcp, Superlog.
Does Terraform work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
