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.
Provisioning worked after two fixes. The MCP hid the real errors, so apply ran through Cursor's Run tool, which suggested the fix.
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 featsResult140 emails went out in six hours, 27 replied, 23 asked for a call, and 11 became paying clients worth about $27,410.
ResultA VS Code extension was built overnight with 91 of 91 tests passing and a PR opened, costing about $0.35.