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
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.
Install all required dependencies:
# Using pip
pip install -r requirements.txt
All dependencies are specified in requirements.txt for easy installation.
The server exposes the following tools to LLMs:
Execute a SELECT query on the database with built-in safety validations. Features:
List all available tables in the database with their names.
Get detailed schema information for a specific table, including:
Clone the repository:
git clone https://github.com/hannesrudolph/sqlite-explorer-fastmcp-mcp-server.git
cd sqlite-explorer-fastmcp-mcp-server
You can install this MCP server in either Claude Desktop or the Cline VSCode plugin. Choose the option that best suits your needs.
Install using FastMCP:
fastmcp install sqlite_explorer.py --name "SQLite Explorer" -e SQLITE_DB_PATH=/path/to/db
Replace /path/to/db with the path to your SQLite database file.
To use this server with the Cline VSCode plugin:
{
"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 fileThe 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.
The following environment variables must be set:
SQLITE_DB_PATH: Full path to the SQLite database file you want to exploreInstall via CLI
npx mdskills install hannesrudolph/sqlite-explorer-fastmcp-mcp-serverSQLite Explorer MCP Server is a free, open-source AI agent skill. 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
Install SQLite Explorer MCP Server with a single command:
npx mdskills install hannesrudolph/sqlite-explorer-fastmcp-mcp-serverThis downloads the skill files into your project and your AI agent picks them up automatically.
SQLite Explorer MCP Server works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.