Log Detective MCP server
io.github.fedora-copr/logdetective-mcp·v0.7.0·1 starsMCP server providing log snippet and Python traceback extraction tools.
not scanned yet
1 stars1.7k downloads/wk
Reviews
Write oneNobody has reviewed Log Detective MCP yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Log Detective MCP tools
No tool declarations could be read from the package source. They show once the server is installed.
How Log Detective MCP compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 94/100
- higher than 96% of 48,255 servers
- GitHub stars
- 1
- more than 65% of 28,688 servers
- Downloads a week
- 1,677
- more than 95% of 12,191 servers with a package
Release history: 2 versions in the registry since 2026-10-23, latest 2026-11-02, typically one every 10 days.
Install Log Detective MCP in Claude Code, Cursor or VS Code
claude mcp add logdetective-mcp -- uvx logdetective-mcp
What the publisher says
From the Log Detective MCP repository's README, as published. We do not edit it. Read it on GitHub
Log Detective MCP
MCP server implementing core log analysis tools of Log Detective for use by other agents.
The server uses the Drain3 algorithm to cluster log messages into templates and extract a representative subset of snippets, reducing large logs to a manageable size for downstream analysis.
Installation
Requires Python 3.11+.
pip install .Or with uv:
uv pip install .Usage
Running the server
logdetective-mcpOr directly:
python -m logdetective_mcp.mainMCP client configuration
Claude Code
claude mcp add logdetective -- logdetective-mcpClaude Desktop
Add to your Claude Desktop configuration file:
{
"mcpServers": {
"logdetective": {
"command": "logdetective-mcp"
}
}
}Tools
extractlogsnippets
Extracts representative log snippets using Drain3 clustering. The tool chunks the log into logical messages, clusters similar messages, and returns one representative snippet per cluster.
Log content can be provided in three ways (exactly one must be used):
Optional parameters:
Returns a list of Snippet objects, each with line_number (position in the original log) and text (the extracted snippet content).
extractpythontracebacks
Extracts Python tracebacks from the log, including chained exceptions.
For both extractor tools, context follows grep's -C behavior: the requested number of surrounding log lines is included on each side when available. The length limit applies to the extracted snippet or traceback; context lines are additional, so the returned text can be longer than the limit. With context enabled, line_number points to the first returned line. Values outside 0-50 are rejected.
If a traceback is truncated, the extractor keeps its beginning and end with a marker when maxtracebacklen permits; smaller limits keep only a prefix. Following context starts after the original traceback, without restoring its omitted middle. If a log line is split into chunks by maxsnippetlen, each selected chunk keeps its own text when context is added. Neighboring lines do not replace it with the complete long line. Context boundaries follow the chunk's original source lines, including blank lines omitted from the rendered chunk.
Size limits
All downloaded inputs (via log_url) are limited to 100 MB regardless of format. Downloads are streamed in chunks and aborted as soon as the limit is exceeded.
Archives read via log_path are also checked against the 100 MB limit during decompression.
Compressed file support
Both tools transparently decompress archived log files. Supported formats:
- Single-file compression: .gz, .bz2, .xz, .lzma
- Archives: .zip, .tar, .tar.gz, .tar.bz2, .tar.xz
Format is detected from the file extension (or URL path). Archives must contain exactly one file.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Log Detective MCP: common questions
- Is Log Detective MCP server safe?
- Yes, by our scan: it is graded A (94/100). Read the Log Detective MCP safety report
- How do I install Log Detective MCP?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Log Detective MCP need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Log Detective MCP maintained?
- The last commit was 12 days ago (2026-10-23). The latest release is v0.7.0.
- How does Log Detective MCP compare with other MCP servers?
- safety score 94/100 (higher than 96% of 48,255 servers); github stars 1 (more than 65% of 28,688 servers); downloads a week 1,677 (more than 95% of 12,191 servers with a package). Full comparison.