mcp-cloudwatch-explorer
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., "@mcp-cloudwatch-explorerWhat alarms are firing in us-east-1?"
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.
mcp-cloudwatch-explorer
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 --> ATools exposed (implemented)
Tool | Returns |
| All CloudWatch alarms currently in |
| Datapoints for a metric over the last N hours |
| Recent ERROR / Exception lines from a log group |
| One-shot health snapshot: alarms in ALARM + count by namespace |
Related MCP server: cloudwatch-mcp
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.serverFor 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
This server cannot be deployed
Maintenance
Related MCP Connectors
- SpanlyOAuthcom.spanly
MCP observability. Query live traffic, errors, duration, and alerts from your AI agent.
Let AI agents query data and act across all your business apps via MCP.
Read-only MCP access to a documented IT fleet: state, changes, posture. 15 tools.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to autonomously query AWS CloudWatch Logs and perform structured root-cause analysis via natural language prompts, using MCP tools for log group listing and Insights queries.MIT
- FlicenseNot gradedqualityDmaintenanceProvides AI assistants with read-only access to AWS CloudWatch Logs for production debugging and log analysis, enabling error searching and bug report generation.-
- FlicenseNot gradedqualityBmaintenanceEnables natural language queries for AWS CloudWatch logs, metrics, and alarms via an LLM agent with MCP tools.-
- AlicenseAqualityBmaintenanceEnables AI agents to scan AWS accounts, build resource relationship graphs, detect unused resources, and export data via MCP tools.7190 npmAGPL 3.0