Skip to main content

An MCP server that provides AI assistants access to CloudWatch Logs

Project description

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

🔒 Security

See CONTRIBUTING for more information.

📄 License

This project is licensed under the Apache-2.0 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_log_analyzer_with_mcp-0.1.0.tar.gz (321.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_mcp_log_analyzer_with_mcp-0.1.0-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_log_analyzer_with_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_log_analyzer_with_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 321.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_log_analyzer_with_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 77def9b588e1e6e11b09fcff9e72a05fa649d8a9bfee8b617940e392f922878c
MD5 14113af019941ea5fe077588c4177c15
BLAKE2b-256 816f9df0fe6040f37069ae29f15f63bd0276a3be35784c88b237493db3bf4a4c

See more details on using hashes here.

File details

Details for the file iflow_mcp_log_analyzer_with_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_log_analyzer_with_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_log_analyzer_with_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0310cc799c54b215f9e2db09b6b3eb08a8ba51279ec41d823344e4ae109c21fb
MD5 1b39f9eb37be76d1f94264079bd852d1
BLAKE2b-256 33ace06cba8cdeaaff10c4db6a26d5cc6192be3bc4f1157b4fc3099741c05137

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page