Log Analysis SQLite
БесплатноНе проверенTransforms compressed log files into a queryable SQLite database with tables for logs, stack traces, and errors, enabling efficient analysis and troubleshooting
Описание
Transforms compressed log files into a queryable SQLite database with tables for logs, stack traces, and errors, enabling efficient analysis and troubleshooting of application issues by timestamp, log level, and module.
README
This project provides tools to create an SQLite database from compressed log files and interact with it using the Model Context Protocol (MCP) SQLite server.
Install instructions
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
Place log files in the folder as .gz files, then run:
python3 create_log_db.py
MCP SQLite Server
To configure the MCP SQLite server in Cursor-
- Cursor Settings
- MCP
- Add New MCP Server
- Name
SQLlite - Set the type to
command - Put this in the command box
npx -y @smithery/cli@latest run mcp-server-sqlite-npx --config "{\"databasePath\":\"/path/to/thedatbase/logs.db\"}"
Contents
create_log_db.py: Script to extract and parse log files into an SQLite databasequery_logs.py: Script to directly query the SQLite databaselogs.db: SQLite database containing parsed log data
Database Structure
The database contains the following tables:
logs Table
id: Unique identifier for each log entrytimestamp: Timestamp of the log entrythread: Thread that generated the loglevel: Log level (INFO, WARN, ERROR, DEBUG)module: Module that generated the logmessage: Log message contentsource_file: Source log fileraw_log: Raw log entry
stack_traces Table
id: Unique identifier for each stack tracelog_id: Reference to the log entry this stack trace belongs tostack_trace: Full stack trace text
parsing_errors Table
id: Unique identifier for each parsing errorline: The line that couldn't be parsedsource_file: Source log fileerror_message: Error message explaining why parsing failedtimestamp: When the parsing error occurred
You can query the database directly using the query_logs.py script:
Установка Log Analysis SQLite
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/direkt/mcp-testFAQ
Log Analysis SQLite MCP бесплатный?
Да, Log Analysis SQLite MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Log Analysis SQLite?
Нет, Log Analysis SQLite работает без API-ключей и переменных окружения.
Log Analysis SQLite — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Log Analysis SQLite в Claude Desktop, Claude Code или Cursor?
Открой Log Analysis SQLite на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Log Analysis SQLite with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
