SQLite MCP Server
SQLite MCP サーバーによるログ分析
このプロジェクトは、圧縮されたログ ファイルから SQLite データベースを作成し、Model Context Protocol (MCP) SQLite サーバーを使用してそのデータベースと対話するためのツールを提供します。
インストール手順
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txtログ ファイルを .gz ファイルとしてフォルダーに配置し、次を実行します。
python3 create_log_db.py Related MCP server: SQLite MCP Server
MCP SQLite サーバー
カーソルでMCP SQLiteサーバーを構成するには、
カーソル設定
MCP
新しいMCPサーバーを追加
名前
SQLliteタイプを
commandに設定するこれをコマンドボックスに入れてください
npx -y @smithery/cli@latest run mcp-server-sqlite-npx --config "{\"databasePath\":\"/path/to/thedatbase/logs.db\"}"コンテンツ
create_log_db.py: ログファイルを抽出して解析し、SQLite データベースに保存するスクリプトquery_logs.py: SQLiteデータベースを直接クエリするスクリプトlogs.db: 解析されたログデータを含む SQLite データベース
データベース構造
データベースには次のテーブルが含まれています。
logsテーブル
id: 各ログエントリの一意の識別子timestamp: ログエントリのタイムスタンプthread: ログを生成したスレッドlevel: ログレベル (INFO、WARN、ERROR、DEBUG)module: ログを生成したモジュールmessage: ログメッセージの内容source_file: ソースログファイルraw_log: 生のログエントリ
stack_tracesテーブル
id: 各スタックトレースの一意の識別子log_id: このスタックトレースが属するログエントリへの参照stack_trace: 完全なスタックトレースのテキスト
parsing_errorsテーブル
id: 各解析エラーの一意の識別子line: 解析できなかった行source_file: ソースログファイルerror_message: 解析が失敗した理由を説明するエラーメッセージtimestamp: 解析エラーが発生した時刻
query_logs.pyスクリプトを使用してデータベースを直接クエリできます。
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
- AlicenseNot gradedqualityDmaintenanceImplements 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.MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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.2MIT
- FlicenseNot gradedqualityDmaintenanceEnables 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.
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to connect to and query an SQLite database through the Model Context Protocol, allowing natural language interaction with database tables and data.
Related MCP Connectors
Explore, query, and inspect SQLite databases with ease. List tables, preview results, and view det…
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.
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