SQLite Explorer

v1.0.0โ€ขDatabasesโ€ขstable

๐Ÿ ๐Ÿ  - 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

database-toolsllm-integrationllm-toolsmcppython
Share:
105
Stars
0
Downloads
0
Weekly
0/5

What is SQLite Explorer?

SQLite Explorer is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to ๐Ÿ ๐Ÿ  - 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 ...

๐Ÿ ๐Ÿ  - 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

This server falls under the Databases category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • ๐Ÿ ๐Ÿ  - An MCP server that provides safe, read-only access to

Use Cases

Safe SQLite database access
Database exploration tools
Query execution interface
hannesrudolph

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedApr 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx sqlite-explorer-fastmcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use SQLite Explorer

SQLite Explorer is a Python MCP server built with the FastMCP framework that provides safe, read-only access to SQLite databases. It exposes three tools โ€” read_query, list_tables, and describe_table โ€” with built-in protections including SQL query validation and sanitization, parameter binding, and enforced row limits to prevent runaway queries. It is designed for developers and data analysts who want to let an AI model explore and query a SQLite database without risking accidental writes or deletions.

Prerequisites

  • Python 3.10+ installed
  • uv package manager installed (pip install uv or brew install uv)
  • A SQLite database file (.db) you want to explore
  • Claude Desktop or another FastMCP-compatible MCP client
  • Git to clone the repository
1

Clone the repository

Clone the sqlite-explorer-fastmcp-mcp-server repository to your local machine.

git clone https://github.com/hannesrudolph/sqlite-explorer-fastmcp-mcp-server.git
cd sqlite-explorer-fastmcp-mcp-server
2

Install dependencies with uv

Install the required Python packages including fastmcp using uv.

uv sync
# or install fastmcp directly:
pip install fastmcp
3

Identify your SQLite database path

Note the full absolute path to the SQLite database file you want to explore. This will be passed as the SQLITE_DB_PATH environment variable.

# Example paths:
# macOS/Linux: /Users/yourname/data/myapp.db
# Windows: C:\Users\yourname\data\myapp.db
4

Install with FastMCP for Claude Desktop

Use the fastmcp install command to register the server with Claude Desktop automatically.

fastmcp install sqlite_explorer.py --name "SQLite Explorer" -e SQLITE_DB_PATH=/path/to/your/database.db
5

Or configure manually in Claude Desktop

Alternatively, add the server manually to your Claude Desktop config file using uv to run the server.

6

Verify the connection

Restart Claude Desktop and ask it to list the tables in your database to confirm the server is working correctly.

SQLite Explorer Examples

Client configuration

Claude Desktop or Cline VSCode configuration for the SQLite Explorer server. Set SQLITE_DB_PATH to the absolute path of your database file.

{
  "mcpServers": {
    "sqlite-explorer": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "fastmcp",
        "fastmcp",
        "run",
        "/path/to/sqlite-explorer-fastmcp-mcp-server/sqlite_explorer.py"
      ],
      "env": {
        "SQLITE_DB_PATH": "/path/to/your/database.db"
      }
    }
  }
}

Prompts to try

Example prompts to explore your SQLite database once the server is connected.

- "List all the tables in my database."
- "Describe the schema of the users table, including column names, types, and constraints."
- "How many rows are in the orders table?"
- "Show me the 10 most recent records from the events table, ordered by created_at descending."
- "What are the distinct values in the status column of the orders table?"

Troubleshooting SQLite Explorer

Server fails with 'SQLITE_DB_PATH not set' or database not found error

Ensure the SQLITE_DB_PATH environment variable is set to the full absolute path of your .db file in the env block of your MCP config. Relative paths will not work. Verify the file exists with `ls -la /path/to/your/database.db`.

Write queries (INSERT, UPDATE, DELETE) are rejected

This is by design โ€” the server only allows SELECT statements. The read_query tool validates all SQL and will reject any non-SELECT statement. This is a safety feature to protect your data.

uv command not found when starting the server

Install uv with `pip install uv` or on macOS with `brew install uv`. Then ensure uv is in your PATH by running `which uv`. You may need to restart your terminal or MCP client after installation.

Frequently Asked Questions about SQLite Explorer

What is SQLite Explorer?

SQLite Explorer is a Model Context Protocol (MCP) server that ๐Ÿ ๐Ÿ  - 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 It connects AI assistants to external tools and data sources through a standardized interface.

How do I install SQLite Explorer?

Follow the installation instructions on the SQLite Explorer GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with SQLite Explorer?

SQLite Explorer works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is SQLite Explorer free to use?

Yes, SQLite Explorer is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Databases MCP Servers

Explore all databases servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "sqlite-explorer-fastmcp": { "command": "npx", "args": ["-y", "sqlite-explorer-fastmcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide โ†’

Ready to use SQLite Explorer?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides