terraform-mcp-serverhashicorp/terraform-mcp-server
Best for — Cloud deployment monitoring, K8s Pod orchestration, Serverless execution
OverviewOverview
[Core Features] Project terraform-mcp-server is an open-source server implementing the Model Context Protocol (MCP), primarily built with Go. It provides LLMs with standardized, secure access to external tools and real-time resources. [Use Cases] Cloud deployment monitoring, K8s Pod orchestration, Serverless execution. [Target Professions] Cloud Architect, DevOps, Infrastructure Lead. (Repo: hashicorp/terraform-mcp-server, Stars: 1538, Category: Developer Tools > Cloud & Infrastructure > Container & Cloud Management)
SetupSetup
[Quick Start & Installation]
Recommended execution via package manager:
`npx -y terraform-mcp-server`
[Claude Desktop / Cursor Configuration]
Add the following snippet to your `claude_desktop_config.json` under the `mcpServers` object:
```json
{
"mcpServers": {
"terraform": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TFE_ADDRESS=<<PASTE_TFE_ADDRESS_HERE>>",
"-e",
"TFE_TOKEN=<<PASTE_TFE_TOKEN_HERE>>",
"hashicorp/terraform-mcp-server:1.3.0"
]
}
}
}
```
Restart the client after saving to activate the MCP server.
Client configClient config
Add this under the mcpServers field of your client config file, save it, and restart the client for it to be picked up.
{
"mcpServers": {
"terraform": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TFE_ADDRESS=<<PASTE_TFE_ADDRESS_HERE>>",
"-e",
"TFE_TOKEN=<<PASTE_TFE_TOKEN_HERE>>",
"hashicorp/terraform-mcp-server:1.3.0"
]
}
}
}
RepositoryRepository
| Server ID | 78 |
|---|---|
| Repository | hashicorp/terraform-mcp-server |
| Data source | GitHub |
| Category | Developer Tools / Cloud & Infrastructure / Container & Cloud Management |
| Transport protocol | stdio |
| Primary language | Go |
| License | Mozilla Public License 2.0 |
| Rank | #78 (position within the source ranking) |
| Site-wide popularity rank | #107 (computed live from Stars, across all 588 entries) |
GrowthStar / Fork growth
TimelineTimeline
CommitLatest commit
Committed by Marin2409. Update Category: Refactoring & Structural Improvements. Commit details: [Official SDK Migration] - Tags and Policies tools (#538). This update restructures internal code for better maintainability, without behavior changes.