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

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

## Description
Explore your Messages SQLite database to browse tables and inspect schemas with ease. Run flexible…

## 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/afgong/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. Start the server:

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

4. Run:

```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"
```

5. 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 afgong-sqlite-mcp-server MCP server does

afgong-sqlite-mcp-server MCP server connects an MCP client to a SQLite database selected through the SQLITE_DB_PATH environment variable. Its documented use case is read-only exploration: an assistant can discover available tables, inspect their columns and structure, and retrieve data with SQL SELECT statements.

The repository demonstrates the server with a financial database, but the database path is configurable. This makes it suitable for asking questions such as which tables exist, how many records they contain, or which transactions exceed a specified amount. SQLite system tables may also appear in table listings; the documentation identifies these as SQLite-created tables rather than application tables.

## How it works

The implementation runs with FastMCP. A local process reads the configured SQLite file and exposes three MCP tools:

- `list_tables` returns the tables available in the database.
- `describe_table` reports the structure of a selected table.
- `read_query` executes a SELECT query and returns results.

The example output reports three tools, with no prompts, resources, or resource templates. The project shows local testing through FastMCP commands, an interactive inspector, and a web-based development interface. It also documents an HTTP-accessible local interface and a Smithery playground URL for a deployed or proxied instance.

## Setup and configuration

Install the Python dependencies from `requirements.txt`, and install FastMCP if it is not already available. Before launching the process, set `SQLITE_DB_PATH` to the SQLite database file you want the server to inspect. The example uses an absolute path to `financial_data.db`; that path is specific to the example and should be replaced with the location of your own file.

For a direct test, run the Python module with `fastmcp run`. FastMCP also provides commands for inspection, installation, development, and adding the server to Claude Desktop. The repository includes a Cline configuration for VS Code that starts FastMCP through `uv` and passes the database path in the `env` object. Smithery playground use likewise requires the environment variable to be defined before starting the playground.

## Tools and capabilities

afgong-sqlite-mcp-server MCP server supports database discovery and read queries rather than general application operations. Its documented capabilities include:

- Listing application and SQLite system tables.
- Inspecting the structure of a named table.
- Running flexible SELECT queries.
- Returning rows for questions such as the first 10 records.
- Supporting aggregate analysis, including counts and averages, through queries.

The examples focus on browsing financial data, but the tools operate against whichever SQLite file is supplied through configuration.

## Limitations and notes

The documented tool set is read-only. There is no stated support for INSERT, UPDATE, DELETE, schema mutation, or other write operations, so use it for inspection and analysis rather than database editing. The server also depends on access to a local SQLite file, and the configured path must exist and be readable.

It mentions Smithery as a deployment option in project notes and shows a playground workflow; hosting, authentication, and production security details are not specified. If the database cannot be found, verify the environment variable and test the file directly with the `sqlite3` command-line tool.

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

