AWS Cloud Financial Management

AWS Announces Billing and Cost Management MCP Server

Introduction

Unlocking FinOps capabilities for modern cloud teams just got simpler with the introduction of the AWS Billing and Cost Management Model Context Protocol (MCP) server, which makes advanced cost analysis and optimization features directly available to your favorite AI assistant or chatbot. By integrating natural language queries, secure local credentials, and real-time access to your AWS account’s cost and usage data, the MCP server empower you to interactively analyze costs, identify savings opportunities, and perform detailed FinOps audits without navigating complex consoles or writing custom scripts. Whether asking about last month’s top spending services or discovering actionable recommendations for resource optimization, these capabilities streamline cost transparency and operational efficiency, making cloud financial management faster and easier.

How the Billing and Cost Management MCP Server Works

The Billing and Cost Management MCP Server (billing-cost-management-mcp-server) provides a standardized way for AI agents to connect to real-time data sources. It works by creating a bridge between your AI Assistants and AWS Cost Explorer, AWS Cost Optimization Hub, AWS Compute Optimizer, AWS Savings Plans, AWS Budgets, Amazon S3 Storage Lens, and AWS Cost Anomaly Detection. The MCP server will translate your natural language questions, parse your requirements, query the relevant services, process the multi-service output, and provide a consolidated response that is easy-to-understand.

Why Use It?

If you are managing cloud costs and aiming to make smarter financial decisions with less effort, the Billing and Cost Management MCP server is the tool you need to accelerate your productivity. With this tool, you can directly access AWS cost analysis and optimization capabilities through your preferred AI assistant or chatbots. This means you can run complex cost queries simply by asking in natural language, without touching a console or writing custom scripts. Whether you are a cloud financial analyst, a cloud architect, a DevOps engineer, or part of a FinOps team, you will find it easier to monitor spending, identify savings opportunities, and keep your cloud resources running efficiently. You benefit from real-time access to your AWS financial data, improved transparency into where your budget is going, and actionable insights you can put into practice immediately. By streamlining workflows and making deep cost analysis faster and more accessible, the Billing and Cost Management MCP server puts you in control of your cloud financial management.

How to Get Started

Different MCP hosts, such as Amazon Q Developer CLI, Claude Desktop, Kiro, and other MCP compatible tools integrate with billing-cost-management-mcp-server. In this post we focus on Amazon Q Developer CLI example.

Prerequisites

Storage Lens

For MCP tools calls that use storage lens data, the prerequisites below will also be required.

Storage Lens Dashboard with Export Enabled:

  • You must have a Storage Lens dashboard configured with metrics export enabled
  • The export must be configured to write to an S3 bucket in CSV or Parquet format

AWS Permissions:

  • S3 permissions to read the manifest and data files
  • Athena permissions to create databases, tables, and run queries
  • Glue permissions for the Athena catalog

Configure the MCP server in your MCP client configuration. For Amazon Q Developer CLI add the servers to your ~/.aws/amazonq/mcp.json file

For Linux/MacOS Users:

{
  "mcpServers": {
    "awslabs.billing-cost-management-mcp-server": {
      "command": "uvx",
      "args": [
         "awslabs.billing-cost-management-mcp-server@latest"
      ],
      "env": {
        "FASTMCP_LOG_LEVEL": "ERROR",
        "AWS_PROFILE": "your-aws-profile",
        "AWS_REGION": "us-east-1"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

For Windows Users:

{
  "mcpServers": {
    "awslabs.billing-cost-management-mcp-server": {
      "command": "uvx",
      "args": [
         "--from",
         "awslabs.billing-cost-management-mcp-server@latest",
         "awslabs.billing-cost-management-mcp-server.exe"
      ],
      "env": {
        "FASTMCP_LOG_LEVEL": "ERROR",
        "AWS_PROFILE": "your-aws-profile",
        "AWS_REGION": "us-east-1"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

For other Docker Deployment and IDE for Teams, Please refer to AWS MCP Servers GitHub repository Installation guide

Cost Considerations

AWS service APIs incurs charges on a per-request basis. Each API call made by this MCP server will result in charges to your AWS account. For current pricing information review the respective services API pricing.

Examples

What is my current AWS service cost utilization?

Figure 1: MCP response showing current AWS service cost utilization.

Get cost optimization recommendations and show details for the highest savings recommendation.

Figure 2: MCP response showing optimization recommendations with the highest savings

Compare spend across all AWS regions

Figure 3: MCP response showing spend across AWS regions

Perform a cost comparison analysis between June and July 2025 to identify and quantify any significant changes or variations in my AWS spending

Figure 4: MCP response comparing costs between June and July 2025

Evaluate the potential cost savings of migrating my existing AWS workloads to Graviton-based instances

Figure 5: MCP response about Graviton costs

Conduct a thorough analysis to determine the reasons behind the increase in costs during July 2025 and identify the underlying root causes.

Figure 6: MCP response showing cost drivers

Provide the cost per GB-month for S3 storage over the past six months

Figure 7: MCP response showing S3 Cost per GB

I would like you to generate a comprehensive cost analysis for my largest S3 bucket with detailed breakdown of the associated costs

Figure 8: MCP response showing S3 Comprehensive Response

Figure 9: MCP response showing S3 Comprehensive Response

The following examples demonstrate detailed tool utilization within the MCP, showcasing how various integrations generate comprehensive responses. Additionally, the MCP can be leveraged through Claude Desktop to enhance output visualization and provide richer interactive experiences for developers working with AWS services.

Analyze my cost data over the last few months and compile a narrative, 2-paragraph report ready for senior IT and finance leadership. The report should discuss cost trends, drivers of any major changes, cost anomalies, how we’re tracking against budgets, and what opportunities we have to optimize and lower costs.

Figure 10: MCP prompt and response for a narrative showing the detailed tool calls

Figure 11: MCP response additional tool calls

Claude Desktop (using Sonnet 4)

What was my EC2 cost per vCPU hour last month?

Figure 12: MCP response from Claude Desktop showing vCPU hours

Can you double check those vCPU counts using the pricing tool?

Figure 13: MCP response from Claude Desktop including vCPU pricing

Cool. Can you repeat this analysis for the past 6 months please?

Figure 14: MCP response from Claude Desktop analyzing a six month time frame

Awesome. Can you put this in a line chart for me?

Figure 15: MCP response from Claude Desktop showing Cost per vCPU hour chart

Conclusion

The AWS Billing and Cost Management MCP Server marks a major step forward in cloud financial management. It connects powerful AWS cost analysis and optimization tools with natural language AI assistants. This makes complex cost queries simple and speeds up FinOps workflows. It also improves cost transparency so you can easily access real-time insights and actionable recommendations.

Adam Richter

Adam Richter

Adam Richter is a Senior Optimization Solutions Architect with AWS OPTICS, where he focuses on AI cost optimization and FinOps best practices. He has helped shape customer-facing features such as Amazon Q Business and Amazon Q Developer, and frequently shares his expertise as a speaker at AWS re:Invent and other industry events. Adam also represents AWS in the FinOps Foundation AI Working Group, contributing to the broader conversation on financial operations in AI.

Aneesh Varghese

Aneesh Varghese

Aneesh Varghese is a Senior Technical Account Manager at AWS with more than 19 years of Information Technology industry experience. Aneesh supports enterprise customers in cost optimization strategies, Cloud operations, MLOps, providing advocacy and strategic technical guidance to help plan and build solutions using AWS best practices. Outside of work, Aneesh likes to spend time with family, play Basketball and Badminton