EBS CloudWatch Metrics MCP
Click on "Deploy 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., "@EBS CloudWatch Metrics MCP Calculate IOPS and throughput for vol-1234567890abcdef0 over the last hour"
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.
EBS CloudWatch Metrics MCP
AWS EBS CloudWatch 지표 계산 MCP 서버입니다. Kiro에서 EBS 볼륨의 성능 지표를 조회하고 분석할 수 있습니다.
기능
IOPS 계산: 읽기/쓰기 IOPS 평균, 최대, 최소 값 계산
처리량 계산: 읽기/쓰기 처리량 (MB/s) 계산
스냅샷 조회: 스냅샷 크기 및 목록 조회
CloudWatch 지표 조회: 모든 EBS CloudWatch 지표 직접 조회
고급 지표 계산: I/O 사용률, 지연 시간, 버스팅 IOPS/처리량 등
설치
uvx 사용 (권장)
uvx ebs-cloudwatch-metrics-mcppip 사용
pip install ebs-cloudwatch-metrics-mcp소스에서 설치
git clone https://github.com/your-repo/ebs-cloudwatch-metrics-mcp.git
cd ebs-cloudwatch-metrics-mcp
pip install -e .Kiro MCP 설정
.kiro/settings/mcp.json 파일에 다음 설정을 추가하세요:
{
"mcpServers": {
"ebs-cloudwatch-metrics": {
"command": "uvx",
"args": ["ebs-cloudwatch-metrics-mcp"],
"env": {
"AWS_PROFILE": "default",
"AWS_REGION": "ap-northeast-2"
}
}
}
}환경 변수
변수 | 설명 | 기본값 |
| AWS 프로파일 이름 |
|
| AWS 리전 | 프로파일 설정 |
| AWS 액세스 키 ID | - |
| AWS 시크릿 액세스 키 | - |
사용 가능한 도구
1. calculate_iops
EBS 볼륨의 IOPS를 계산합니다.
파라미터:
volume_id(필수): EBS 볼륨 IDstart_time(필수): 조회 시작 시간 (ISO 8601)end_time(필수): 조회 종료 시간 (ISO 8601)period: 지표 수집 간격 (초, 기본값: 300)region: AWS 리전
예시:
calculate_iops(
volume_id="vol-1234567890abcdef0",
start_time="2024-01-01T00:00:00Z",
end_time="2024-01-02T00:00:00Z"
)2. calculate_throughput
EBS 볼륨의 처리량을 계산합니다.
파라미터:
volume_id(필수): EBS 볼륨 IDstart_time(필수): 조회 시작 시간 (ISO 8601)end_time(필수): 조회 종료 시간 (ISO 8601)period: 지표 수집 간격 (초, 기본값: 300)region: AWS 리전
3. get_snapshot_size
EBS 스냅샷의 크기를 조회합니다.
파라미터:
snapshot_id(필수): EBS 스냅샷 IDregion: AWS 리전
4. list_volume_snapshots
EBS 볼륨의 모든 스냅샷 목록을 조회합니다.
파라미터:
volume_id(필수): EBS 볼륨 IDmax_results: 최대 결과 수 (기본값: 100)region: AWS 리전
5. get_ebs_metric
특정 EBS CloudWatch 지표를 조회합니다.
파라미터:
volume_id(필수): EBS 볼륨 IDmetric_name(필수): CloudWatch 지표 이름start_time(필수): 조회 시작 시간 (ISO 8601)end_time(필수): 조회 종료 시간 (ISO 8601)period: 지표 수집 간격 (초, 기본값: 300)statistics: 통계 유형 배열 (기본값: ["Average"])region: AWS 리전
지원되는 지표:
VolumeReadOps- 읽기 작업 수VolumeWriteOps- 쓰기 작업 수VolumeReadBytes- 읽기 바이트 수VolumeWriteBytes- 쓰기 바이트 수VolumeTotalReadTime- 총 읽기 시간VolumeTotalWriteTime- 총 쓰기 시간VolumeIdleTime- 유휴 시간VolumeQueueLength- 큐 길이VolumeThroughputPercentage- 처리량 백분율VolumeConsumedReadWriteOps- 소비된 읽기/쓰기 작업BurstBalance- 버스트 잔액 (gp2)
6. list_ebs_metrics
사용 가능한 EBS CloudWatch 지표 목록을 반환합니다.
파라미터: 없음
7. get_advanced_metrics
EBS 볼륨의 고급 성능 지표를 계산합니다.
파라미터:
volume_id(필수): EBS 볼륨 IDstart_time(필수): 조회 시작 시간 (ISO 8601)end_time(필수): 조회 종료 시간 (ISO 8601)period: 지표 수집 간격 (초, 기본값: 300)region: AWS 리전
반환되는 고급 지표:
io_use_percent- I/O 사용률 (%)avg_read_latency_ms- 평균 읽기 지연 시간 (ms)avg_write_latency_ms- 평균 쓰기 지연 시간 (ms)read_io_size_kib- 읽기 I/O 크기 (KiB)write_io_size_kib- 쓰기 I/O 크기 (KiB)avg_read_iops- 평균 읽기 IOPSavg_write_iops- 평균 쓰기 IOPSavg_total_iops- 평균 총 IOPSavg_read_throughput_mib_s- 평균 읽기 처리량 (MiB/s)avg_write_throughput_mib_s- 평균 쓰기 처리량 (MiB/s)avg_total_throughput_mib_s- 평균 총 처리량 (MiB/s)bursting_read_iops- 버스팅 읽기 IOPSbursting_write_iops- 버스팅 쓰기 IOPSbursting_total_iops- 버스팅 총 IOPSbursting_read_throughput_mib_s- 버스팅 읽기 처리량 (MiB/s)bursting_write_throughput_mib_s- 버스팅 쓰기 처리량 (MiB/s)bursting_total_throughput_mib_s- 버스팅 총 처리량 (MiB/s)burst_balance- BurstBalance (gp2 볼륨만)
필요한 IAM 권한
MCP 서버를 사용하려면 다음 IAM 권한이 필요합니다:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"cloudwatch:GetMetricStatistics",
"cloudwatch:ListMetrics"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"ec2:DescribeSnapshots",
"ec2:DescribeVolumes"
],
"Resource": "*"
}
]
}최소 권한 정책
특정 볼륨만 조회하려면 리소스를 제한할 수 있습니다:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"cloudwatch:GetMetricStatistics"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"cloudwatch:namespace": "AWS/EBS"
}
}
},
{
"Effect": "Allow",
"Action": [
"ec2:DescribeSnapshots"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"ec2:VolumeId": "vol-1234567890abcdef0"
}
}
}
]
}라이선스
MIT License
Available Tools
7 toolscalculate_iopsA
EBS 볼륨의 IOPS(초당 I/O 작업 수)를 계산합니다.
VolumeReadOps, VolumeWriteOps 지표를 조회하여 평균, 최대, 최소 IOPS를 반환합니다.
Args:
volume_id: EBS 볼륨 ID (예: vol-1234567890abcdef0)
start_time: 조회 시작 시간 (ISO 8601 형식, 예: 2024-01-01T00:00:00Z)
end_time: 조회 종료 시간 (ISO 8601 형식, 예: 2024-01-02T00:00:00Z)
period: 지표 수집 간격 (초 단위, 기본값: 300)
region: AWS 리전 (선택적, 기본값: 환경 변수에서 로드)
Inputs: volume_id (required), start_time (required), end_time (required), period, +1 more. Returns: result
calculate_throughputA
EBS 볼륨의 처리량(Throughput)을 계산합니다.
VolumeReadBytes, VolumeWriteBytes 지표를 조회하여 MB/s 단위로 반환합니다.
Args:
volume_id: EBS 볼륨 ID (예: vol-1234567890abcdef0)
start_time: 조회 시작 시간 (ISO 8601 형식)
end_time: 조회 종료 시간 (ISO 8601 형식)
period: 지표 수집 간격 (초 단위, 기본값: 300)
region: AWS 리전 (선택적)
Inputs: volume_id (required), start_time (required), end_time (required), period, +1 more. Returns: result
get_advanced_metricsB
EBS 볼륨의 고급 성능 지표를 계산합니다.
I/O 사용률, 지연 시간, I/O 크기, 평균/버스팅 IOPS 및 처리량 등을 반환합니다.
Args:
volume_id: EBS 볼륨 ID
start_time: 조회 시작 시간 (ISO 8601 형식)
end_time: 조회 종료 시간 (ISO 8601 형식)
period: 지표 수집 간격 (초 단위, 기본값: 300)
region: AWS 리전 (선택적)
Inputs: volume_id (required), start_time (required), end_time (required), period, +1 more. Returns: result
get_ebs_metricA
특정 EBS CloudWatch 지표를 조회합니다.
지표 이름, 볼륨 ID, 시간 범위를 지정하여 통계 데이터를 반환합니다.
Args:
volume_id: EBS 볼륨 ID
metric_name: CloudWatch 지표 이름. 지원되는 지표: VolumeReadOps, VolumeWriteOps,
VolumeReadBytes, VolumeWriteBytes, VolumeTotalReadTime, VolumeTotalWriteTime,
VolumeIdleTime, VolumeQueueLength, VolumeThroughputPercentage,
VolumeConsumedReadWriteOps, BurstBalance
start_time: 조회 시작 시간 (ISO 8601 형식)
end_time: 조회 종료 시간 (ISO 8601 형식)
period: 지표 수집 간격 (초 단위, 기본값: 300)
statistics: 조회할 통계 유형 (Average, Sum, Minimum, Maximum, SampleCount)
region: AWS 리전 (선택적)
Inputs: volume_id (required), metric_name (required), start_time (required), end_time (required), +3 more. Returns: result
get_snapshot_sizeB
EBS 스냅샷의 크기를 조회합니다.
스냅샷 ID, 볼륨 ID, 크기(GB), 상태 등의 정보를 반환합니다.
Args:
snapshot_id: EBS 스냅샷 ID (예: snap-1234567890abcdef0)
region: AWS 리전 (선택적)
Inputs: snapshot_id (required), region. Returns: result
list_ebs_metricsB
사용 가능한 EBS CloudWatch 지표 목록을 반환합니다.
Inputs: no named parameters. Returns: result
list_volume_snapshotsB
EBS 볼륨의 모든 스냅샷 목록을 조회합니다.
각 스냅샷의 ID, 크기, 상태, 생성 시간 등을 반환합니다.
Args:
volume_id: EBS 볼륨 ID (예: vol-1234567890abcdef0)
max_results: 최대 결과 수 (기본값: 100)
region: AWS 리전 (선택적)
Inputs: volume_id (required), max_results, region. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools have distinct purposes focused on different aspects of EBS monitoring (IOPS, throughput, advanced metrics, specific metrics, snapshot size, metric listing, snapshot listing). However, there is some overlap between calculate_iops, calculate_throughput, and get_advanced_metrics, as advanced metrics likely includes IOPS and throughput calculations, which could cause confusion about which tool to use for comprehensive analysis.
All tool names follow a consistent verb_noun pattern (e.g., calculate_iops, get_ebs_metric, list_volume_snapshots). The naming is uniform and predictable, making it easy for an agent to understand the action and target resource for each tool.
With 7 tools, the server is well-scoped for EBS CloudWatch metrics monitoring. This count covers key operations like calculations, metric retrieval, snapshot management, and listing, without being overly complex or too sparse for the domain.
The tool set provides good coverage for EBS metrics and snapshots, including calculations, specific metric queries, and listing functions. A minor gap is the lack of tools for creating, updating, or deleting resources (e.g., snapshots or volumes), but this is reasonable if the server's purpose is focused on monitoring rather than management.
Related MCP Connectors
Lowers your AWS bill by helping you clean up and optimize your setup
Read-only Amazon SES observability: search events, inspect bounces, pull delivery stats.
Read-only access to your CloudFix AWS cost-saving recommendations, reports and EC2 pricing.
Read-only server insight: why a Linux server or K8s cluster is slow, failing or changed.