Claude Skills + MCP Server: 몇 분 안에 일관된 AWS 비용 보고서 만들기

발행: (2025년 12월 13일 오후 06:43 GMT+9)
9 분 소요
원문: Dev.to

Source: Dev.to

Introduction

이 글은 월간 비용 보고 워크플로우를 자동화하고자 하는 FinOps 엔지니어에게 유용합니다. FinOps는 클라우드 비용을 효율적으로 관리하는 데 초점을 맞추지만, 매달 일관된 경영진 보고서를 만드는 일은 시간도 많이 걸리고 오류가 발생하기 쉽습니다. 대부분의 기업은 클라우드 인프라에 막대한 비용을 지출하고 있으며, CTO는 지출 추세를 파악하기 위한 명확하고 표준화된 보고서를 필요로 합니다. 매달 동일한 구조의 전문적인 비용 보고서를 자동으로 생성하는 시스템은 품질이 일정하지 않은 임시 프롬프트를 없애줍니다.

이 가이드를 통해 MCP ServerAWS Cost Explorer를 결합한 Claude Skill을 구축하여 몇 분 안에 결정론적인 경영진용 비용 보고서를 만드는 방법을 배웁니다. 설정이 완료되면 복잡한 프롬프트를 다시 작성할 필요가 없습니다.

What is MCP Server?

MCP (Model Context Protocol) Server는 Claude와 같은 AI 어시스턴트가 외부 도구 및 데이터 소스에 직접 연결할 수 있게 해주는 기술입니다. Claude와 클라우드 인프라 사이의 다리 역할을 합니다.

이 맥락에서 AWS Cost Explorer MCP Server는 Claude가 다음을 수행하도록 합니다:

  • AWS Cost Explorer에 API 호출
  • 실시간으로 실제 지출 데이터 가져오기
  • 사용 패턴 분석
  • 상세 비용 분류 조회

MCP가 없으면 AWS에서 비용 데이터를 수동으로 내보내고, 형식을 맞춘 뒤 Claude에 붙여넣어야 합니다. MCP를 사용하면 Claude가 데이터를 자동으로 접근합니다.

What Are Claude Skills?

Claude Skills는 재사용 가능한 전문가 템플릿입니다. 매번 요구 사항을 설명하는 대신, 모든 지시사항, 선호도 및 가이드라인을 포함한 스킬 파일을 만들면 Claude가 이 “플레이북”을 완벽히 따릅니다.

FinOps 보고서에 적용하면 다음과 같은 이점이 있습니다:

  • 매달 동일한 전문적인 구조
  • 일관된 분석 프레임워크
  • 빠뜨린 요구사항 없음
  • 경영진용 포맷 보장

Prerequisites for Claude Skill Creation

스킬을 만들기 전에 필요한 도구와 권한을 설정합니다:

  • Install Claude Desktopclaude.ai/download에서 다운로드
  • Add AWS Cost Explorer MCP Server – Claude Desktop 설정에서 MCP 서버를 구성 파일에 추가
  • Configure AWS IAM Permissions – Cost Explorer 읽기 권한을 가진 IAM 사용자를 생성하고 자격 증명을 설정

MCP 서버와 IAM 구성에 대한 자세한 설정 방법은 AWS Cost Explorer MCP Server documentation에서 확인할 수 있습니다.

Creating an AWS Cost Report Skill

Step‑by‑step workflow

  1. Claude에게 요청: “월간 AWS 비용 보고서를 생성하는 스킬을 만들고 싶어요.”
  2. Claude가 다음에 대해 명확히 묻습니다:
    • 사용 중인 데이터 소스와 도구
    • 인프라 조직 방식(태그, 환경)
    • 경영진을 위한 기대 보고서 구조
    • 원하는 상세 수준 및 시각화
    • 필요한 분석 및 권고 사항
  3. 답변을 바탕으로 Claude가 자동으로 상세하고 구조화된 지시사항을 담은 스킬 파일을 생성합니다. 파일에는 Claude가 데이터를 가져오고, 분석하고, 시각화를 만들며, 최종 보고서를 포맷하는 방법이 정의됩니다.
  4. 생성된 스킬 파일을 Claude Desktop에 저장합니다.
  5. 스킬을 사용하려면 트리거 문구만 입력하면 됩니다, 예:
Use the AWS Cost CEO Report skill to compare November and December 2025 costs.

Claude는 스킬 파일의 지시를 따라 매번 일관된 전문 보고서를 제공합니다.

