MCP.so
ログイン

Terraform MCP Server

@pipethedev

Terraform MCP Server について

概要はまだありません

基本情報

カテゴリ

クラウドとインフラ

ライセンス

MPL-2.0

ランタイム

go

トランスポート

stdio

公開者

pipethedev

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

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

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Terraform MCP Server?

The Terraform MCP Server is a Model Context Protocol (MCP) server that integrates with Terraform Registry APIs, enabling advanced automation and interaction for Infrastructure as Code (IaC) development. It helps developers discover, explore, and analyze Terraform providers and modules through LLM-driven tooling.

How to use Terraform MCP Server?

Run the server as a Docker container (docker run -i --rm hashicorp/terraform-mcp-server) or install from source using go install. Configure it as an MCP server in VS Code (via User JSON or .vscode/mcp.json) or in Claude Desktop (via mcpServers). The server exposes tools for querying the Terraform Registry.

Key features of Terraform MCP Server

  • Resolves provider documentation IDs by service slug.
  • Fetches full provider documentation in markdown format.
  • Searches Terraform Registry modules with pagination.
  • Retrieves detailed module information including inputs and outputs.
  • Runs as a lightweight Docker container.
  • Built by HashiCorp for official Terraform Registry access.

Use cases of Terraform MCP Server

  • Automating Terraform provider and module discovery.
  • Extracting and analyzing data from the Terraform Registry.
  • Getting detailed information about provider resources and data sources.
  • Exploring and understanding Terraform modules.
  • Integrating LLM-driven IaC workflows with VS Code or Claude Desktop.

FAQ from Terraform MCP Server

Does Terraform MCP Server require Docker?

Yes, Docker is a prerequisite; the simplest deployment uses the official Docker image hashicorp/terraform-mcp-server.

What tools does Terraform MCP Server provide?

It offers four tools across two toolsets: providers (resolveProviderDocID, getProviderDocs) and modules (searchModules, moduleDetails).

Can I run Terraform MCP Server without Docker?

Yes, you can install from source with go install github.com/hashicorp/terraform-mcp-server/cmd/terraform-mcp-server@latest and run it directly.

What data does Terraform MCP Server access?

It queries the public Terraform Registry APIs for provider and module documentation. No local Terraform state or credentials are required.

Is Terraform MCP Server officially supported by HashiCorp?

Yes, it is maintained by HashiCorp under the MPL-2.0 license. Support options include GitHub issues and discussions.

コメント

「クラウドとインフラ」の他のコンテンツ