# wgong-sqlite-mcp-server [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/wgong/sqlite-mcp-server  
**GitHub Stars:** 1  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/wgong-sqlite-mcp-server

## Description
Explore, query, and inspect SQLite databases with ease. List tables, preview results, and view det…

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/wgong/sqlite-mcp-server), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
pip install -r requirements.txt
```

2. Install:

```sh
pip install fastmcp
```

3. Install:

```sh
SQLITE_DB_PATH=/Users/owner/claude-code/agentic-ai-learnings/hw3/sqlite-explorer-fastmcp-mcp-server/financial_data.db fastmcp install sqlite_explorer.py --name "SQLite Explorer"
```

4. Add to your MCP client:

```sh
SQLITE_DB_PATH=/Users/owner/claude-code/agentic-ai-learnings/hw3/sqlite-explorer-fastmcp-mcp-server/financial_data.db fastmcp claude-desktop add sqlite_explorer.py --name "SQLite Explorer"
```

## Documentation

## What wgong-sqlite-mcp-server MCP server does

The wgong-sqlite-mcp-server MCP server lets an MCP client inspect and query a SQLite database. It is designed for read-only access: the documented query tool runs SELECT statements, while the other tools expose database metadata.

Typical requests include listing the available tables, checking a table's columns and structure, previewing the first rows, counting records, filtering transactions, or calculating an average.

## How it works

The server runs as a Python FastMCP application and reads the database location from `SQLITE_DB_PATH`. FastMCP commands can run the application directly, inspect its MCP interface, install it for Claude Desktop, or launch a development interface. The documented server exposes three tools and no prompts, resources, or resource templates:

- `list_tables` finds tables in the configured database.
- `describe_table` returns the structure of a selected table.
- `read_query` executes a SELECT query against the database.

Local testing can use FastMCP's inspector or development command. A locally running instance can be accessed through a localhost MCP interface; a deployed instance would use its own host and port.

## Setup and configuration

Install the Python dependencies from `requirements.txt`, and install FastMCP if it is not already available:

```bash
pip install -r requirements.txt
pip install fastmcp
```

Set `SQLITE_DB_PATH` to the SQLite file before starting the server. For example:

```bash
SQLITE_DB_PATH=/path/to/database.db fastmcp run sqlite_explorer.py
```

The path must point to an existing database file. The repository recommends checking the file with `ls` and testing it directly with the `sqlite3` command-line tool if startup or query behavior is unclear.

For Cline in VS Code, the documented configuration launches FastMCP through `uv` and passes `SQLITE_DB_PATH` in the process environment. Claude Desktop can be configured with FastMCP's installation command. Smithery playground use also requires the database path to be defined before launching the playground.

## Tools and capabilities

The wgong-sqlite-mcp-server MCP server provides metadata inspection and read queries rather than database mutation. `list_tables` is useful as a first step when the schema is unfamiliar. `describe_table` helps an agent determine available columns before composing a query. `read_query` supports questions that can be expressed as SELECT statements, such as retrieving sample rows, filtering records, grouping counts, or calculating aggregate values.

The documented examples focus on financial data, including transactions over a specified amount and average transaction values, but the tools operate on the configured SQLite database rather than a fixed dataset.

## Limitations and notes

The server is described as read-only, so it should not be selected when an agent needs INSERT, UPDATE, DELETE, schema changes, or other write operations. The database path is supplied locally through an environment variable, and the setup examples use local filesystem paths.

The README includes example Smithery URLs and localhost inspector URLs for testing. These are deployment or session examples, not a general hosted endpoint. Confirm that the configured database exists and that the process has access to it before troubleshooting MCP connectivity.

_Full upstream README: https://allmcps.com/mcp/wgong-sqlite-mcp-server/readme_

