Skip to main content
Glama

Infracost MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
INFRACOST_ORGYesYour organization slug
INFRACOST_SERVICE_TOKENYesYour Infracost service token (get from dashboard)

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
infracost_breakdown

Generate a cost breakdown for Terraform infrastructure. Analyzes Terraform configuration and provides detailed cost estimates for resources. Requires infracost CLI to be installed.

infracost_diff

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

infracost_output

Combine and format Infracost JSON files. Useful for merging multiple cost estimates or converting formats. Requires infracost CLI to be installed.

infracost_upload

Upload Infracost JSON output to Infracost Cloud for centralized cost tracking and reporting. Requires infracost CLI to be installed.

infracost_comment

Post cost estimate comments to pull requests on GitHub, GitLab, Azure Repos, or Bitbucket. Automatically updates existing comments. Requires infracost CLI to be installed and appropriate platform credentials.

infracost_cloud_list_tagging_policies

List all tagging policies in Infracost Cloud. Requires INFRACOST_SERVICE_TOKEN environment variable.

infracost_cloud_get_tagging_policy

Get a specific tagging policy from Infracost Cloud. Requires INFRACOST_SERVICE_TOKEN environment variable.

infracost_cloud_create_tagging_policy

Create a new tagging policy in Infracost Cloud for tag validation in pull requests. Requires INFRACOST_SERVICE_TOKEN environment variable.

infracost_cloud_update_tagging_policy

Update tagging policies in Infracost Cloud with allowed tag values for validation in pull requests. Requires INFRACOST_SERVICE_TOKEN environment variable.

infracost_cloud_delete_tagging_policy

Delete a tagging policy from Infracost Cloud. Requires INFRACOST_SERVICE_TOKEN environment variable.

infracost_cloud_list_guardrails

List all guardrails in Infracost Cloud. Requires INFRACOST_SERVICE_TOKEN environment variable.

infracost_cloud_get_guardrail

Get a specific guardrail from Infracost Cloud. Requires INFRACOST_SERVICE_TOKEN environment variable.

infracost_cloud_create_guardrail

Create cost guardrails in Infracost Cloud that notify stakeholders or block PRs when cost thresholds are exceeded. Requires INFRACOST_SERVICE_TOKEN environment variable.

infracost_cloud_update_guardrail

Update an existing guardrail in Infracost Cloud. Requires INFRACOST_SERVICE_TOKEN environment variable.

infracost_cloud_delete_guardrail

Delete a guardrail from Infracost Cloud. Requires INFRACOST_SERVICE_TOKEN environment variable.

infracost_cloud_upload_custom_properties

Upload custom property values to Infracost Cloud via CSV for resource classification. Requires INFRACOST_SERVICE_TOKEN environment variable.

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