awslabs

Log Analyzer with MCP

Community awslabs
Updated

An MCP server that provides AI assistants access to CloudWatch Logs

Log Analyzer with MCP

A Model Context Protocol (MCP) server that provides AI assistants access to AWS CloudWatch Logs for analysis, searching, and correlation.

๐Ÿ—๏ธ Architecture

Architecture Diagram

๐Ÿ”Œ Model Context Protocol (MCP)

As outlined by Anthropic:

MCP is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.

This repository is an example client and server that allows an AI assistant like Claude to interact with CloudWatch logs in an AWS account. To learn more about MCP, read through the introduction.

โœจ Features

  • Browse and search CloudWatch Log Groups
  • Search logs using CloudWatch Logs Insights query syntax
  • Generate log summaries and identify error patterns
  • Correlate logs across multiple AWS services
  • AI-optimized tools for assistants like Claude

Detailed feature list

๐Ÿš€ Installation

Prerequisites

  • The uv Python package and project manager
  • An AWS account with CloudWatch Logs
  • Configured AWS credentials

Setup

# Clone the repository
git clone https://github.com/awslabs/Log-Analyzer-with-MCP.git
cd Log-Analyzer-with-MCP

# Create a virtual environment and install dependencies
uv sync
source .venv/bin/activate  # On Windows, use `.venv\Scripts\activate`

๐Ÿšฆ Quick Start

  1. Make sure to have configured your AWS credentials as described here

  2. Update your claude_desktop_config.json file with the proper configuration outlined in the AI integration guide

  3. Open Claude for Desktop and start chatting!

For more examples and advanced usage, see the detailed usage guide.

๐Ÿค– AI Integration

This project can be easily integrated with AI assistants like Claude for Desktop. See the AI integration guide for details.

๐Ÿ“š Documentation

  • Detailed Features
  • Usage Guide
  • AWS Configuration
  • Architecture Details
  • AI Integration
  • Troubleshooting

๐Ÿ”’ Security

See CONTRIBUTING for more information.

๐Ÿ“„ License

This project is licensed under the Apache-2.0 License.

MCP Server ยท Populars

MCP Server ยท New

    chatmcp

    mcpso

    directory for Awesome MCP Servers

    Community chatmcp
    TBXark

    MCP Proxy Server

    An MCP proxy server that aggregates and serves multiple MCP resource servers through a single HTTP server.

    Community TBXark
    ttommyth

    interactive-mcp

    Ask users questions from your LLM! interactive-mcp: Local, cross-platform MCP server for interactive prompts, chat & notifications.

    Community ttommyth
    lpigeon

    ros-mcp-server

    The ROS MCP Server is designed to support robots in performing complex tasks and adapting effectively to various environments by providing a set of functions that transform natural language commands, entered by a user through an LLM, into ROS commands for robot control.

    Community lpigeon
    emicklei

    melrose-mcp

    interactive programming of melodies, producing MIDI

    Community emicklei