skillfed

awslabs.cloudwatch-mcp-server

An AWS Labs Model Context Protocol (MCP) server for cloudwatch

awslabs-cloudwatch-mcp-server v0.1.8 195.7K downloads/30d#9,808 on PyPI9,598
Permissive license Apache-2.0 Active released

What it is and what it does

This is an MCP server that bridges AI agents and LLMs to CloudWatch observability data. It wraps CloudWatch APIs into task-oriented tools—alarm troubleshooting, log anomaly detection, metric analysis, and PromQL queries—so agents can diagnose and resolve AWS service issues without custom integrations. The server runs locally alongside your LLM client and requires AWS credentials to access your account's CloudWatch telemetry.

The package depends on boto3 for AWS API calls, pydantic for data validation, and statistical libraries (numpy, statsmodels, pandas) to analyze trends, seasonality, and anomalies in metrics and logs. It also uses loguru for logging and the mcp library to implement the protocol itself. The tool set includes alarm history analysis, log pattern detection, metric metadata retrieval, and both instant and range PromQL queries—designed to support incident response workflows where agents need to correlate metrics, logs, and alarm state to recommend remediation.

Use it for:

  • Automated root cause analysis: agent queries active alarms, retrieves related metrics and logs, analyzes patterns to identify the underlying issue.
  • Anomaly detection in logs: agent scans CloudWatch log groups for error patterns and message anomalies within a time window to surface operational problems.
  • Metric trend analysis: agent retrieves metric data with percentile statistics and math expressions to understand performance trends and seasonality.
  • Cross-region log search: agent runs Logs Insights queries across multiple log groups and regions in a single batch call with automatic chunking and throttling.
  • Alarm configuration recommendations: agent analyzes a metric's statistical properties and suggests alarm thresholds and evaluation periods.
  • PromQL-based metric discovery: agent queries OTLP-ingested and enriched AWS metrics using PromQL label selectors to find relevant time series.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Exposes CloudWatch metrics, logs, alarms, and PromQL queries through a Model Context Protocol (MCP) server that AI agents can use for root cause analysis and troubleshooting recommendations.

Yes—if you are building an AI agent or LLM-based troubleshooting system that needs to query CloudWatch. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. Prerequisites are AWS credentials and Python 3.10+; the server must run on the same host as your LLM client. Not suitable for standalone CLI use or non-agent workflows.

Install

awslabs-cloudwatch-mcp-server on PyPI

pip

pip install awslabs-cloudwatch-mcp-server

uv

uv add awslabs-cloudwatch-mcp-server

poetry

poetry add awslabs-cloudwatch-mcp-server

Installing awslabs.cloudwatch-mcp-server

Before you install

Low friction: pure Python wheel with no compiled dependencies. Active maintenance—released 4 days ago with 9598 repository stars. Requires Python 3.10 or later and AWS credentials configured locally.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install awslabs.cloudwatch-mcp-server

from mcp.server import Server
import boto3

# Initialize and configure the MCP server with CloudWatch client
# Server exposes tools like get_active_alarms(), analyze_log_group(), execute_promql_query()

Requires AWS credentials configured (via aws configure or environment variables) and an AWS account with CloudWatch permissions. Must run on the same host as the LLM client.

Verify before relying

  • Specific AWS IAM permissions required beyond 'CloudWatch access' for all tool operations
  • Performance characteristics when querying large log groups or metric ranges
  • Whether PromQL enrichment requires additional setup beyond the documented `aws cloudwatch start-otel-enrichment` command

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 8 — boto3, loguru, mcp, numpy, pandas, pydantic, requests, statsmodels
Maintenance actively maintained — 4 days since the last release
Last repo commit
First released
Downloads 195,680/month — #9,808 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: awslabs_cloudwatch_mcp_server-0.1.8-py3-none-any.whl

License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13

Tags

cloudwatch mcp serverai agent cloudwatch integrationllm troubleshooting toolscloudwatch log analysisaws observability agentpromql cloudwatch queriesalarm root cause analysis
mcp-serveraws-integrationai-observability

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

awslabs.eks-mcp-server

Connects AI code assistants to Amazon EKS…

permissive · top 15,000 on PyPI

mcp-grafana

An MCP server that exposes Grafana dashboards,…

permissive · top 15,000 on PyPI

awslabs.aws-documentation-mcp-server

Provides an MCP server that exposes AWS…

permissive · top 5,000 on PyPI

aws-embedded-metrics

Generates CloudWatch metrics embedded within…

permissive · top 5,000 on PyPI

awslabs.aws-api-mcp-server

Exposes AWS services to AI assistants through…

permissive · top 15,000 on PyPI

awslabs.aws-pricing-mcp-server

An MCP server that exposes AWS pricing data and…

permissive · top 15,000 on PyPI

awslogs

awslogs is a command-line tool for querying and…

permissive · top 15,000 on PyPI

awslabs.billing-cost-management-mcp-server

Exposes AWS Billing and Cost Management APIs…

permissive · top 15,000 on PyPI

awslabs.redshift-mcp-server

Provides a Model Context Protocol (MCP) server…

permissive · top 15,000 on PyPI

lambda-warmer-py

A decorator that minimizes AWS Lambda cold…

permissive · top 15,000 on PyPI

Further reading