Skip to content

Commit 616dc23

Browse files
committed
Add Terraform MCP server
Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com> Claude-Session: https://claude.ai/code/session_01S58U7phvDgphx6ZTXuWMJQ
1 parent 14015a9 commit 616dc23

1 file changed

Lines changed: 94 additions & 0 deletions

File tree

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"$schema": "../schemas/server-definition.schema.json",
3+
"id": "com.terraform-mcp-docker",
4+
"name": "Terraform (Docker)",
5+
"alias": "terraform",
6+
"description": "Connect to the HashiCorp Terraform ecosystem via Docker. Search the public Terraform Registry for providers, modules, and policies, read documentation, and (with an optional token) interact with HCP Terraform / Terraform Enterprise workspaces and runs in an isolated container.",
7+
"logo": "https://avatars.githubusercontent.com/u/761456?v=4",
8+
"schema_version": "2.1",
9+
"categories": [
10+
"developer-tools",
11+
"cloud"
12+
],
13+
"tags": [
14+
"terraform",
15+
"hashicorp",
16+
"infrastructure-as-code",
17+
"iac",
18+
"registry",
19+
"hcp-terraform",
20+
"terraform-enterprise",
21+
"devops",
22+
"docker"
23+
],
24+
"transport": {
25+
"type": "stdio",
26+
"command": "docker",
27+
"args": [
28+
"run",
29+
"-i",
30+
"--rm",
31+
"-e",
32+
"TFE_TOKEN",
33+
"-e",
34+
"TFE_ADDRESS",
35+
"hashicorp/terraform-mcp-server:latest"
36+
],
37+
"env": {
38+
"TFE_TOKEN": "${input:TFE_TOKEN}",
39+
"TFE_ADDRESS": "${input:TFE_ADDRESS}"
40+
},
41+
"metadata": {
42+
"inputs": [
43+
{
44+
"id": "TFE_TOKEN",
45+
"label": "HCP Terraform / Terraform Enterprise API Token",
46+
"description": "Optional API token for HCP Terraform or Terraform Enterprise. Leave empty to use only the public Terraform Registry. Provide a token to access private registries, workspaces, and runs.",
47+
"type": "text",
48+
"required": false,
49+
"secret": true,
50+
"placeholder": "<your-hcp-terraform-or-tfe-api-token>",
51+
"obtain": {
52+
"url": "https://app.terraform.io/app/settings/tokens",
53+
"instructions": "1. Sign in to HCP Terraform (or your Terraform Enterprise instance)\n2. Open User Settings > Tokens (or a Team/Organization token)\n3. Create an API token\n4. Copy the token value",
54+
"button_label": "Create Token"
55+
}
56+
},
57+
{
58+
"id": "TFE_ADDRESS",
59+
"label": "HCP Terraform / TFE Address",
60+
"description": "Optional base URL for HCP Terraform or a self-hosted Terraform Enterprise instance. Defaults to https://app.terraform.io when left empty.",
61+
"type": "url",
62+
"required": false,
63+
"secret": false,
64+
"placeholder": "https://app.terraform.io",
65+
"default": "https://app.terraform.io"
66+
}
67+
]
68+
}
69+
},
70+
"auth": {
71+
"type": "optional_api_key",
72+
"instructions": "No token is required to search the public Terraform Registry. Provide a TFE_TOKEN (and optionally TFE_ADDRESS) to access HCP Terraform / Terraform Enterprise private registries, workspaces, and runs."
73+
},
74+
"contributor": {
75+
"name": "HashiCorp",
76+
"github": "hashicorp",
77+
"url": "https://www.hashicorp.com"
78+
},
79+
"links": {
80+
"repository": "https://github.com/hashicorp/terraform-mcp-server",
81+
"homepage": "https://www.hashicorp.com/products/terraform",
82+
"documentation": "https://developer.hashicorp.com/terraform/docs/tools/mcp-server"
83+
},
84+
"platforms": [
85+
"all"
86+
],
87+
"capabilities": {
88+
"tools": true,
89+
"resources": true,
90+
"prompts": false,
91+
"read_only_mode": false
92+
},
93+
"changelog_url": "https://github.com/hashicorp/terraform-mcp-server/releases"
94+
}

0 commit comments

Comments
 (0)