Production-grade Azure FinOps MCP Server for Enterprise Cost Optimization
π° Proven Results: Organizations using Azure FinOps Elite achieve an average 20% reduction in cloud costs within the first 90 days.
If you find Azure FinOps Elite valuable, please star this repository to help others discover it!
Azure FinOps Elite is free and open-source. If it saves you money or time, please consider:
- β Starring this repository
- π° Sponsoring via GitHub Sponsors
- π Reporting bugs and suggesting features
- π Contributing code or documentation
Your support helps maintain and improve this project!
# Clone the repository
git clone https://github.com/YOUR_USERNAME/azure-finops-elite.git
cd azure-finops-elite
# Install dependencies
pip install -r requirements.txt
# Configure credentials
cp .env.example .env
# Edit .env with your Azure credentials# Start the web dashboard
python web_dashboard.py
# Open browser to http://localhost:5000# Start the MCP server
python server.pyDetect daily spend spikes across multiple subscriptions by comparing actual costs vs. 7-day historical averages.
Audit delegated sub-tenants to identify unattached disks and idle public IPs with immediate ROI.
Validate ARM/Bicep templates against Azure Price Sheet API before execution.
Azure Advisor integration with custom risk scoring based on NIA Qatar and ISO 27001 frameworks.
Generate Markdown-formatted FinOps ROI reports for non-technical stakeholders.
Automatically flag cost-saving recommendations that may impact ISO 27001 or NIA Qatar controls.
Generate ready-to-use Azure Custom Role JSON with least-privilege read-only access.
Beautiful GUI for all FinOps tools:
- Configuration Management - Set Azure credentials via web interface
- Real-time Analysis - Run tools and see results instantly
- Report Generation - Create and download executive summaries
- Report History - Browse and manage all generated reports
- β Zero Trust Architecture
- β Certificate-based Authentication
- β ISO 27001 Compliant
- β NIA Qatar Framework Support
- β Least-Privilege RBAC
- β Comprehensive Audit Logging
- Quick Start - Get started in 5 minutes
- Windows Testing Guide - Complete Windows setup
- Web Dashboard Guide - Using the GUI
- Security Guide - Authentication & compliance
- Customer Experience - Advanced features
- Agent Guide - FinOps automation workflows
- Monitor cloud costs across multiple subscriptions
- Detect anomalies before they impact budgets
- Ensure compliance with ISO 27001 and regional frameworks
- Generate executive reports for stakeholders
- Audit customer tenants for cost optimization
- Demonstrate value through savings reports
- Automate resource cleanup recommendations
- Maintain compliance across customer environments
- Validate infrastructure costs in CI/CD pipelines
- Prevent budget overruns before deployment
- Integrate cost governance into workflows
- Track and optimize resource usage
azure-finops-elite/
βββ server.py # FastMCP server (for AI assistants)
βββ web_dashboard.py # Flask web dashboard (for humans)
βββ auth.py # Certificate + Managed Identity auth
βββ azure_clients.py # Azure SDK client factory
βββ tools/
β βββ anomaly_detector.py # Spend spike detection
β βββ csp_auditor.py # Multi-tenant resource audit
β βββ budget_validator.py # ARM/Bicep cost validation
β βββ governance_advisor.py # Risk-scored recommendations
β βββ executive_summary.py # Executive ROI reports
β βββ compliance_overlay.py # Compliance impact checker
βββ utils/
β βββ error_handling.py # Retry logic & rate limiting
β βββ logging_config.py # Structured logging
β βββ pricing.py # Cost estimation
βββ templates/
βββ dashboard.html # Web dashboard UI
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
# Install dev dependencies
pip install -r requirements.txt
pip install pytest black isort mypy
# Run tests
pytest
# Format code
black .
isort .Track your FinOps success:
- Cost Optimization: Anomalies detected, excess spend prevented
- Resource Efficiency: Unattached resources identified and removed
- Compliance: Risk score improvements, control coverage
- ROI: Total savings vs. tool investment
"Azure FinOps Elite helped us identify $50K/month in wasteful spending within the first week. The executive summaries made it easy to get buy-in from leadership." β Enterprise Customer
"As a CSP, this tool helps us demonstrate value to our customers. The compliance overlay ensures we never compromise security for cost savings." β Cloud Service Provider
This project is licensed under the MIT License - see the LICENSE file for details.
- π Documentation: Check the docs
- π Bug Reports: Open an issue
- π‘ Feature Requests: Open an issue
- π° Sponsorship: GitHub Sponsors
Built with:
- FastMCP - Model Context Protocol framework
- Azure SDK for Python - Azure API integration
- Flask - Web dashboard framework
Made with β€οΈ for the FinOps community