MCP server for log file analysis
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"log-mcp": {
"args": [
"run",
"--directory",
"/path/to/log-mcp",
"log-mcp"
],
"command": "uv"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
MCP server for log file analysis. Gives LLMs the ability to efficiently analyze large log files without loading them into context.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in devops
MCP server for using the GitLab API
Yunxiao MCP Server provides AI assistants with the ability to interact with the Yunxiao platform. It provides a set of tools that interact with Yunxiao's API, allowing AI assistants to manage Codeup repository, Project, Pipeline, Packages etc.
Enhanced MCP server for GitLab: group projects listing and activity tracking
MCP Server for kubernetes management commands
MCP Security Weekly
Get CVE alerts and security updates for Log Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
MCP server for log file analysis. Gives LLMs the ability to efficiently analyze large log files without loading them into context.
Log file (e.g. 705K lines, 67 MB)
│
▼
Rust TF-IDF classifier ─── 1.3M lines/sec ──▶ 70-95% discarded as routine,
│ finds lines that are semantically interesting,
│ also captures lines not explicitly marked as ERROR
│ (grep ERROR: 2 lines, classifier: 92)
▼
BERT-mini (optional) ───── GPU, ~2K lines/sec ─▶ refines interest scores on found lines
│
▼
Python MCP tools ────────── search, compare, group errors
│
▼
LLM (Claude) ───────────── compresses tool output into plain English
This is a tool designed for AI, not humans. No human reads the output of analyze_errors or compare_logs — Claude does, compresses it further, and gives the human a plain English answer. The human touches two endpoints: "what's wrong with this log?" in, natural language answer out. Everything in between is AI talking to itself.
| Tool | Description |
|---|---|
log_overview | Quick scan: size, line count, time range, level distribution, head/tail samples |
search_logs | Search by regex, log level, and/or time range |
get_log_segment | Extract a segment by line range or time range |
analyze_errors | Deduplicate errors by fingerprint, count frequencies, extract stack traces |
log_stats | Volume histogram, level breakdown, top repeated patterns |
compare_logs | Find patterns unique to each file and frequency outliers across files |
classify_lines | ML classifier (TF-IDF → BERT) separates interesting lines from noise |
analyze_errors and search_logs only process the 5-30% of lines that matter. Optional BERT-mini re-scores LOOK lines at ~2K lines/sec on Metal GPU for higher precision. Works without parsed log levels — catches errors, security events, hardware faults, and anomalies that don't have ERROR in them.2024-01-15 10:30:45 ERROR ...), syslog, Spark/Log4j (17/06/08 13:33:49 INFO ...), and tab/pipe-delimited formats (GitHub Actions CI logs)fatal:, Permission denied, ##[error], etc.) when log files lack standard levelsPrerequisites (fresh Mac):
brew install python uv
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Open a Claude Code session and paste this prompt:
Install https://github.com/ascii766164696D/log-mcp as an MCP server and build the Rust classifier too
Claude will clone the repo, register the MCP server, and build the Rust classifier. Restart Claude Code after to pick up the new server.
git clone https://github.com/ascii766164696D/log-mcp.git
cd log-mcp
# Register the MCP server
claude mcp add log-mcp -- uv run --directory $(pwd) log-mcp
# Build the Rust classifier (optional — tools fall back to Python without it)
uv pip install -e rust/classifier
Or add it manually to your project settings (claude settings) under mcpServers:
{
"mcpServers": {
"log-mcp": {
"command": "uv",
"args": ["run", "--directory", "/path/to/log-mcp", "log-mcp"]
}
}
}
Open Settings > Developer > Edit Config and add to `claude_desktop_config.json