SQLite MCP Server
Allows to connect to an SQLite database and query log data through the Model Context Protocol (MCP) server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SQLite MCP Servershow me all ERROR logs from the last 24 hours"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.txtPlace log files in the folder as .gz files, then run:
python3 create_log_db.py Related MCP server: SQLite MCP Server
MCP SQLite Server
To configure the MCP SQLite server in Cursor-
Cursor Settings
MCP
Add New MCP Server
Name
SQLliteSet the type to
commandPut 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:
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceImplements a Model Context Protocol server that enables natural language interactions with SQLite databases, providing tools to list tables, retrieve schemas, count rows, and execute read-only SQL queries.Last updatedMIT
- Alicense-qualityDmaintenanceEnables AI assistants to interact with SQLite databases by executing read and write queries, listing tables, and inspecting schemas. It provides a secure, local interface for database management and data retrieval through the Model Context Protocol.Last updated2MIT
- Flicense-qualityCmaintenanceEnables AI agents to query databases via natural language using the Model Context Protocol, with automatic schema discovery, SQL query execution, and read-only safety checks.Last updated
- Flicense-qualityCmaintenanceEnables AI agents to connect to and query an SQLite database through the Model Context Protocol, allowing natural language interaction with database tables and data.Last updated
Related MCP Connectors
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/direkt/mcp-test'
If you have feedback or need assistance with the MCP directory API, please join our Discord server