Cloudwatch Explorer
FreeNot checkedEnables AI agents to query AWS CloudWatch metrics, alarms, and logs read-only via MCP, providing rapid health snapshots and triage without console navigation.
About
Enables AI agents to query AWS CloudWatch metrics, alarms, and logs read-only via MCP, providing rapid health snapshots and triage without console navigation.
README
MCP-native AWS CloudWatch explorer. Lets an AI agent (Claude, etc) query metrics, alarms, and logs over MCP — read-only by design — so you can ask "what's wrong with prod?" in a chat and get a useful answer instead of a 4-tab CloudWatch console session.
flowchart LR
A[Claude / MCP client] -- tool call --> S[mcp-cloudwatch-explorer]
S -- boto3 cloudwatch / logs --> CW[CloudWatch metrics<br/>alarms · logs]
CW --> S
S -- ranked findings --> A
Tools exposed (implemented)
| Tool | Returns |
|---|---|
list_alarms_in_alarm(region) |
All CloudWatch alarms currently in ALARM state |
get_metric_stats(namespace, metric, dimensions, period_min, hours) |
Datapoints for a metric over the last N hours |
recent_log_errors(log_group, hours) |
Recent ERROR / Exception lines from a log group |
summarize_health(region) |
One-shot health snapshot: alarms in ALARM + count by namespace |
Roadmap
top_metrics_by_breach(region, hours)— metrics that breached their threshold most in last N hours (needs CloudWatch metric history aggregation)
Why MCP
Standard CloudWatch usage:
- SSH or open Console.
- Click through dashboards.
- Filter by service.
- Try to remember the metric name.
- Eyeball the graph.
With MCP:
> Hey, looks like prod is slow. Anything alarming?
[claude calls list_alarms_in_alarm + summarize_health]
Yes — 2 alarms in ALARM right now in us-east-1:
- ALB-5xx-rate (api-prod) breached 3 times in last hour
- RDS-CPUUtilization (db-prod-1) at 87% sustained
Top recent log errors in /aws/lambda/api-prod:
- ConnectionPool exhausted (47x)
- DDB throttling on Users.GetItem (12x)
Probable root cause: connection pool saturation under high traffic
caused by the 5xx rate.
That's a 30-second triage instead of 5 minutes of console-clicking.
Quick start
pip install -e .
# AWS creds via your usual mechanism
export AWS_PROFILE=mycompany-readonly
python -m mcp_cloudwatch_explorer.server
For Claude Desktop, add to your MCP config:
{
"mcpServers": {
"cloudwatch-explorer": {
"command": "python",
"args": ["-m", "mcp_cloudwatch_explorer.server"],
"env": {"AWS_PROFILE": "mycompany-readonly"}
}
}
}
Safety
- Scoped IAM: needs only
cloudwatch:Describe*,cloudwatch:Get*,logs:Describe*,logs:FilterLogEvents. Never write. - No mutation tools. By design.
- Pagination + AWS API throttle handling on every
describe_*call.
Related projects
- mcp-postgres-doctor — read-only Postgres diagnostics over MCP.
- mcp-aws-cost-doctor — AWS cost-leak finder over MCP.
The three together cover Postgres + AWS cost + AWS observability for one agent session — a single Claude conversation can audit your DB, your spend, and your alarms.
License
MIT
Install Cloudwatch Explorer in Claude Desktop, Claude Code & Cursor
unyly install mcp-cloudwatch-explorerInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add mcp-cloudwatch-explorer -- uvx --from git+https://github.com/sarteta/mcp-cloudwatch-explorer mcp-cloudwatch-explorerFAQ
Is Cloudwatch Explorer MCP free?
Yes, Cloudwatch Explorer MCP is free — one-click install via Unyly at no cost.
Does Cloudwatch Explorer need an API key?
No, Cloudwatch Explorer runs without API keys or environment variables.
Is Cloudwatch Explorer hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Cloudwatch Explorer in Claude Desktop, Claude Code or Cursor?
Open Cloudwatch Explorer on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Cloudwatch Explorer with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
