correlate_request
Reconstruct a distributed trace by collecting all log events matching a trace/request ID across multiple NDJSON files, sorted chronologically.
Triage a multi-gigabyte NDJSON log without ever loading it into memory.
LABSCO SUMMARY
The agent never sees the whole file — it asks for a window, a pattern or a trace ID, and the server streams past everything else. That is the difference between 'the log is too big to read' and an answer about what happened in the minute the errors spiked.
A streaming NDJSON log reader: it filters by field, buckets errors by time window to find spikes, summarises severity over time, and reassembles a single request's events across files.
A local NDJSON log file and Node. Published on npm as ndjson-local-log-triage-mcp.
One command — npx -y ndjson-local-log-triage-mcp
USE CASES
The timeline shows where errors cluster; the Z-score check names the windows that are genuinely anomalous rather than merely busy.
Give it the trace or request ID and it collects the events from every file they landed in.
Filter by field and value and take the top matches, without the file ever being read into memory.
Discover the schema first so the filters you write match fields that exist.
Pass a line-start pattern and the multiline entries come back whole instead of being dropped by the parser.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
correlate_requestReconstruct a distributed trace by collecting all log events matching a trace/request ID across multiple NDJSON files, sorted chronologically.
detect_error_anomaliesZ-score frequency analysis to find sudden error spikes by time window.
query_log_patternFilter NDJSON log file by field/value pattern, return top N matching entries.
summarize_log_timelineChronological severity aggregation — errors, warnings, and info counts per time window.
BEFORE YOU INSTALL
4 tools when we connected.
npx on PATH
CONTEXT COST
Rated by the size of the 4 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"ndjson-local-log-triage-mcp": {
"command": "npx",
"args": [
"-y",
"ndjson-local-log-triage-mcp"
]
}
}
}npx -y ndjson-local-log-triage-mcp