log_analyzer_mcp - Analyze Log files via MCP

by djm81

290 downloads
Not rated
GitHub

About

Log Analyzer MCP is a powerful Python-based toolkit designed to streamline the way you interact with log files. Whether you're debugging complex applications, monitoring test runs, or simply trying to make sense of verbose log outputs, this tool provides both a Command-Line Inter

Details

Author
djm81
Downloads
290
Categories
Developer Tools

- Core log analysis engine for flexible parsing and searching.
- Standalone loganalyzer CLI tool for scripting.
- MCP server exposing functions

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name log_analyzer_mcp - Analyze Log files via MCP
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Use the standalone loganalyzer CLI for direct analysis or integrate the MCP server with compatible clients like Cursor. Development and testing are managed through Hatch.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "log_analyzer_mcp - analyze log files via mcp": {
            "log_analyzer_mcp_server_prod": {
                "command": "uvx",
                "args": [
                    "log-analyzer-mcp"
                ],
                "env": {
                    "PYTHONUNBUFFERED": "1",
                    "PYTHONIOENCODING": "utf-8",
                    "MCP_LOG_LEVEL": "INFO"
                }
            }
        }
    }
}

McpServers

{
    "log_analyzer_mcp_server_prod": {
        "command": "uvx",
        "args": [
            "log-analyzer-mcp"
        ],
        "env": {
            "PYTHONUNBUFFERED": "1",
            "PYTHONIOENCODING": "utf-8",
            "MCP_LOG_LEVEL": "INFO"
        }
    }
}

Overview: Analyze Logs with Ease

Log Analyzer MCP is a powerful Python-based toolkit designed to streamline the way you interact with log files. Whether you're debugging complex applications, monitoring test runs, or simply trying to make sense of verbose log outputs, this tool provides both a Command-Line Interface (CLI) and a Model-Context-Protocol (MCP) server to help you find the insights you need, quickly and efficiently.

Why use Log Analyzer MCP?

- Simplify Log Analysis: Cut through the noise with flexible parsing, advanced filtering (time-based, content, positional), and configurable context display.
- Integrate with Your Workflow: Use it as a standalone loganalyzer CLI tool for scripting and direct analysis, or integrate the MCP server with compatible clients like Cursor for an AI-assisted experience.
- Extensible and Configurable: Define custom log sources, patterns, and search scopes to tailor the analysis to your specific needs.

Key Features

- Core Log Analysis Engine: Robust backend for parsing and searching various log formats.
- loganalyzer CLI: Intuitive command-line tool for direct log interaction.
- MCP Server: Exposes log analysis capabilities to MCP clients, enabling features like:
- Test log summarization (analyze_tests).
- Execution of test runs with varying verbosity.
- Targeted unit test execution (run_unit_test).
- On-demand code coverage report generation (create_coverage_report).
- Advanced log searching: all records, time-based, first/last N records.
- Hatch Integration: For easy development, testing, and dependency management.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.