AWS FinOps MCP Server
Provides tools for analyzing AWS cloud costs, auditing for waste (e.g., unused EC2 instances, unattached EBS volumes, unassociated Elastic IPs), and monitoring budgets using AWS Cost Explorer, EC2, and Budgets APIs.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AWS FinOps MCP ServerShow me my top 5 most expensive AWS services this month."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AWS FinOps MCP Server
An MCP (Model Context Protocol) server that brings powerful AWS FinOps capabilities directly into your AI assistant. Analyze cloud costs, audit for waste, and get budget insights using natural language, all while keeping your credentials secure on your local machine.
Why Use the AWS FinOps MCP Server?
Managing AWS costs can be complex. Finding answers to questions like "What did we spend on S3 last month?" or "Do we have any unused EC2 instances?" often requires navigating the AWS Console or writing scripts.
This server bridges that gap by connecting the powerful, natural language understanding of an LLM directly to your AWS account's financial data. You can ask complex questions and get immediate, actionable insights without ever leaving your chat interface.
Use Cases:
Prompt on Claude Desktop: "Get
usage-typebased cost for all my AWS CLI profiles for the last 90 days. And get theaudit reportfor all profiles for regionap-south-1. Make a finops report with data in minimalistic way and keep it professional."

Prompt on Amazon Q CLI: "Could you use
aws-finopsmcp server and get cost data for each month in the last 6 months forprofile 04and present the data in a tabular format highlighting how the total cost and cost for each service has changed every month?"

Prompt on Claude Desktop: "Generate a comprehensive finops report for management using all the tools available in the AWS FinOps MCP server. Use all the available CLI profiles and use the region ap-south-1 wherever required."

