SQLite MCP Server

SQLite MCP Server

Enables querying log data stored in SQLite databases through the Model Context Protocol, allowing natural language interactions with log analysis.

direkt

Databases
Monitoring
Search
Local
Python
Visit Server

README

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

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 database
  • query_logs.py: Script to directly query the SQLite database
  • logs.db: SQLite database containing parsed log data

Database Structure

The database contains the following tables:

logs Table

  • id: Unique identifier for each log entry
  • timestamp: Timestamp of the log entry
  • thread: Thread that generated the log
  • level: Log level (INFO, WARN, ERROR, DEBUG)
  • module: Module that generated the log
  • message: Log message content
  • source_file: Source log file
  • raw_log: Raw log entry

stack_traces Table

  • id: Unique identifier for each stack trace
  • log_id: Reference to the log entry this stack trace belongs to
  • stack_trace: Full stack trace text

parsing_errors Table

  • id: Unique identifier for each parsing error
  • line: The line that couldn't be parsed
  • source_file: Source log file
  • error_message: Error message explaining why parsing failed
  • timestamp: When the parsing error occurred

You can query the database directly using the query_logs.py script:

Recommended Servers

Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Excel MCP Server

Excel MCP Server

A Model Context Protocol server that enables AI assistants to read from and write to Microsoft Excel files, supporting formats like xlsx, xlsm, xltx, and xltm.

Featured
Local
Go
Playwright MCP Server

Playwright MCP Server

Provides a server utilizing Model Context Protocol to enable human-like browser automation with Playwright, allowing control over browser actions such as navigation, element interaction, and scrolling.

Featured
Local
TypeScript
Claude Code MCP

Claude Code MCP

An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.

Featured
Local
JavaScript
Apple MCP Server

Apple MCP Server

Enables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.

Featured
Local
TypeScript
DuckDuckGo MCP Server

DuckDuckGo MCP Server

A Model Context Protocol (MCP) server that provides web search capabilities through DuckDuckGo, with additional features for content fetching and parsing.

Featured
Python
YouTube Transcript MCP Server

YouTube Transcript MCP Server

This server retrieves transcripts for given YouTube video URLs, enabling integration with Goose CLI or Goose Desktop for transcript extraction and processing.

Featured
Python
Supabase MCP Server

Supabase MCP Server

A Model Context Protocol (MCP) server that provides programmatic access to the Supabase Management API. This server allows AI models and other clients to manage Supabase projects and organizations through a standardized interface.

Featured
JavaScript