Access AWS CloudWatch logs to list log groups and read log entries.
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.
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 tokenReturns: JSON string with the list of log groups, including logGroupName
, creationTime
, and storedBytes
.
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 tokenReturns: JSON string with the log events, including timestamp
, message
, and logStreamName
.
Ensure you have AWS credentials configured. You can set them up using the AWS CLI or by setting environment variables:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
Add the following to your claude_desktop_config.json
:
{
"mcpServers": {
"cloudwatch-logs": {
"command": "python3",
"args": ["/path/to/cloudwatch-logs-mcp/main.py"],
"env": {
"AWS_ACCESS_KEY_ID": "<YOUR_ACCESS_KEY_ID>",
"AWS_SECRET_ACCESS_KEY": "<YOUR_SECRET_ACCESS_KEY>",
},
"disabled": false,
"autoApprove": []
}
}
}
If you prefer to run the server in a Docker container, you can set up a Dockerfile and use the following configuration:
{
"mcpServers": {
"cloudwatch-logs": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"AWS_ACCESS_KEY_ID",
"-e",
"AWS_SECRET_ACCESS_KEY",
"mcp/cloudwatch-logs"
],
"env": {
"AWS_ACCESS_KEY_ID": "<YOUR_ACCESS_KEY_ID>",
"AWS_SECRET_ACCESS_KEY": "<YOUR_SECRET_ACCESS_KEY>",
}
}
}
}
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 groupsEach 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.
MIT
Provides healthcare tools for interacting with FHIR resources on Google Cloud Healthcare API and public medical research APIs like PubMed.
An MCP server for Zuora, powered by the CData JDBC Driver. Requires a separate driver and configuration file for connection.
Exposes Check Point security management data for AI-powered automation and analysis.
A remote, auth-less MCP server deployable on Cloudflare Workers or locally via npm.
Interact with the Hostinger Ecommerce API using a JWT token and store ID.
A middleware server that allows large language models to interact directly with PlayFab services.
Yunxiao MCP Server provides AI assistants with the ability to interact with the Yunxiao platform.
Create, manage, and explore your content and content model using natural language in any MCP-compatible AI tool.
An MCP server for processing payments using stdio transport, configured via environment variables.
Access the Hugging Face Dataset Viewer API to query, explore, search, and analyze machine learning datasets from the Hugging Face Hub.