Other sample reports generated by Claude using AWS FinOps MCP Server
Network Usage & Cost Analysis Report
Comprehensive FinOps Report
Table of Contents
Key Features
Detailed Cost Analysis: Query your AWS cost data using tags, time ranges, and service groupings.
Automated FinOps Audit: Instantly find common sources of cloud waste, such as stopped EC2 instances, unattached EBS volumes, and unassociated Elastic IPs etc.
Budget Monitoring: Check the status of your AWS Budgets to see if you are on track, over budget, or forecasted to exceed your limits.
Multi-Profile & Multi-Region: Seamlessly query across any or all of your configured AWS accounts and regions in a single command.
Secure by Design: Your AWS credentials never leave your machine. The server runs locally and uses your existing AWS CLI configuration to make API calls directly to AWS.
Prerequisites
General Requirements
Python 3.10+: Ensure you have a compatible Python version installed.
MCP Client: An application that supports MCP. This guide uses Claude for Desktop as the example.
AWS Requirements & IAM Permissions
AWS CLI: The AWS CLI must be installed on your machine.
AWS Account & Profile(s): You need at least one configured AWS profile.
IAM Permissions: The AWS identity (IAM User or Role) associated with your profile(s) requires specific read-only permissions to function correctly.
Create an IAM policy with the following JSON and attach it to your user or role. These permissions are read-only and grant access only to the necessary services.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowFinOpsMCPServer",
"Effect": "Allow",
"Action": [
"ce:GetCostAndUsage",
"budgets:ViewBudget",
"ec2:DescribeInstances",
"ec2:DescribeVolumes",
"ec2:DescribeAddresses",
"sts:GetCallerIdentity"
],
"Resource": "*"
}
]
}Installation
There are several ways to install the AWS FinOps MCP Server:
Option 1: Using pipx (Recommended)
pipx install aws-finops-mcp-serverIf you don't have pipx, install it with:
python -m pip install --user pipx
python -m pipx ensurepathOption 2: Using uv (Fast Python Package Installer)
uv is a modern Python package installer and resolver that's extremely fast.
# Install uv if you don't have it yet
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create project directory
mkdir aws-finops-mcp-server && cd aws-finops-mcp-server
# Create and activate python virtual environment
uv venv && source .venv/bin/activate
# Install aws-finops-dashboard
uv pip install aws-finops-mcp-serverOption 3: From Source
# Clone the repository
git clone https://github.com/ravikiranvm/aws-finops-mcp-server.git
cd aws-finops-mcp-server
# Create and activate python virtual environment
python -m venv .venv && source .venv/bin/activate
# Install using pip
pip install -e .Configuration
Step 1: AWS CLI Profile Setup
If you haven't already, configure your AWS profiles. For each profile you want to use, run:
aws configure --profile your-profile-nameThe CLI will prompt you for:
AWS Access Key ID: Your credential's access key.AWS Secret Access Key: Your credential's secret key.Default region name: e.g.,us-east-1.Default output format: e.g.,json.
For your default profile, you can omit the --profile flag.
Step 2: MCP Client Setup (Claude for Desktop)
To use this server with Claude for Desktop, you need to tell the application how to run it.
Open your Claude for Desktop configuration file. It's located at:
macOS / Linux:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following entry to the
mcpServersobject. If the file doesn't exist or is empty, you'll need to create the JSON structure.{ "mcpServers": { "aws_finops": { "command": "aws-finops-mcp-server", "args": [] } } }Save the file and completely restart Claude for Desktop.
After restarting, the server will launch in the background, and its tools will be available to Claude.
⚠️ Note:
After installing this tool (e.g., viapipx install aws-finops-mcp-server), ensure theaws-finops-mcp-servercommand is available in your system'sPATH.To check where it's installed, run:
which aws-finops-mcp-serverIf it returns a path like
/Users/yourname/.local/bin/aws-finops-mcp-server, but it's not in your PATH, you have two options:
Run
pipx ensurepathand restart your terminal, orUse the full path in your
mcpServersconfig:{ "mcpServers": { "aws_finops": { "command": "/full/path/to/aws-finops-mcp-server", "args": [] } } }
Usage & Example Prompts
You can now ask questions about your AWS finances in plain English.
Use Case: Cost & Usage Analysis
Basic Query: "Show me my AWS costs for the
defaultprofile this month."
Time-Range Query: "get aws cost for my
devprofile for the last 14 days"
Filtered & Grouped Query: "What was the cost for my
productionprofile last month, filtered by the tagCostCenter=Project-Alpha, and grouped byINSTANCE_TYPE?"
Multi-Profile Query: "Compare the costs for my
stagingandproductionprofiles over the last 30 days."
Use Case: FinOps Waste & Savings Audit
Simple Audit: "Run a finops audit on my
defaultprofile inus-east-1."
Multi-Region, Multi-Profile Audit: "Check for unused resources in
us-west-2andeu-west-1for myprod-usandprod-euprofiles."
Comprehensive Audit for All Profiles: "Run a FinOps audit for all my configured profiles in
us-east-1."
Supported Clients
Claude Desktop
Amazon Q CLI
Any MCP-compatible client supporting tools
View the list of clients that support MCP Servers at https://modelcontextprotocol.io/clients
Tool Reference
get_cost
Fetches cost and usage data from AWS Cost Explorer.
Parameter | Type | Description |
|
| A list of AWS CLI profile names to use. |
|
| If |
|
| Number of past days to fetch data for (e.g., |
|
| Start date in |
|
| End date in |
|
| Filter by cost allocation tags. Format: |
|
| Filter by dimensions. Format: |
|
| The dimension to group costs by. Default is |
run_finops_audit
Runs a financial audit to find unused and potentially costly resources.
Parameter | Type | Description |
|
| A list of AWS regions to run the audit in (e.g., |
|
| A list of AWS CLI profile names to use. |
|
| If |
Output Format: JSON, CSV, PDF, HTML, Markdown (depending on client capabilities)
Cost Considerations
This tool interacts with the AWS Cost Explorer API. AWS charges for these API calls.
Cost: Every time you use
get_costtool, it makes 2 calls to the Cost Explorer API and it costs $0.01.The
run_finops_audittool calls other AWS service APIs (EC2, Budgets) which are generally included in the free tier or have negligible costs at typical usage levels.
Development & Contributing
Contributions are welcome! If you'd like to improve the server or add new features, please follow these steps:
Fork and Clone: Fork the repository and clone it to your local machine.
Set Up Environment:
git clone https://github.com/your-username/aws-finops-mcp-server.git cd aws-finops-mcp-server python -m venv .venv source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`Install in Editable Mode:
pip install -e .Make Changes: Add your features or bug fixes.
Submit a Pull Request: Open a PR against the
mainbranch with a clear description of your changes.
License
This project is licensed under the MIT License. See the LICENSE file for full details.
This is a sister project of https://github.com/ravikiranvm/aws-finops-dashboard
Made with ❤️ by Ravi Kiran
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/ravikiranvm/aws-finops-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server