MCP.so
ログイン

CloudWatch Logs MCP Server

@serkanh

基本情報

カテゴリ

開発者ツール

トランスポート

stdio

作者

serkanh

CloudWatch Logs MCP Server について

概要はまだありません

CloudWatch Logs MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "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": []
    }
  }
}

CloudWatch Logs MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is CloudWatch Logs MCP Server?

CloudWatch Logs MCP Server is a Model Context Protocol (MCP) server that provides tools for accessing AWS CloudWatch logs. It allows AI assistants, such as Claude Desktop, to list log groups and read log entries from AWS CloudWatch using the boto3 library.

How to use CloudWatch Logs MCP Server?

Configure AWS credentials via environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) or the AWS CLI. Then add the server to your Claude Desktop configuration (claude_desktop_config.json) using either a Python command or a Docker container. The server exposes two tools: list_groups and get_logs.

Key features of CloudWatch Logs MCP Server

  • List available CloudWatch log groups with optional prefix.
  • Read log entries from a specific log group.
  • Filter logs by time (ISO or relative "5m", "1h", "1d"), log stream, and filter pattern.
  • Support overriding AWS region and credentials per tool call.
  • Returns JSON output with log group details or log events.

Use cases of CloudWatch Logs MCP Server

  • Troubleshoot application issues by querying recent CloudWatch logs.
  • Monitor log groups and streams from an AI assistant.
  • Automate inspection of log errors with natural language queries.
  • Quickly retrieve log entries without leaving the chat interface.

よくある質問

1

What AWS credentials are required?

The server needs `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables, or can use the default AWS CLI profile. Optionally, each tool call can pass its own credentials.

2

How do I run the server with Docker?

Use the Docker command in your `claude_desktop_config.json` with the image `mcp/cloudwatch-logs`, passing the AWS credentials as environment variables.

3

What tools does this server provide?

Two tools: `list_groups` (list log groups) and `get_logs` (read logs from a specific log group). Both accept optional AWS region and credentials.

4

Can I filter the logs returned?

Yes. `get_logs` supports `logStreamName`, `startTime`, `endTime` (ISO or relative), and `filterPattern` as optional parameters.

5

What is the output format?

Both tools return JSON strings: `list_groups` returns log group names, creation times, and stored bytes; `get_logs` returns log events with timestamps, messages, and log stream names.

コメント

「開発者ツール」の他のコンテンツ