Skip to main content
Glama

WinLog-mcp

by XD3an

🪟 WinLog-mcp

A Model Context Protocol (MCP) tool for retrieving and analyzing Windows event logs (e.g. Application, System, Security). WinLog-mcp provides programmatic access to ingest and query Windows event logs, making it ideal for security monitoring, incident response, and log analysis automation.

⚠️ Warning: This tool must be run with Administrator privileges. Please exercise caution to avoid causing unintended changes to your system.


✨ Features

  • Ingest Windows Sysmon logs and store them as files in a user-defined directory
  • Query logs by timestamp, returning recent event entries for analysis or troubleshooting
  • Seamless interoperability with MCP tools and ecosystem

📄 Log files format

  • Log files are named with the format <timestamp>_<log_type>.log in the chosen storage path

MCP Server (tool, prompts,...)

🛠️ Available Tools

  • ingest_syslog: Ingests recent Sysmon logs and writes them to a file
  • query_syslog: Queries ingested logs by timestamp and returns recent events

📋 Requirements

💾 Installation

Clone the repository and install dependencies:

pip install -r requirements.txt

🚀 Usage

🖥️ Sysmon Installation

Reference: Sysmon Installation Guideline

cd sysmon install.bat

▶️ Running Directly

Run the tool as an MCP server:

python main.py --storage-path \\PATH\\TO\\logs\\

🧑‍💻 Development Mode

You can inspect or debug using the MCP Inspector:

# Run in development mode python \\PATH\\TO\\main.py --storage-path \\PATH\\TO\\logs\\ # Run in inspector mode npx @modelcontextprotocol/inspector python \\PATH\\TO\\main.py --storage-path \\PATH\\TO\\logs\\

⚙️ Configuration

MCP configuration to run winlog-mcp tool.

{ "mcpServers": { "winlog-mcp": { "command": "python", "args": [ "\\PATH\\TO\\main.py", "--storage-path", "\\PATH\\TO\\logs\\" ] } } }

🤖 MCP Clients Integration

💬 Claude Desktop Integration

The configuration file is located at:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Once integrated with Claude Desktop, you can ask Claude to:

Please show me the last 10 events in the last 24 hours, and Analyze them.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

Provides programmatic access to ingest and query Windows event logs (especially Sysmon logs), enabling security monitoring, incident response, and log analysis automation.

  1. ✨ Features
    1. 📄 Log files format
  2. MCP Server (tool, prompts,...)
    1. 🛠️ Available Tools
  3. 📋 Requirements
    1. 💾 Installation
      1. 🚀 Usage
        1. 🖥️ Sysmon Installation
        2. ▶️ Running Directly
        3. 🧑‍💻 Development Mode
      2. ⚙️ Configuration
        1. 🤖 MCP Clients Integration
      3. 📄 License

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          provide access to monitor and cluster logs from datadog
          Last updated -
          7
          Python
          • Apple
        • A
          security
          F
          license
          A
          quality
          An MCP server for searching and visualizing SolarWinds Observability logs, allowing users to query log data with filtering options and generate visual representations of log events over time.
          Last updated -
          2
          15
          TypeScript
          • Apple
        • A
          security
          A
          license
          A
          quality
          for tracing and monitoring
          Last updated -
          10
          113
          18
          TypeScript
          MIT License
          • Apple

        View all related MCP servers

        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/XD3an/winlog-mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server