MCP Hub Logo

AWS CloudWatch Logs

Search and tail AWS CloudWatch log groups from your AI assistant. Debug production issues without the console.

awscloudwatchlogsdebuggingdevops
CuratedLast reviewed: Dec 8, 2024API Key Required

About

AWS CloudWatch Logs

Bring your cloud logs into your AI conversation. Search log groups, tail live streams, filter by time range, and ask natural-language questions about log patterns — no more console tab-switching.

Setup

{
  "mcpServers": {
    "aws-cloudwatch-logs": {
      "command": "npx",
      "args": ["-y", "@mcphub/aws-cloudwatch-logs"],
      "env": {
        "AWS_REGION": "us-east-1",
        "AWS_ACCESS_KEY_ID": "AKIA...",
        "AWS_SECRET_ACCESS_KEY": "..."
      }
    }
  }
}

Recommended: use IAM credentials with logs:FilterLogEvents and logs:DescribeLogGroups permissions only.

Example Prompts

  • "Show me errors from /aws/lambda/my-function in the last hour"
  • "Search CloudWatch for 'connection timeout' in the last 24 hours"
  • "What log groups do I have in us-east-1?"

Permissions & Access

Permissions Required

read:logs

External Systems Accessed

AWS CloudWatch