An MCP server that provides safe, read-only access to SQLite databases through Model Context Protocol (MCP). This server is built with the FastMCP framework, which enables LLMs to explore and query SQLite databases with built-in safety features and query validation. - Python 3.6+ - SQLite database file (path specified via environment variable) Install all required dependencies: - fastmcp: Framewor
Add this skill
npx mdskills install hannesrudolph/sqlite-explorer-fastmcp-mcp-serverWell-documented MCP server with clear safety features but overly broad permissions for read-only operations
1[](https://mseep.ai/app/hannesrudolph-sqlite-explorer-fastmcp-mcp-server)23# SQLite Explorer MCP Server45An MCP server that provides safe, read-only access to SQLite databases through Model Context Protocol (MCP). This server is built with the FastMCP framework, which enables LLMs to explore and query SQLite databases with built-in safety features and query validation.67## ๐ System Requirements89- Python 3.6+10- SQLite database file (path specified via environment variable)1112## ๐ฆ Dependencies1314Install all required dependencies:1516```bash17# Using pip18pip install -r requirements.txt19```2021### Required Packages22- **fastmcp**: Framework for building Model Context Protocol servers2324All dependencies are specified in `requirements.txt` for easy installation.2526## ๐ Table of Contents27- [System Requirements](#-system-requirements)28- [Dependencies](#-dependencies)29- [MCP Tools](#%EF%B8%8F-mcp-tools)30- [Getting Started](#-getting-started)31- [Installation Options](#-installation-options)32 - [Claude Desktop](#option-1-install-for-claude-desktop)33 - [Cline VSCode Plugin](#option-2-install-for-cline-vscode-plugin)34- [Safety Features](#-safety-features)35- [Development Documentation](#-development-documentation)36- [Environment Variables](#%EF%B8%8F-environment-variables)3738## ๐ ๏ธ MCP Tools3940The server exposes the following tools to LLMs:4142### read_query43Execute a SELECT query on the database with built-in safety validations. Features:44- Query validation and sanitization45- Parameter binding support46- Row limit enforcement47- Results formatted as dictionaries4849### list_tables50List all available tables in the database with their names.5152### describe_table53Get detailed schema information for a specific table, including:54- Column names and types55- NULL constraints56- Default values57- Primary key information5859## ๐ Getting Started6061Clone the repository:6263```bash64git clone https://github.com/hannesrudolph/sqlite-explorer-fastmcp-mcp-server.git65cd sqlite-explorer-fastmcp-mcp-server66```6768## ๐ฆ Installation Options6970You can install this MCP server in either Claude Desktop or the Cline VSCode plugin. Choose the option that best suits your needs.7172### Option 1: Install for Claude Desktop7374Install using FastMCP:7576```bash77fastmcp install sqlite_explorer.py --name "SQLite Explorer" -e SQLITE_DB_PATH=/path/to/db78```7980Replace `/path/to/db` with the path to your SQLite database file.8182### Option 2: Install for Cline VSCode Plugin8384To use this server with the [Cline VSCode plugin](http://cline.bot):85861. In VSCode, click the server icon (โฐ) in the Cline plugin sidebar872. Click the "Edit MCP Settings" button (โ)883. Add the following configuration to the settings file:8990```json91{92 "sqlite-explorer": {93 "command": "uv",94 "args": [95 "run",96 "--with",97 "fastmcp",98 "--with",99 "uvicorn",100 "fastmcp",101 "run",102 "/path/to/repo/sqlite_explorer.py"103 ],104 "env": {105 "SQLITE_DB_PATH": "/path/to/your/database.db"106 }107 }108}109```110111Replace:112- `/path/to/repo` with the full path to where you cloned this repository (e.g., `/Users/username/Projects/sqlite-explorer-fastmcp-mcp-server`)113- `/path/to/your/database.db` with the full path to your SQLite database file114115## ๐ Safety Features116117- Read-only access to SQLite databases118- Query validation and sanitization119- Parameter binding for safe query execution120- Row limit enforcement121- Progress output suppression for clean JSON responses122123## ๐ Development Documentation124125The repository includes documentation files for development:126127- `mcp-documentation.txt`: Contains comprehensive documentation about the MCP server implementation and FastMCP framework usage.128129This documentation serves as context when developing features and can be used with LLMs to assist in development.130131## โ๏ธ Environment Variables132133The following environment variables must be set:134135- `SQLITE_DB_PATH`: Full path to the SQLite database file you want to explore136
Full transparency โ inspect the skill content before installing.