Logo de AWS FinOps MCP Server

AWS FinOps MCP Server

Communauté
ravikiranvm

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.

Éditeurravikiranvm
Dépôtaws-finops-mcp-server
LanguePython
Forks
55
Étoiles
183
Outils disponibles
0
Type de transportstdio
Catégories
LicenceMIT
Liens
  • Connectez des outils à vos workflows IA

    AWS FinOps MCP Server propose des fonctionnalités MCP utilisables par les clients et agents IA compatibles.

  • 0 outils disponibles

    Parcourez les actions invocables ci-dessous, avec leurs noms et descriptions lorsque le serveur les fournit.

  • Configuration prête à copier

    Utilisez les exemples de configuration pour configurer ce serveur dans votre client MCP préféré.

  • Indicateurs de popularité open source

    183 étoiles et 55 forks sur le dépôt associé.

AWS FinOps MCP Server

PyPI version License: MIT

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-type based cost for all my AWS CLI profiles for the last 90 days. And get the audit report for all profiles for region ap-south-1. Make a finops report with data in minimalistic way and keep it professional."

alt text

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

alt text

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."

alt text

Other sample reports generated by Claude using AWS FinOps MCP Server

Network Usage & Cost Analysis Report

Comprehensive FinOps Report


Table of Contents

  1. What is an MCP Server?
  2. Why Use the AWS FinOps MCP Server?
  3. Key Features
  4. Prerequisites
  5. Installation
  6. Configuration
  7. Usage & Example Prompts
  8. Tool Reference
  9. Cost Considerations
  10. Development & Contributing
  11. License

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.

json
{
    "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)

bash
pipx install aws-finops-mcp-server

If you don't have pipx, install it with:

bash
python -m pip install --user pipx
python -m pipx ensurepath

Option 2: Using uv (Fast Python Package Installer)

uv is a modern Python package installer and resolver that's extremely fast.

bash
# 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-server

Option 3: From Source

bash
# 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:

bash
aws configure --profile your-profile-name

The 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.

  1. Open your Claude for Desktop configuration file. It's located at:

    • macOS / Linux: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the following entry to the mcpServers object. If the file doesn't exist or is empty, you'll need to create the JSON structure.

    json
    {
      "mcpServers": {
        "aws_finops": {
          "command": "aws-finops-mcp-server",
          "args": []
        }
      }
    }
  3. 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., via pipx install aws-finops-mcp-server), ensure the aws-finops-mcp-server command is available in your system's PATH.

To check where it's installed, run:

bash
which aws-finops-mcp-server

If 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 ensurepath and restart your terminal, or
  • Use the full path in your mcpServers config:
