Skip to main content
Glama

Infracost MCP Server

infracost_diff

Compare Terraform configurations to identify cost changes between baseline and current infrastructure, helping track cloud spending differences.

Instructions

Show cost differences between two Terraform configurations. Compares baseline and current infrastructure to identify cost changes. Requires infracost CLI to be installed.

Input Schema

NameRequiredDescriptionDefault
pathYesPath to current Terraform directory or plan JSON file
compareToYesPath to baseline Terraform directory or plan JSON file
formatNoOutput format (default: diff)
outFileNoSave output to a file

Input Schema (JSON Schema)

{ "properties": { "compareTo": { "description": "Path to baseline Terraform directory or plan JSON file", "type": "string" }, "format": { "description": "Output format (default: diff)", "enum": [ "json", "diff" ], "type": "string" }, "outFile": { "description": "Save output to a file", "type": "string" }, "path": { "description": "Path to current Terraform directory or plan JSON file", "type": "string" } }, "required": [ "path", "compareTo" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/phildougherty/infracost_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server