Log Analyzer MCP server

Debugging tool that retrieves, filters, and displays MCP logs from Claude desktop applications across macOS, Windows, and Linux for troubleshooting integration issues.
Back to servers
Provider
mrciffa
Release date
Apr 02, 2025
Language
TypeScript
Stats
10 stars

The MCP Log Reader is a specialized server that helps you analyze and debug Model Context Protocol logs, giving Claude direct access to log files for troubleshooting MCP integrations. It supports multiple platforms, smart filtering, and pagination to handle large log collections efficiently.

Installation Options

Installing via Smithery

The quickest way to install MCP Log Reader for Claude Desktop is through Smithery:

npx -y @smithery/cli install @klara-research/MCP-Analyzer --client claude

Manual Installation

Alternatively, you can install directly from GitHub:

# Clone the repository
git clone https://github.com/klara-research/MCP-Analyzer.git
cd MCP-Analyzer

# Install dependencies
npm i

# Compile TypeScript
npx tsc

Connecting to Claude

After installation, you need to add the server to your Claude Desktop configuration:

{
  "mcpServers": {
    "log-reader": {
      "command": "node",
      "args": [
        "/absolute/path/MCP-Analyzer/build"
      ]
    }
  }
}

Remember to restart Claude Desktop after making these changes.

Usage Parameters

The log reader supports several parameters to customize your log analysis:

Parameter Description Default
lines Number of lines to read from each log file 100
filter Text to filter log entries by (case-insensitive) ""
customPath Custom path to log directory OS-specific
fileLimit Maximum number of files to read per page 5
page Page number for pagination 1

Example Usage

You can ask Claude to use the log reader tool with simple queries:

Can you check my MCP logs for any connection errors in the last day?

Or specify parameters for more targeted analysis:

Can you look through MCP logs with filter="error" and lines=50 to find initialization issues?

How It Works

The MCP Log Reader server follows these steps when processing your requests:

  1. Automatically detects your operating system and finds the appropriate log directory
  2. Locates all MCP log files and sorts them by modification time (newest first)
  3. Retrieves the requested page of log files based on pagination settings
  4. Processes files with size limits to prevent overwhelming responses
  5. Returns filtered content in a structured format with pagination details

This allows you to efficiently analyze large collections of log files across macOS, Windows, and Linux systems without having to manually locate or parse log files yourself.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later