An MCP server to read MCP logs to debug directly inside the client
What is klara research MCP Analyzer
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
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
Leave a Comment
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
Brave Search MCP
Integrate Brave Search capabilities into Claude through MCP. Enables real-time web searches with privacy-focused results and comprehensive web coverage.
chrisdoc hevy mcp
sylphlab pdf reader mcp
An MCP server built with Node.js/TypeScript that allows AI agents to securely read PDF files (local or URL) and extract text, metadata, or page counts. Uses pdf-parse.
aashari mcp server atlassian bitbucket
Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MCP interface.
aashari mcp server atlassian confluence
Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP interface.
prisma prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
Zzzccs123 mcp sentry
mcp sentry for typescript sdk
zhuzhoulin dify mcp server
zhongmingyuan mcp my mac
zhixiaoqiang desktop image manager mcp
MCP ๆๅกๅจ๏ผ็จไบ็ฎก็ๆก้ขๅพ็ใๆฅ็่ฏฆๆ ใๅ็ผฉใ็งปๅจ็ญ๏ผๅฎๅ จ่ฎฉTraeๅฎ็ฐ๏ผ
Submit Your MCP Server
Share your MCP server with the community
Submit Now