CloudWatch Logs MCP ServerServer

serkanh
GitHub
AWSMonitoringCloud

Loading subscription status...

💡 Description

An MCP server that provides tools to access AWS CloudWatch logs. It allows AI assistants to list log groups and read log entries from AWS CloudWatch.

📝 JSON Entries

{
  "mcpServers": [
    {
      "cloudwatch-logs": {
        "env": {
          "AWS_ACCESS_KEY_ID": "<YOUR_ACCESS_KEY_ID>",
          "AWS_SECRET_ACCESS_KEY": "<YOUR_SECRET_ACCESS_KEY>"
        },
        "args": [
          "/path/to/cloudwatch-logs-mcp/main.py"
        ],
        "command": "python3"
      }
    },
    {
      "cloudwatch-logs": {
        "env": {
          "AWS_ACCESS_KEY_ID": "<YOUR_ACCESS_KEY_ID>",
          "AWS_SECRET_ACCESS_KEY": "<YOUR_SECRET_ACCESS_KEY>"
        },
        "args": [
          "run",
          "-i",
          "--rm",
          "-e",
          "AWS_ACCESS_KEY_ID",
          "-e",
          "AWS_SECRET_ACCESS_KEY",
          "mcp/cloudwatch-logs"
        ],
        "command": "docker"
      }
    }
  ]
}

Features

  • List available CloudWatch log groups
  • Fetch log entries from specified log group

💬 Example Queries

  • List available CloudWatch log groups
  • Retrieve logs from a specific log group