Skip to main content

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.

Metadata

Release files for iflow-mcp_Log-Analyzer-with-MCP 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_Log-Analyzer-with-MCP 0.1.0
File Size Uploaded
iflow_mcp_log_analyzer_with_mcp-0.1.0.tar.gz 321.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_Log-Analyzer-with-MCP 0.1.0
File Interpreter ABI Platform
iflow_mcp_log_analyzer_with_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 342.9 kB

Release files / iflow_mcp_log_analyzer_with_mcp-0.1.0.tar.gz

Download URL iflow_mcp_log_analyzer_with_mcp-0.1.0.tar.gz
Size 321.4 kB
Tags Source
SHA-256 checksum
How to use checksums
77def9b588e1e6e11b09fcff9e72a05fa649d8a9bfee8b617940e392f922878c
BLAKE2b-256 checksum
How to use checksums
816f9df0fe6040f37069ae29f15f63bd0276a3be35784c88b237493db3bf4a4c
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / iflow_mcp_log_analyzer_with_mcp-0.1.0-py3-none-any.whl

Download URL iflow_mcp_log_analyzer_with_mcp-0.1.0-py3-none-any.whl
Size 21.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0310cc799c54b215f9e2db09b6b3eb08a8ba51279ec41d823344e4ae109c21fb
BLAKE2b-256 checksum
How to use checksums
33ace06cba8cdeaaff10c4db6a26d5cc6192be3bc4f1157b4fc3099741c05137
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page