@schuettc/aws-logs-mcp v0.0.2
AWS Logs MCP
A Model Context Protocol (MCP) server that enables AI assistants to securely access and query AWS CloudWatch Logs and CloudTrail Events. Simplify troubleshooting and monitoring by giving your AI assistants direct, secure access to your AWS logs and events in near real-time.
Quick Installation
Get started in seconds with one-click installation in VS Code:
What You Can Do
AWS Logs MCP connects your AI assistants to your AWS environment, allowing them to:
- Query CloudWatch Logs to troubleshoot application issues
- Examine CloudTrail events to understand recent AWS operations
- Analyze log patterns for error investigation
- Monitor real-time log streams during deployments
Your AWS credentials remain on your local machine and are only used for accessing AWS services.
Deployment Options
This MCP server supports two deployment modes:
1. Direct stdio Integration (Recommended for Claude CLI)
Use this method for direct integration with Claude in the terminal:
# Register the MCP server with Claude
claude mcp add aws-logs -s user -- npx @schuettc/aws-logs-mcp --stdioThis approach is seamless - it runs the server in stdio mode without any separate process.
2. HTTP Server Mode (For Apps & Desktop Clients)
Run the server on a port accessible to your LLM application:
# Start the HTTP server
npx @schuettc/aws-logs-mcp
# Then register with Claude's desktop app
claude mcp add aws-logs --url http://localhost:3010/mcpAWS Authentication
During installation, you can choose your preferred authentication method:
- AWS Profile (recommended): Use your existing AWS CLI profiles
- IAM Credentials: Provide access key and secret directly
- IAM Role: Automatically use instance roles when running on AWS services
Manual Installation
If you prefer to install manually:
# Clone the repository
git clone https://github.com/schuettc/aws-logs-mcp.git
cd aws-logs-mcp
# Install dependencies
pnpm install
# Set up environment variables
cp .env.example .env
# Edit .env to configure your AWS credentials
# Build and start the server (HTTP mode)
pnpm build
pnpm start
# Or in stdio mode
pnpm start:stdioDevelopment
# HTTP server mode
pnpm dev
# stdio mode
pnpm dev:stdioDocumentation
For complete documentation including available tools, AWS permissions, and advanced configuration, visit our GitHub Pages Documentation Site.
License
MIT-0