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.
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
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
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.
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 |
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?
The MCP Log Reader server follows these steps when processing your requests:
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.
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.
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"
]
}
}
}
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.
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.