Back to MCP Servers
🔌

hashicorp/terraform-mcp-server

MPL-2.0API key required

🎖️🏎️☁️ - The official Terraform MCP Server seamlessly integrates with the Terraform ecosystem, enabling provider discovery, module analysis, and direct Registry API integration for advanced Infrastr

GoAPIs

Install

npx -y hashicorp-terraform-mcp-server

Required environment variables

MCP_TLS_KEYSet in your MCP config
PASTE_TFE_TOKENSet in your MCP config

claude_desktop_config.json

claude_desktop_config.json
{
  "mcpServers": {
    "hashicorp-terraform-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "hashicorp-terraform-mcp-server"
      ],
      "env": {
        "MCP_TLS_KEY": "<YOUR_MCP_TLS_KEY>",
        "PASTE_TFE_TOKEN": "<YOUR_PASTE_TFE_TOKEN>"
      }
    }
  }
}

Add this to your Claude Desktop config file. Find it at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS.

What this does

hashicorp/terraform-mcp-server exposes a set of tools to Claude over the Model Context Protocol. After you add it to claude_desktop_config.json (snippet above) and restart Claude Desktop, those tools become callable inside any conversation. That makes it useful when you want Claude to reach into external HTTP APIs without copy-pasting context every turn.

Requirements

This server needs the following environment variables to be set before it can run:

MCP_TLS_KEY
PASTE_TFE_TOKEN

Set these via the env object in your MCP config (see claude_desktop_config.json snippet above).

Common use cases

  • Call REST or GraphQL endpoints against an authenticated upstream service
  • Translate between Claude's natural-language requests and a structured API
  • Compose several API calls in a single Claude turn (read user → fetch order → annotate)