sqlite-mcp-server
Verified Safeby rb58853
Overview
Exposes read-only SQL query tools for SQLite databases via a FastAPI server, primarily for interaction with Large Language Models.
Installation
python3 -m src.main --mode http-stream --host 0.0.0.0 --port 8080Environment 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
sqlite-mcp
A Model Context Protocol (MCP) server that enables LLMs to interact with SQLite databases by providing tools and resources for querying and managing data.
Dynamic-Smart-MCP
An intelligent FastMCP 2 server that converts natural language questions into SQL queries or API requests for any SQL database or OpenAPI-defined API using AI.
enterprise_mcp_server
Provides a robust, multi-component Model Context Protocol (MCP) solution with an API Gateway for routing and management, an Enterprise MCP Server for core services like authentication and tool administration, and a Tool Server for operational tool execution, designed for integration with clients like Cursor and Claude Code.
db-mcp
An enterprise-grade Model Context Protocol (MCP) server providing advanced database operations, AI-native functionalities like vector search, and OAuth 2.1 authentication for SQLite databases.