CloudWatch Logs MCP Server
CloudWatch Logs MCP サーバー
AWS CloudWatch ログにアクセスするためのツールを提供する MCP(Model Context Protocol)サーバー。このサーバーにより、AI アシスタントはロググループを一覧表示し、AWS CloudWatch からログエントリを読み取ることができます。
利用可能なツール
リストグループ
利用可能な CloudWatch ロググループを一覧表示します。
パラメータ:
prefix(オプション):ロググループ名のプレフィックスregion(オプション): AWS リージョンaccessKeyId(オプション): AWS アクセスキー IDsecretAccessKey(オプション): AWS シークレットアクセスキーsessionToken(オプション): AWSセッショントークン
戻り値: logGroupName 、 creationTime 、 storedBytesを含むログ グループのリストを含む JSON 文字列。
ログを取得する
特定のロググループから CloudWatch ログを取得します。
パラメータ:
logGroupName(必須): ロググループの名前logStreamName(オプション): ログストリームの名前startTime(オプション): ISO 形式または相対時間での開始時刻 (例: "5m"、"1h"、"1d")endTime(オプション): ISO 形式の終了時刻filterPattern(オプション): ログのフィルターパターンregion(オプション): AWS リージョンaccessKeyId(オプション): AWS アクセスキー IDsecretAccessKey(オプション): AWS シークレットアクセスキーsessionToken(オプション): AWSセッショントークン
戻り値: timestamp 、 message 、 logStreamNameを含むログ イベントを含む JSON 文字列。
Related MCP server: CloudWatch MCP Server
設定
AWS 認証情報
AWS 認証情報が設定されていることを確認してください。AWS CLI を使用するか、環境変数を設定することで設定できます。
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEY
Claude Desktopでの使用
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": []
}
}
}ドッカー
Docker コンテナ内でサーバーを実行する場合は、Dockerfile をセットアップして次の構成を使用できます。
{
"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>",
}
}
}
}実装の詳細
このサーバーは、MCPサーバーを簡単に作成できるMCP SDKのFastMCPクラスを使用して構築されています。このサーバーは、主に2つのツールを公開しています。
list_groups: 利用可能な CloudWatch ロググループを一覧表示しますget_logs: 特定のロググループからログエントリを読み取ります
各ツールは@mcp.tool()で修飾された非同期関数として実装されています。サーバーはboto3ライブラリを使用してAWS CloudWatch Logs APIとやり取りします。
ライセンス
マサチューセッツ工科大学
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides AI assistants access to AWS CloudWatch Logs, enabling browsing, searching, summarizing, and correlating logs across multiple AWS services.167Apache 2.0- FlicenseNot gradedqualityDmaintenanceA simplified MCP server that provides a streamlined way to interact with AWS CloudWatch resources (log groups, log queries, and alarms) through the MCP protocol.5
- FlicenseNot gradedqualityFmaintenanceAn MCP server that enables AI assistants to query and analyze logs from Grafana Loki using LogQL, supporting label discovery and keyword search.4
- FlicenseNot gradedqualityDmaintenanceAn MCP server on AWS Lambda that gives AI assistants read-only access to SQS dead-letter queues and CloudWatch logs for fast incident triage.
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/serkanh/cloudwatch-logs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server