Read the original ↗Report

Shown·Partial·Cursor·Consulting

Terraform via MCP in Cursor

The author used Cursor with the tfmcp MCP server to run terraform init, plan and apply, provisioning a Postgres database, schema and app role locally.

Resultrc_EGDP4JW3

Provisioning worked after two fixes. The MCP hid the real errors, so apply ran through Cursor's Run tool, which suggested the fix.

ShownPartial · Blog · Apr 17 · Last checked

Overview

How it was set up

Cursor agent mode with the tfmcp MCP server, configured in mcp.json with the Terraform directory and PATH. Terraform code used the cyrilgdn/postgresql provider.

Worth knowing

The MCP did not surface Terraform errors or confirm apply success. The author calls MCP workflows very early and flags security risks of adding MCPs.

A prompt to start from

The source does not show the prompt.

Sources 1

History

Source published
2025-04-17
Added to Agentic Feats
2026-10-13
Pick
No
Markdown copy
/c/terraform-via-mcp-in-cursor.md

More in consulting

3 feats