
ascii766164696d/log-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
ascii766164696d/log-mcp는 [[T0]에서 가져온 MCP 서버 후보입니다.
개요
ascii766164696d/log-mcp는 [[T0]에서 가져온 MCP 서버 후보입니다.
개요(AI 번역)
로그 파일 분석을 위한 MCP 서버. LLM이 큰 로그 파일을 맥락에 불러오지 않고도 효율적으로 분석할 수 있는 기능을 제공합니다.
이 도구는 AI를 위해 설계된 것이지, 인간을 위한 것이 아닙니다. 어떤 인간도 analyze_errors 또는 [compare_logs의 출력을 읽지 않습니다 — 클로드가 읽고, 이를 더 압축한 뒤 인간에게 평범한 영어 답변을 줍니다. 인간은 두 가지 끝점을 만집니다: “이 로그에 무슨 문제가 있나요?” 입력, 자연어 답변 종료. 그 사이의 모든 것은 AI가 스스로와 대화하는 것입니다.
도구
| 도구 | 설명 |
|---|---|
log_overview |
빠른 스캔: 크기, 줄 수, 시간 범위, 레벨 분포, 머리/꼬리 샘플 |
search_logs |
정규식, 로그 수준, 및/또는 시간 범위로 검색 |
get_log_segment |
라인 범위 또는 시간 범위별로 세그먼트를 추출합니다 |
analyze_errors |
지문으로 오류 중복 제거, 빈도 카운트, 스택 트레이스 추출 |
log_stats |
볼륨 히스토그램, 레벨 분포, 반복 패턴 |
compare_logs |
각 파일에 고유한 패턴과 파일 내 빈도 이상치를 찾아보세요 |
classify_lines |
ML 분류기(TF-IDF → BERT)는 흥미로운 선과 잡음을 구분합니다. |
주요 특징
- ML 프리필터 — Rust TF-IDF 분류기가 1에서 파일을 스캔합니다.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
log-mcp
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.
Tools
| 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 |
Key features
- ML pre-filter — a Rust TF-IDF classifier scans files at 1.3M lines/sec, so
analyze_errorsandsearch_logsonly 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. - Auto-detection of log formats: JSON, standard text (
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) - Normalization collapses variable parts (UUIDs, hex IDs, IPs, numbers) so that messages differing only in IDs or timestamps are grouped as the same pattern
- Content-based error detection falls back to regex heuristics (
fatal:,Permission denied,##[error], etc.) when log files lack standard levels - Prefix-aware comparison distinguishes patterns from different job steps in CI logs
Install
Prerequisites (fresh Mac):
brew install python uv
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"log-mcp": {
"command": "uv",
"args": ["run", "--directory", "/path/to/log-mcp", "log-mcp"]
}
}
}