Give your team a safe way to read and update a local SQLite database without exposing raw SQL. It is useful for quick business questions, reporting, and light data entry where you want control and auditability.
The setup uses an MCP Server trigger that offers five tools. Two tools list and describe tables using read only code. Three tools handle read, create, and update with a routed call into an internal execution trigger. A switch node directs the request to the right code block. Each code node builds queries from parameters, not raw SQL, and runs them with the sqlite3 library against a local file. This design reduces risk, keeps structure consistent, and returns clean results to the client.
Self hosted n8n is required because the database file is on disk. Point the code nodes to your SQLite path and enable authentication on the server trigger before going live. Expect faster answers for common data requests, fewer risky queries, and less manual SQL. Great for internal BI lookups, simple record updates, and controlled data capture.