- Explore MCP Servers
- cloudwatch-logs-mcp
Cloudwatch Logs Mcp
What is Cloudwatch Logs Mcp
cloudwatch-logs-mcp is an MCP (Model Context Protocol) server that provides tools for accessing and managing AWS CloudWatch logs. It enables AI assistants to list log groups and retrieve log entries from AWS CloudWatch.
Use cases
Use cases for cloudwatch-logs-mcp include monitoring application performance, debugging issues by analyzing logs, and integrating log data into AI systems for enhanced analytics and insights.
How to use
To use cloudwatch-logs-mcp, you need to configure your AWS credentials and set up the server. You can run it using Python or Docker. The server provides two main tools: ‘list_groups’ to list available log groups and ‘get_logs’ to retrieve logs from a specific log group.
Key features
Key features of cloudwatch-logs-mcp include the ability to list log groups with optional parameters, retrieve logs with various filters, and support for AWS credentials configuration via environment variables.
Where to use
cloudwatch-logs-mcp is used in cloud computing environments, particularly for applications that require monitoring and logging of AWS services. It is suitable for developers, system administrators, and AI applications that need to access log data.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Cloudwatch Logs Mcp
cloudwatch-logs-mcp is an MCP (Model Context Protocol) server that provides tools for accessing and managing AWS CloudWatch logs. It enables AI assistants to list log groups and retrieve log entries from AWS CloudWatch.
Use cases
Use cases for cloudwatch-logs-mcp include monitoring application performance, debugging issues by analyzing logs, and integrating log data into AI systems for enhanced analytics and insights.
How to use
To use cloudwatch-logs-mcp, you need to configure your AWS credentials and set up the server. You can run it using Python or Docker. The server provides two main tools: ‘list_groups’ to list available log groups and ‘get_logs’ to retrieve logs from a specific log group.
Key features
Key features of cloudwatch-logs-mcp include the ability to list log groups with optional parameters, retrieve logs with various filters, and support for AWS credentials configuration via environment variables.
Where to use
cloudwatch-logs-mcp is used in cloud computing environments, particularly for applications that require monitoring and logging of AWS services. It is suitable for developers, system administrators, and AI applications that need to access log data.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
CloudWatch Logs MCP Server
An MCP (Model Context Protocol) server that provides tools for accessing AWS CloudWatch logs. This server allows AI assistants to list log groups and read log entries from AWS CloudWatch.
Available Tools
list_groups
Lists available CloudWatch log groups.
Parameters:
prefix(optional): Log group name prefixregion(optional): AWS regionaccessKeyId(optional): AWS access key IDsecretAccessKey(optional): AWS secret access keysessionToken(optional): AWS session token
Returns: JSON string with the list of log groups, including logGroupName, creationTime, and storedBytes.
get_logs
Gets CloudWatch logs from a specific log group.
Parameters:
logGroupName(required): The name of the log grouplogStreamName(optional): The name of the log streamstartTime(optional): Start time in ISO format or relative time (e.g., “5m”, “1h”, “1d”)endTime(optional): End time in ISO formatfilterPattern(optional): Filter pattern for the logsregion(optional): AWS regionaccessKeyId(optional): AWS access key IDsecretAccessKey(optional): AWS secret access keysessionToken(optional): AWS session token
Returns: JSON string with the log events, including timestamp, message, and logStreamName.
Setup
AWS Credentials
Ensure you have AWS credentials configured. You can set them up using the AWS CLI or by setting environment variables:
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEY
Usage with Claude Desktop
Add the following to your claude_desktop_config.json:
Docker
If you prefer to run the server in a Docker container, you can set up a Dockerfile and use the following configuration:
Implementation Details
This server is built using the FastMCP class from the MCP SDK, which provides a simple way to create MCP servers. The server exposes two main tools:
list_groups: Lists available CloudWatch log groupsget_logs: Reads log entries from specific log groups
Each tool is implemented as an async function decorated with @mcp.tool(). The server uses the boto3 library to interact with the AWS CloudWatch Logs API.
License
MIT
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










