Connects AI assistants to the Terraform Cloud API to manage workspaces, runs and infrastructure through conversation.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add terraform-cloud --env TFC_TOKEN='<TFC_TOKEN>' -- uv venv~/.codex/config.toml
[mcp_servers.terraform-cloud]
command = "uv"
args = ["venv"]
env = { TFC_TOKEN = "<TFC_TOKEN>" }
# codex mcp add terraform-cloud --env TFC_TOKEN='<TFC_TOKEN>' -- uv venv~/.cursor/mcp.json
{
"mcpServers": {
"terraform-cloud": {
"command": "uv",
"args": [
"venv"
],
"env": {
"TFC_TOKEN": "<TFC_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"terraform-cloud": {
"type": "stdio",
"command": "uv",
"args": [
"venv"
],
"env": {
"TFC_TOKEN": "<TFC_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"terraform-cloud": {
"command": "uv",
"args": [
"venv"
],
"env": {
"TFC_TOKEN": "<TFC_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"terraform-cloud": {
"command": "uv",
"args": [
"venv"
],
"env": {
"TFC_TOKEN": "<TFC_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"terraform-cloud": {
"command": "uv",
"args": [
"venv"
],
"env": {
"TFC_TOKEN": "<TFC_TOKEN>"
}
}
}
}Environment variables
TFC_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.