Log Ai Optimizer
БесплатноНе проверенCompresses log files into templates and statistics using Drain3, and exposes them to AI assistants via an MCP server for efficient log monitoring and anomaly de
Описание
Compresses log files into templates and statistics using Drain3, and exposes them to AI assistants via an MCP server for efficient log monitoring and anomaly detection.
README
Compresses log files into templates + stats (via Drain3) and exposes them to Claude through an MCP server, so AI log monitoring reads compact stats instead of raw lines.
Install
python -m venv .venv
.venv/Scripts/activate # or: source .venv/bin/activate
pip install -r requirements.txt
pip install -e . --no-deps
Configure
cp config.example.yaml config.yaml
Edit config.yaml: list the log file paths to tail, plus DB path and sampling caps.
Run
Start ingestion (tails files, mines templates, writes to SQLite — keep this running):
log-ai-optimizer ingest config.yaml
In a separate process, run the MCP query server (stdio transport):
log-ai-optimizer serve config.yaml
To use it from Claude Desktop/Code, add it as an MCP server pointing at that command, e.g.:
{
"mcpServers": {
"log-ai-optimizer": {
"command": "log-ai-optimizer",
"args": ["serve", "/path/to/config.yaml"]
}
}
}
MCP tools
list_sources()— sources with template/line countsget_template_stats(source_id, since?)— templates sorted by countget_anomalies(source_id, window_minutes)— templates new or spiking vs. prior windowdrill_down(template_id, limit)— sample raw params for a templatesearch_templates(query, source_id?)— substring search over templates
Dev
pip install -r requirements-dev.txt
pip install -e . --no-deps
pytest
See log-compress-spec.md for the full design.
Установка Log Ai Optimizer
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/JustinHabashi/log-ai-optimizerFAQ
Log Ai Optimizer MCP бесплатный?
Да, Log Ai Optimizer MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Log Ai Optimizer?
Нет, Log Ai Optimizer работает без API-ключей и переменных окружения.
Log Ai Optimizer — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Log Ai Optimizer в Claude Desktop, Claude Code или Cursor?
Открой Log Ai Optimizer на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Log Ai Optimizer with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
