tf-mcp

v0.3.0
tf-mcp Checked 18 hours ago Published 9 months ago

Multi-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.

ParameterTypeDescription
cloudFilter by cloud provider (aws, azure, gcp). Lists all if omitted.

get_module_details Get Module Details

Get full details for a specific module.

ParameterTypeDescription
cloud *stringCloud provider (aws, azure, gcp).
module_name *stringName of the module (e.g., 'vpc', 'eks-cluster', 'vnet').

get_module_dependencies Get Module Dependencies

Show dependency relationships and wiring for a module.

ParameterTypeDescription
cloud *stringCloud provider (aws, azure, gcp).
module_name *stringName of the module (e.g., 'eks-cluster').

estimate_costs Estimate Costs

Estimate monthly costs for a set of modules.

ParameterTypeDescription
cloud *stringCloud provider (aws, azure, gcp).
modules *arrayList of {name, tier} where tier is dev/staging/prod.

generate_module_code Generate Module Code

Generate Terraform code for a single module.

ParameterTypeDescription
cloud *stringCloud provider (aws, azure, gcp).
module_name *stringName of the module (e.g., 'vpc', 'ecs-cluster').
name_prefix *stringPrefix for resource names (e.g., 'myapp-prod').
configOptional variable overrides.
include_scaffoldbooleanInclude 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.

ParameterTypeDescription
cloud *stringCloud provider (aws, azure, gcp).
modules *arrayList of {name, instance_name?, config?} for each module.
project_name *stringProject name (used as prefix).
backendOptional backend configuration type.
environmentstringEnvironment name (default 'prod').
regionCloud region (defaults to cloud-specific default).