sqlite-explorer-fastmcp-mcp-server
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.
Documentation

SQLite Explorer MCP Server
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.
๐ System Requirements
- Python 3.6+
- SQLite database file (path specified via environment variable)
๐ฆ Dependencies
Install all required dependencies:
# Using pip
pip install -r requirements.txtRequired Packages
- fastmcp: Framework for building Model Context Protocol servers
All dependencies are specified in `requirements.txt` for easy installation.
๐ Table of Contents
- System Requirements
- Dependencies
- MCP Tools
- Getting Started
- Installation Options
- Safety Features
- Development Documentation
- Environment Variables
๐ ๏ธ MCP Tools
The server exposes the following tools to LLMs:
read_query
Execute a SELECT query on the database with built-in safety validations. Features:
- Query validation and sanitization
- Parameter binding support
- Row limit enforcement
- Results formatted as dictionaries
list_tables
List all available tables in the database with their names.
describe_table
Get detailed schema information for a specific table, including:
- Column names and types
- NULL constraints
- Default values
- Primary key information
๐ Getting Started
Clone the repository:
git clone https://github.com/hannesrudolph/sqlite-explorer-fastmcp-mcp-server.git
cd sqlite-explorer-fastmcp-mcp-server๐ฆ Installation Options
You can install this MCP server in either Claude Desktop or the Cline VSCode plugin. Choose the option that best suits your needs.
Option 1: Install for Claude Desktop
Install using FastMCP:
fastmcp install sqlite_explorer.py --name "SQLite Explorer" -e SQLITE_DB_PATH=/path/to/dbReplace `/path/to/db` with the path to your SQLite database file.
Option 2: Install for Cline VSCode Plugin
To use this server with the Cline VSCode plugin:
1. In VSCode, click the server icon (โฐ) in the Cline plugin sidebar
2. Click the "Edit MCP Settings" button (โ)
3. Add the following configuration to the settings file:
{
"sqlite-explorer": {
"command": "uv",
"args": [
"run",
"--with",
"fastmcp",
"--with",
"uvicorn",
"fastmcp",
"run",
"/path/to/repo/sqlite_explorer.py"
],
"env": {
"SQLITE_DB_PATH": "/path/to/your/database.db"
}
}
}Replace:
- `/path/to/repo` with the full path to where you cloned this repository (e.g., `/Users/username/Projects/sqlite-explorer-fastmcp-mcp-server`)
- `/path/to/your/database.db` with the full path to your SQLite database file
๐ Safety Features
- Read-only access to SQLite databases
- Query validation and sanitization
- Parameter binding for safe query execution
- Row limit enforcement
- Progress output suppression for clean JSON responses
๐ Development Documentation
The repository includes documentation files for development:
- `mcp-documentation.txt`: Contains comprehensive documentation about the MCP server implementation and FastMCP framework usage.
This documentation serves as context when developing features and can be used with LLMs to assist in development.
โ๏ธ Environment Variables
The following environment variables must be set:
- `SQLITE_DB_PATH`: Full path to the SQLite database file you want to explore
Frequently asked questions
What is sqlite-explorer-fastmcp-mcp-server?
sqlite-explorer-fastmcp-mcp-server is 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.
How do I install sqlite-explorer-fastmcp-mcp-server?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is sqlite-explorer-fastmcp-mcp-server open source?
Yes โ it is hosted on GitHub at https://github.com/hannesrudolph/sqlite-explorer-fastmcp-mcp-server and has 91 stars.
Related MCP tools
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
๐ The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.
Build effective agents using Model Context Protocol and simple workflow patterns Python-based implementation. Trusted by 7600+ developers.
LangChain ๐ MCP Python-based implementation. Trusted by 3000+ developers. Trusted by 3000+ developers. Trusted by 3000+ developers.
AI conversations that actually remember. Never re-explain your project to Claude again. Local-first, integrates with Obsidian.
๐Web Agent Protocol (WAP) - Record and replay user interactions in the browser with MCP support Python-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP