trackmcp
Back to directory
klara-research

MCP-Analyzer

View on GitHub

An MCP server to read MCP logs to debug directly inside the client

15 stars TypeScriptDeveloper Kits Updated Oct 11, 2025

Documentation

MCP Server: Analyze & Debug MCP Logs

smithery badge

๐ŸŽฏ Overview

MCP Log Reader is a specialized MCP server that helps you analyze and debug Model Context Protocol logs. It provides Claude with direct access to log files, making it easy to troubleshoot MCP integrations and understand how Claude interacts with your tools.

  • Multi-platform Support: Works on macOS, Windows, and Linux with platform-specific log paths
  • Smart Filtering: Find specific log entries with case-insensitive text search
  • Paginated Browsing: Navigate large log collections efficiently
  • Size Management: Handles large log files with intelligent truncation
  • Seamless Claude Integration: Works directly with Claude Desktop

๐Ÿš€ Quick Start

Installing via Smithery

To install MCP Log Reader for Claude Desktop automatically via Smithery:

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

Installing Manually

Install directly from GitHub:

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

# Install dependencies
npm i

Build and run:

bash
# Compile TypeScript
npx tsc

๐Ÿ”Œ Connecting to Claude

Add the server to your Claude Desktop configuration:

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

Then restart Claude Desktop.

๐Ÿ“‹ Available Parameters

The log reader supports these parameters:

ParameterDescriptionDefault
`lines`Number of lines to read from each log file100
`filter`Text to filter log entries by (case-insensitive)""
`customPath`Custom path to log directoryOS-specific
`fileLimit`Maximum number of files to read per page5
`page`Page number for pagination1

๐Ÿ’ก Example Usage

Ask Claude to use the log reader tool:

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

Or with specific parameters:

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

โš™๏ธ How It Works

1. The server automatically detects your OS and finds the appropriate log directory

2. It locates all MCP log files and sorts them by modification time (newest first)

3. The requested page of log files is retrieved based on pagination settings

4. Files are processed with size limits to prevent overwhelming responses

5. Filtered content is returned in a structured format with pagination details

๐Ÿ“„ License

MIT License

Frequently asked questions

What is MCP-Analyzer?

MCP-Analyzer is An MCP server to read MCP logs to debug directly inside the client

How do I install MCP-Analyzer?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is MCP-Analyzer open source?

Yes โ€” it is hosted on GitHub at https://github.com/klara-research/mcp-analyzer and has 15 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP