Back to Home
lksrpp icon

sqlite-mcp-server

Verified Safe

by lksrpp

Overview

Enables LLMs to interact with SQLite databases through read-only tools for schema inspection and SQL query execution.

Installation

Run Command
uv run sqlite_mcp_server.py

Security Notes

The server implements robust validation for the 'query' tool, explicitly checking that queries start with 'SELECT' or 'WITH' and blocking a comprehensive list of forbidden keywords (e.g., INSERT, UPDATE, DELETE, DROP) using word boundaries to prevent write operations and common SQL injection vectors. The 'describe_table' tool also pre-validates table names against 'sqlite_master' using parameterized queries before executing PRAGMA commands. While the 'query' tool executes raw SQL (after validation) rather than using parameterized queries for user-supplied SQL, the strict read-only enforcement significantly mitigates major risks.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens450
Stars0
Forks0
Last Update2025-11-27

Tags

SQLiteLLMMCPDatabasePythonAsync