Integrations
Allows to connect to an SQLite database and query log data through the Model Context Protocol (MCP) server
Log Analysis with SQLite MCP Server
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
Place log files in the folder as .gz files, then run:
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
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:
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables querying log data stored in SQLite databases through the Model Context Protocol, allowing natural language interactions with log analysis.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityAgentic tool that looks for statistical variations in conversation structure and logs unusual events to a SQLite database. Built using the Model Context Protocol (MCP), this system is designed to be used with Claude Desktop or other MCP-compatible clients.Last updated -83PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that provides database interaction capabilities through SQLite, enabling users to run SQL queries, analyze business data, and automatically generate business insight memos.Last updated -69TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server implementation that enables AI assistants to execute SQL queries and interact with SQLite databases through a structured interface.Last updated -6TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that enables SQL operations (SELECT, INSERT, UPDATE, DELETE) and table management through a standardized interface with SQLite databases.Last updated -JavaScript