Back to Home
rb58853 icon

sqlite-mcp-server

Verified Safe

by rb58853

Overview

Exposes read-only SQL query tools for SQLite databases via a FastAPI server, primarily for interaction with Large Language Models.

Installation

Run Command
python3 -m src.main --mode http-stream --host 0.0.0.0 --port 8080

Environment Variables

  • MASTER_TOKEN
  • DATABASE_ABSOLUTE_PATH

Security Notes

The server implements strong security measures: it enforces SELECT-only SQL queries at the code level, rejecting any non-SELECT statements. Token-based authentication via `MASTER_TOKEN` is mandatory for API access. SQL queries are executed directly after the SELECT-only validation. While direct execution always carries a slight risk (e.g., performance-heavy SELECTs), the strict `SELECT` enforcement significantly mitigates SQL injection and database modification risks. Tool descriptions explicitly guide LLMs to generate safe queries. No hardcoded secrets or 'eval' found.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens500
Stars0
Forks0
Last Update2025-12-11

Tags

SQLiteFastAPIFastMCPSQLLLM-ToolsAuthentication