Infracost MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| INFRACOST_ORG | Yes | Your organization slug | |
| INFRACOST_SERVICE_TOKEN | Yes | Your Infracost service token (get from dashboard) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| infracost_breakdownB | Generate a cost breakdown for Terraform infrastructure. Analyzes Terraform configuration and provides detailed cost estimates for resources. Requires infracost CLI to be installed. |
| infracost_diffA | Show cost differences between two Terraform configurations. Compares baseline and current infrastructure to identify cost changes. Requires infracost CLI to be installed. |
| infracost_outputB | Combine and format Infracost JSON files. Useful for merging multiple cost estimates or converting formats. Requires infracost CLI to be installed. |
| infracost_uploadB | Upload Infracost JSON output to Infracost Cloud for centralized cost tracking and reporting. Requires infracost CLI to be installed. |
| infracost_commentA | 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_policiesA | List all tagging policies in Infracost Cloud. Requires INFRACOST_SERVICE_TOKEN environment variable. |
| infracost_cloud_get_tagging_policyB | Get a specific tagging policy from Infracost Cloud. Requires INFRACOST_SERVICE_TOKEN environment variable. |
| infracost_cloud_create_tagging_policyB | Create a new tagging policy in Infracost Cloud for tag validation in pull requests. Requires INFRACOST_SERVICE_TOKEN environment variable. |
| infracost_cloud_update_tagging_policyC | 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_policyC | Delete a tagging policy from Infracost Cloud. Requires INFRACOST_SERVICE_TOKEN environment variable. |
| infracost_cloud_list_guardrailsB | List all guardrails in Infracost Cloud. Requires INFRACOST_SERVICE_TOKEN environment variable. |
| infracost_cloud_get_guardrailB | Get a specific guardrail from Infracost Cloud. Requires INFRACOST_SERVICE_TOKEN environment variable. |
| infracost_cloud_create_guardrailB | 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_guardrailC | Update an existing guardrail in Infracost Cloud. Requires INFRACOST_SERVICE_TOKEN environment variable. |
| infracost_cloud_delete_guardrailA | Delete a guardrail from Infracost Cloud. Requires INFRACOST_SERVICE_TOKEN environment variable. |
| infracost_cloud_upload_custom_propertiesA | Upload custom property values to Infracost Cloud via CSV for resource classification. Requires INFRACOST_SERVICE_TOKEN environment variable. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Infracost Usage Defaults - Small ($5/month) | Small usage defaults for Infracost. Sets each usage-based cost to approximately $5/month for common configurations. Useful for development and small-scale environments. |
| Infracost Usage Defaults - Medium ($10/month) | Medium usage defaults for Infracost. Sets each usage-based cost to approximately $10/month for common configurations. Useful for staging and medium-scale environments. |
| Infracost Usage Defaults - Large ($20/month) | Large usage defaults for Infracost. Sets each usage-based cost to approximately $20/month for common configurations. Useful for production and large-scale environments. |
| Infracost Usage Example | Example infracost-usage.yml file showing how to customize usage values for specific resources. Can be used as a template for creating custom usage files. |
TDQS
Scored across 16 tools
Each tool has a clearly distinct purpose with no ambiguity. The breakdown, diff, output, upload, and comment tools handle different stages of cost analysis workflows, while the cloud tools are neatly organized into guardrail and tagging policy categories with full CRUD operations. The naming and descriptions make it easy to distinguish between local CLI operations and cloud management functions.
All tools follow a consistent snake_case naming pattern with a clear prefix structure: 'infracost_' for core tools and 'infracost_cloud_' for cloud-specific operations. Within each category, verbs like create, get, list, update, delete are used predictably, making the toolset highly readable and organized.
With 16 tools, the count is slightly high but reasonable for the server's dual purpose of local cost analysis and cloud management. It covers both domains thoroughly without feeling excessive, though it might be borderline for some users. The tools are well-scoped, with each serving a distinct function in the Infracost ecosystem.
The toolset provides complete coverage for the Infracost domain, including local cost breakdowns, comparisons, formatting, uploading, and commenting, plus full CRUD operations for cloud guardrails and tagging policies. There are no obvious gaps; agents can perform all expected workflows from analysis to cloud integration and policy management.