Example Claude Skill reference file

# AWS Cost CEO Report Skill - Quick Reference

## 🚀 Quick Start
AWS cost report for the CEO - September vs October 2025

## ✅ Prerequisites Checklist
- [ ] All Cost Explorer MCP servers are started
- [ ] You have cost data for the months you want to compare

## 🎯 Trigger Phrases
| What to Say                         | What It Does                         |
|-------------------------------------|--------------------------------------|
| "AWS cost report for the CEO"      | Generates full report for all accounts |
| "Compare September vs October 2025"| Month‑to‑month comparison             |
| "Production account only"           | Limits to single account             |
| "We implemented VPC endpoints..."   | Includes savings actions analysis    |

## 📊 Report Includes
- Executive summary with key metrics  
- Visual charts and graphs  
- Per‑account breakdowns  
- Cost driver analysis  
- Optimization recommendations  
- PDF export capability  

## 🎨 Report Filters
- Shows only services with > $50/month spend  
- Analyzes services with > 10 % change **or** > $100 change  
- Focuses on top cost drivers  

## 💡 Pro Tips
1. **Monthly Cadence** – Generate reports at month‑end.  
2. **Include Context** – Mention infrastructure changes or savings actions.  
3. **Review Trends** – Look for unexpected cost increases.  
4. **Act on Recommendations** – Follow the optimization section.  
5. **Export PDF** – Use browser print function to save as PDF.  

## 🚨 Common Issues
| Issue                     | Solution                                   |
|---------------------------|--------------------------------------------|
| MCP servers not accessible| Start Docker Desktop and MCP containers    |
| Invalid month format      | Use "September 2025" not "9/2025"          |
| No data returned          | Check dates aren't in the future           |

## 📈 Cost Optimization Areas Analyzed
- EC2 instance rightsizing  
- NAT Gateway optimization (VPC endpoints)  
- Data transfer costs  
- Idle resources  
- Over‑provisioned infrastructure  
- Development environment scheduling  
- Storage lifecycle policies  
- Reserved Instance opportunities  

## 🎓 Example Requests
**Basic Report:**  
`Generate AWS cost report for the CEO comparing September vs October 2025`

**With Savings Context:**  
`AWS cost report for September vs October 2025. Actions taken: Implemented VPC endpoints, migrated to Graviton instances, enabled S3 Intelligent Tiering.`

## 📦 Skill Components
- Main workflow instructions (`SKILL.md`)  
- MCP usage patterns (`references/mcp-usage.md`)  
- Report structure guide (`references/report-structure.md`)  
- HTML template reference (`scripts/generate_report.py`)  

## 🔍 Analysis Depth
- **Level 1:** Service‑level cost comparison  
- **Level 2:** Usage‑type breakdown (instance types, hours)  
- **Level 3:** Root cause identification  
- **Level 4:** Contextual analysis with recommendations  

## 💰 Cost Leak Detection
The skill automatically flags:
- Unexpected spikes > 20 %  
- High data transfer costs  
- NAT Gateway optimization opportunities  
- Idle resources  
- Over‑provisioned instances  
- 24/7 dev/test environments  
- Legacy unused resources  

## 📄 Export to PDF
1. Open artifact in a new window  
2. Press **Ctrl+P** (or **Cmd+P** on Mac)  
3. Select “Save as PDF”  
4. Adjust settings if needed  
5. Save and share!  

Benefits for FinOps Teams

  • 재현성: 매달 동일한 보고서 품질 보장
  • 확장성: 여러 계정·리전의 보고서를 손쉽게 생성
  • 컴플라이언스: 표준화된 포맷으로 감사 요구 충족
  • 온보딩: 신규 팀원이 별도 교육 없이 보고서 생성 가능
  • 진화: 스킬을 한 번 업데이트하면 향후 모든 보고서에 적용

Conclusion

MCP Server와 Claude Skills를 결합하면 FinOps 보고가 하루 걸리던 수작업에서 몇 분 안에 자동화된 워크플로우로 바뀝니다. AI 기반 빠른 분석과 경영진이 요구하는 일관된 전문성을 동시에 얻을 수 있습니다.

Back to Blog

관련 글

더 보기 »

Story CLI 구축: 30분 IP 등록에서 5분 이하까지

이 프로젝트를 시작하게 된 문제는 다음과 같습니다. Web3 개발자 도구에 대해 저를 불편하게 만든 점은 이 도구들이 종종 경험 많은 블록체인 개발자들에 의해 만들어진다는 것입니다.