json
{
  "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 default profile this month."

Time-Range Query: "get aws cost for my dev profile for the last 14 days"

Filtered & Grouped Query: "What was the cost for my production profile last month, filtered by the tag CostCenter=Project-Alpha, and grouped by INSTANCE_TYPE?"

Multi-Profile Query: "Compare the costs for my staging and production profiles over the last 30 days."

Use Case: FinOps Waste & Savings Audit

Simple Audit: "Run a finops audit on my default profile in us-east-1."

Multi-Region, Multi-Profile Audit: "Check for unused resources in us-west-2 and eu-west-1 for my prod-us and prod-eu profiles."

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.

ParameterTypeDescription
profilesList[str]A list of AWS CLI profile names to use.
all_profilesboolIf True, use all available profiles. Defaults to False.
time_range_daysintNumber of past days to fetch data for (e.g., 7 for last 7 days).
start_date_isostrStart date in YYYY-MM-DD format. Takes precedence over time_range_days.
end_date_isostrEnd date in YYYY-MM-DD format. Must be used with start_date_iso.
tagsList[str]Filter by cost allocation tags. Format: ["Key=Value", "Key2=Value2"].
dimensionsList[str]Filter by dimensions. Format: ["REGION=us-east-1"].
group_bystrThe dimension to group costs by. Default is SERVICE.

run_finops_audit

Runs a financial audit to find unused and potentially costly resources.

ParameterTypeDescription
regionsList[str]A list of AWS regions to run the audit in (e.g., ["us-east-1", "eu-west-1"]).
profilesList[str]A list of AWS CLI profile names to use.
all_profilesboolIf True, use all available profiles. Defaults to False.

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_cost tool, it makes 2 calls to the Cost Explorer API and it costs $0.01.
  • The run_finops_audit tool 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:

  1. Fork and Clone: Fork the repository and clone it to your local machine.
  2. Set Up Environment:
    bash
    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`
  3. Install in Editable Mode:
    bash
    pip install -e .
  4. Make Changes: Add your features or bug fixes.
  5. Submit a Pull Request: Open a PR against the main branch 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

Installation

TypingMind
{
  "mcpServers": {
    "aws-finops-mcp-server": {
      "command": "aws-finops-mcp-server",
      "args": []
    }
  }
}

Utilisez le serveur MCP AWS FinOps MCP Server avec plusieurs modèles IA

TypingMind connecte les outils MCP au niveau de l’espace de travail. Une fois AWS FinOps MCP Server connecté, vous pouvez donc l’utiliser avec différents modèles IA dans TypingMind sans avoir à le configurer séparément pour chaque modèle. Cette intégration MCP s’exécute localement sur votre appareil via le connecteur MCP de TypingMind.

Guide de configuration du connecteur local

Choisissez cette méthode si le serveur MCP doit accéder à des fichiers locaux, à des applications ou à des ressources privées sur votre ordinateur.

1

Ouvrir les paramètres MCP

Dans TypingMind, accédez à « Paramètres », puis à « Paramètres avancés » et à « Model Context Protocol », et choisissez « Configurer connecteur ».

  1. Ouvrez TypingMind dans votre navigateur.
  2. Cliquez sur l’icône Paramètres.
  3. Accédez aux paramètres avancés.
  4. Ouvrez la section Model Context Protocol.
  5. Cliquez sur « Configurer connecteur » et choisissez « Cet appareil ».
Écran de configuration du connecteur MCP de TypingMind avec l’option « Cet appareil » sélectionnée
2

Exécuter la commande du connecteur

Choisissez « Cet appareil », copiez la commande depuis TypingMind et exécutez-la dans Terminal. Laissez le processus en cours d’exécution pendant que vous utilisez MCP.

  1. Copiez la commande de configuration affichée par TypingMind.
  2. Ouvrez Terminal sur macOS ou Windows Terminal sur Windows.
  3. Collez et exécutez la commande.
  4. Autorisez l’installation du paquet si Terminal vous demande de confirmer.
  5. Gardez la fenêtre de Terminal ouverte et le processus en cours d’exécution pendant que vous utilisez les outils MCP.
3

Ajoutez AWS FinOps MCP Server en tant que serveur

Lorsque l’état du connecteur affiche « Prêt », cliquez sur « Éditer serveurs » et collez la configuration du serveur MCP.

  1. Attendez que l’état du connecteur affiche « Prêt ».
  2. Cliquez sur « Éditer serveurs ».
  3. Collez la configuration du serveur MCP AWS FinOps MCP Server.
  4. Enregistrez la liste des serveurs.
  5. Actualisez pour vérifier que le connecteur est toujours prêt.
Paramètres MCP de TypingMind affichant un serveur actif et le bouton « Éditer serveurs »
{
  "mcpServers": {
    "aws-finops-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Utiliser la connexion avec différents modèles

Enregistrez la liste des serveurs, ouvrez « Plugins », activez les outils MCP de AWS FinOps MCP Server, puis sélectionnez un modèle IA compatible dans TypingMind et utilisez les outils dans une discussion ou attribuez-les à un agent IA.

  1. Ouvrez la page Plugins dans TypingMind.
  2. Activez les outils MCP de AWS FinOps MCP Server.
  3. Démarrez une discussion et choisissez le modèle IA que vous souhaitez utiliser.
  4. Utilisez les outils MCP dans le chat ou attribuez-les à un agent IA.
  5. Passez à un autre modèle IA selon vos besoins sans rétablir la connexion MCP.
Discussion TypingMind utilisant des outils MCP activés avec un modèle d’IA sélectionné
Pouvez-vous utiliser AWS FinOps MCP Server pour m’aider dans cette tâche ?
AWS FinOps MCP Server
Bien sûr. J’ai tout lu.
Voici ce que j’ai trouvé avec AWS FinOps MCP Server.

Foire aux questions

À quoi sert le serveur MCP AWS FinOps MCP Server ?

AWS FinOps MCP Server est un serveur MCP qui permet aux applications IA compatibles d’accéder à des outils et à des informations contextuelles externes. Dans TypingMind, il vous suffit d’ajouter ce serveur MCP une seule fois pour rendre ses outils disponibles dans votre espace de travail IA.

Puis-je utiliser le serveur MCP AWS FinOps MCP Server avec plusieurs modèles IA dans TypingMind ?

Oui. TypingMind connecte les outils MCP au niveau de l’espace de travail. Vous pouvez donc utiliser AWS FinOps MCP Server avec différents modèles IA comme Claude, ChatGPT, Gemini ou d’autres modèles configurés dans TypingMind, sans avoir à configurer le serveur MCP séparément pour chaque modèle.

Pourquoi utiliser le connecteur MCP AWS FinOps MCP Server avec TypingMind ?

TypingMind est l’une des meilleures interfaces de chat avec les LLM, car elle réunit plusieurs modèles IA, prompts, plugins, agents IA, clés API et outils MCP dans un seul espace de travail. Une fois AWS FinOps MCP Server connecté, vous pouvez utiliser ses outils MCP avec vos modèles préférés tout en gardant vos discussions bien organisées dans TypingMind.

Comment connecter le serveur MCP AWS FinOps MCP Server à TypingMind ?

AWS FinOps MCP Server fonctionne via le connecteur MCP local de TypingMind. C’est l’option idéale lorsque le serveur MCP doit accéder à des fichiers locaux, des applications de bureau, des outils en ligne de commande ou des ressources privées sur votre ordinateur.

Quels outils le serveur MCP AWS FinOps MCP Server propose-t-il dans TypingMind ?

AWS FinOps MCP Server propose des fonctionnalités MCP que vous pouvez activer depuis la page Plugins de TypingMind et utiliser dans les discussions ou attribuer à des agents IA.

Dois-je partager mes clés API avec TypingMind pour utiliser le serveur MCP AWS FinOps MCP Server ?

Non. TypingMind privilégie le fonctionnement local et vous permet de garder le contrôle de vos fournisseurs de modèles, clés API, prompts et paramètres MCP. Si AWS FinOps MCP Server nécessite une authentification, ajoutez les en-têtes, les paramètres OAuth ou la configuration locale requis pour ce serveur MCP lors de la création de la connexion.

Serveurs MCP similaires

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