Sqlite Explorer Fastmcp MCP Server logo

Sqlite Explorer Fastmcp MCP Server

by hannesrudolph

Read-only SQLite exploration over MCP with validated SELECT queries, table listings, and schema details.

Install Sqlite Explorer Fastmcp MCP Server

Run the project’s own setup commands, in order.

Setup steps from the project

hannesrudolph/sqlite-explorer-fastmcp-mcp-server installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    pip install -r requirements.txt
    
  2. 2. Install
    git clone https://github.com/hannesrudolph/sqlite-explorer-fastmcp-mcp-server.git
    
  3. 3. Run
    cd sqlite-explorer-fastmcp-mcp-server
    
  4. 4. Add to your MCP client
    fastmcp install sqlite_explorer.py --name "SQLite Explorer" -e SQLITE_DB_PATH=/path/to/db
    

Overview

hannesrudolph/sqlite-explorer-fastmcp-mcp-server MCP server gives LLMs read-only access to a SQLite database through FastMCP. It exposes tools for validated SELECT queries, table enumeration, and table schema inspection. Query execution supports parameter binding, result row limits, sanitization, and dictionary-formatted results. Use it when an agent needs to inspect SQLite data without write access.

Use cases

  • Inspect an SQLite database schema
  • Run read-only SELECT queries
  • List tables in a database file
  • Retrieve bounded query results for an agent

Key features

  • Read-only SQLite access
  • Validated and sanitized SELECT queries
  • Parameter binding support
  • Table and schema inspection
  • Row limit enforcement
  • Dictionary-formatted results

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

32/32 checks healthy over the last 118d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars106Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Sqlite Explorer Fastmcp MCP Server works

What hannesrudolph/sqlite-explorer-fastmcp-mcp-server does

hannesrudolph/sqlite-explorer-fastmcp-mcp-server exposes a SQLite database to MCP-compatible clients through a small set of read-only tools. It is intended for agents that need to inspect database structure and retrieve data without performing inserts, updates, deletes, or other write operations.

The server provides three tools:

  • read_query runs a SELECT statement and returns rows as dictionaries. It includes query validation and sanitization, supports bound parameters, and enforces a row limit.
  • list_tables returns the names of tables available in the configured database.
  • describe_table reports schema details for a selected table, including column names, data types, NULL constraints, default values, and primary-key information.

These capabilities make the project suitable for read-only data exploration, schema discovery, and answering questions about an existing SQLite file.

How it works

The server is implemented with the FastMCP framework and communicates through the Model Context Protocol. A database file is selected with the SQLITE_DB_PATH environment variable. When the tools are called, the server uses that configured file as the database it explores.

Safety controls are part of the query path. Access is read-only, SELECT queries are validated and sanitized, parameters can be bound instead of interpolated into SQL, and returned rows are subject to a limit. Progress output is suppressed so responses remain clean for MCP clients.

The repository requires Python 3.6 or newer and lists FastMCP and other dependencies in requirements.txt. The database itself is supplied separately as a filesystem path.

Setup and configuration

Clone the repository, install the dependencies with pip install -r requirements.txt, and set SQLITE_DB_PATH to the full path of the SQLite database. The documented FastMCP installation command can register the server for Claude Desktop while passing this variable directly:

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

Replace both the repository path and database path with values from the local environment.

hannesrudolph/sqlite-explorer-fastmcp-mcp-server requires the database path to be configured before the tools can identify or query a file.

Tools and capabilities

Use list_tables before querying when the database structure is unknown. Follow it with describe_table to inspect available columns, types, constraints, defaults, and primary keys. Use read_query for read-only data retrieval with a SELECT statement and, where needed, bound parameters.

Results from read_query are formatted as dictionaries, which gives an MCP client structured column-value pairs rather than an unstructured text result. The row limit helps constrain the amount of returned data, while validation and sanitization reduce the risk of unsupported or unsafe query execution.

Limitations and notes

The server is read-only and is designed for SQLite database files; it does not provide documented mutation tools. Its documented query interface is read_query for SELECT statements, not general-purpose SQL execution. A valid SQLite file path must be available through SQLITE_DB_PATH.

It does not specify database write support, remote database connections, authentication, or a configurable row-limit environment variable. The repository also includes mcp-documentation.txt with implementation and FastMCP development notes.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Sqlite Explorer Fastmcp MCP Server

hannesrudolph/sqlite-explorer-fastmcp-mcp-server is an MCP server that connects LLMs to a configured SQLite database through FastMCP. Its main tools list tables, describe table schemas, and execute validated read-only SELECT queries with parameter binding, row limits, and dictionary-formatted results.

Install it by cloning the repository, installing dependencies from requirements.txt, and configuring SQLITE_DB_PATH with the database file path. For Claude Desktop, use the documented fastmcp install command; for Cline, add the provided command and environment configuration to its MCP settings.

Yes, it can be used with Cursor when configured as a standard MCP server, although the README specifically documents setup instructions for Claude Desktop and the Cline VS Code plugin rather than Cursor-specific configuration.

Set the SQLITE_DB_PATH environment variable to the full path of the SQLite database file. The variable can be passed with the FastMCP installation command or placed in the MCP client's environment configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSqlite Explorer Fastmcp MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hannesrudolph-sqlite-explorer-fastmcp-mcp-server?style=directory)](https://allmcps.com/mcp/hannesrudolph-sqlite-explorer-fastmcp-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/hannesrudolph-sqlite-explorer-fastmcp-mcp-server"><img src="https://allmcps.com/api/badge/hannesrudolph-sqlite-explorer-fastmcp-mcp-server?style=directory" alt="Sqlite Explorer Fastmcp MCP Server on AllMCPs" /></a>