MCP Server: Analyze & Debug MCP Logs
klara-research/MCP-Analyzer · 16 stars · TypeScript · MIT
MCP server An MCP server to read MCP logs to debug directly inside the client
Install
The repo has no one-line install. Follow its README.
Files
MCP Server: Analyze & Debug MCP Logs
🔍 Read logs from standard locations across all platforms
🔎 Filter, paginate, and analyze large log collections
🎯 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:
npx -y @smithery/cli install @klara-research/MCP-Analyzer --client claude
Installing Manually
Install directly from GitHub:
# Clone the repository git clone https://github.com/klara-research/MCP-Analyzer.git cd MCP-Analyzer # Install dependencies npm i
Build and run:
# Compile TypeScript npx tsc
🔌 Connecting to Claude
Add the server to your Claude Desktop configuration:
{
"mcpServers": {
"log-reader": {
"command": "node",
"args": [
"/absolute/path/MCP-Analyzer/build"
]
}
}
}
Then restart Claude Desktop.
📋 Available Parameters
The log reader supports these parameters:
| 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
Ask Claude to use the log reader tool:
Can you check my MCP logs for any connection errors in the last day?
Or with specific parameters:
Can you look through MCP logs with filter="error" and lines=50 to find initialization issues?
⚙️ How It Works
- The server automatically detects your OS and finds the appropriate log directory
- It locates all MCP log files and sorts them by modification time (newest first)
- The requested page of log files is retrieved based on pagination settings
- Files are processed with size limits to prevent overwhelming responses
- Filtered content is returned in a structured format with pagination details
📄 License
MIT License
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 16
- License
- MIT
- Language
- TypeScript
- Last push
- 2025-05-03
- Forks
- 4
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k