Execute a SELECT query on the database with built-in safety validations. Supports query validation, parameter binding, row limit enforcement, and returns results formatted as dictionaries.
List all available tables in the database with their names.
Get detailed schema information for a specific table, including column names and types, NULL constraints, default values, and primary key information.
SQLite Explorer offers a secure way to interact with SQLite databases through a Model Context Protocol interface. Built with the FastMCP framework, it enables language models to explore database schemas and execute read-only queries with robust safety features. The server includes built-in query validation, parameter binding, and row limit enforcement to ensure secure database access. With tools for listing tables, describing schemas, and executing SELECT queries, it provides comprehensive database exploration capabilities while maintaining strict read-only access.
SQLite Explorer provides a secure interface for language models to interact with SQLite databases. This tool enables exploration of database schemas and execution of read-only queries with comprehensive safety features.
Install Dependencies
pip install -r requirements.txt
Key dependencies include:
Configure Environment
Set the path to your SQLite database:
export SQLITE_DB_PATH=/path/to/your/database.db
Installation Options
Option 1: For Claude Desktop
Install using FastMCP:
fastmcp install sqlite_explorer.py --name "SQLite Explorer" -e SQLITE_DB_PATH=/path/to/db
Option 2: For Cline VSCode Plugin
Add the configuration to your Cline VSCode plugin settings (see installation JSON below).
Once installed, you can use the SQLite Explorer to:
-- List all tables
list_tables()
-- Describe a specific table
describe_table("users")
-- Execute a simple query
read_query("SELECT * FROM users LIMIT 10")
-- Execute a query with parameters
read_query("SELECT * FROM users WHERE age > ?", [25])
SQLite Explorer implements several safety measures:
If you encounter issues: