MCP Server: Analyze & Debug MCP Logs
🎯 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
Install directly from GitHub:
Copy
Build and run:
Copy
🔌 Connecting to Claude
Add the server to your Claude Desktop configuration:
Copy
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:
Copy
Or with specific parameters:
Copy
⚙️ 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
You must be authenticated.
Tools
A specialized MCP server that helps analyze and debug Model Context Protocol logs by providing Claude with direct access to log files across multiple platforms.
- 🎯 Overview
- 🚀 Quick Start
- 🔌 Connecting to Claude
- 📋 Available Parameters
- 💡 Example Usage
- ⚙️ How It Works
- 📄 License