get_log_segment
Extract a segment by line range or time range
How to use it
get_log_segment is exposed by the Log MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_log_segment tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Log MCP
claude mcp add log-mcp -- uv run --directory $(pwd) log-mcpOther tools in Log MCP (6)
Deduplicate errors by fingerprint, count frequencies, extract stack traces
ML classifier (TF-IDF → BERT) separates interesting lines from noise
Find patterns unique to each file and frequency outliers across files
Quick scan: size, line count, time range, level distribution, head/tail samples
Volume histogram, level breakdown, top repeated patterns
Search by regex, log level, and/or time range