tf-mcp
v0.3.0Multi-cloud MCP server for discovering and generating Terraform code from module catalogs
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_modules List Modules
List available Terraform modules.
| Parameter | Type | Description |
|---|---|---|
cloud | Filter by cloud provider (aws, azure, gcp). Lists all if omitted. |
get_module_details Get Module Details
Get full details for a specific module.
| Parameter | Type | Description |
|---|---|---|
cloud * | string | Cloud provider (aws, azure, gcp). |
module_name * | string | Name of the module (e.g., 'vpc', 'eks-cluster', 'vnet'). |
get_module_dependencies Get Module Dependencies
Show dependency relationships and wiring for a module.
| Parameter | Type | Description |
|---|---|---|
cloud * | string | Cloud provider (aws, azure, gcp). |
module_name * | string | Name of the module (e.g., 'eks-cluster'). |
estimate_costs Estimate Costs
Estimate monthly costs for a set of modules.
| Parameter | Type | Description |
|---|---|---|
cloud * | string | Cloud provider (aws, azure, gcp). |
modules * | array | List of {name, tier} where tier is dev/staging/prod. |
generate_module_code Generate Module Code
Generate Terraform code for a single module.
| Parameter | Type | Description |
|---|---|---|
cloud * | string | Cloud provider (aws, azure, gcp). |
module_name * | string | Name of the module (e.g., 'vpc', 'ecs-cluster'). |
name_prefix * | string | Prefix for resource names (e.g., 'myapp-prod'). |
config | Optional variable overrides. | |
include_scaffold | boolean | Include terraform/provider/variable blocks (default true). |
generate_stack_code Generate Stack Code
Generate a complete multi-module Terraform stack. Auto-resolves transitive dependencies, topologically orders modules, and generates wired module blocks.
| Parameter | Type | Description |
|---|---|---|
cloud * | string | Cloud provider (aws, azure, gcp). |
modules * | array | List of {name, instance_name?, config?} for each module. |
project_name * | string | Project name (used as prefix). |
backend | Optional backend configuration type. | |
environment | string | Environment name (default 'prod'). |
region | Cloud region (defaults to cloud-specific default). |