Terraform MCP Server
by rajeevsirohiio.github.RajeevSirohi/mcp-server-terraformv0.2.1
Terraform operations with two-step confirmation for plan/apply/destroy, plan risk and cost analysis, drift detection, import/taint/refresh and audit logging.
context tax
queued
security
queued
cold start
queued
freshness
Slowing3mo ago
Install Terraform MCP server
Install in Claude Code
claude mcp add terraform -- npx -y @rajsir/mcp-server-terraformInstall in Cursor
{
"mcpServers": {
"terraform": {
"command": "npx",
"args": [
"-y",
"@rajsir/mcp-server-terraform"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"terraform": {
"command": "npx",
"args": [
"-y",
"@rajsir/mcp-server-terraform"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"terraform": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@rajsir/mcp-server-terraform"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"terraform": {
"command": "npx",
"args": [
"-y",
"@rajsir/mcp-server-terraform"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| ALLOW_ONLY_READONLY_TOOLS | — | — | Set to 'true' to expose only validate/plan/output/preflight/drift tools |
| ALLOW_ONLY_NON_DESTRUCTIVE_TOOLS | — | — | Set to 'true' to block apply/destroy/state-mutation tools |
| AUDIT_LOG_PATH | — | — | File path for JSON-lines audit logging of all tool calls (var values redacted) |
Freshness
Slowing — last maintenance signal 3mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-07-07 · 3mo ago · GitHub
Latest release
2026-07-07 · 3mo ago · GitHub · v0.2.1
Package published
no data · npm/PyPI
Registry entry updated
2026-07-07 · 3mo ago · official registry · v0.2.1
FAQ
›How do I install the Terraform MCP server in Claude Code?
Run: claude mcp add terraform -- npx -y @rajsir/mcp-server-terraform. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Terraform require an API key?
No required environment variables are declared in its published metadata.
›Can I use Terraform as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Terraform in the official MCP registry?
Yes, as io.github.RajeevSirohi/mcp-server-terraform.
Alternatives to Terraform
Other cloud platforms MCP servers.