Wgong Sqlite MCP Server logo

Wgong Sqlite MCP Server

Inspect SQLite tables, schemas, and query results through three read-only MCP tools.

Install Wgong Sqlite MCP Server

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

Setup steps from the project

wgong-sqlite-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
    pip install fastmcp
    
  3. 3. Install
    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. 4. Add to your MCP client
    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"
    

Overview

The wgong-sqlite-mcp-server MCP server connects an AI assistant to a SQLite database configured through an environment variable. It exposes tools to list tables, describe table structure, and run SELECT queries through FastMCP. Use it when an agent needs read-only access to local SQLite data for inspection, previews, counts, or basic analysis. The repository documents local execution, Claude Desktop setup, Cline in VS Code, and Smithery playground testing.

Use cases

  • List tables in a SQLite database
  • Inspect a table schema before querying
  • Preview rows from a selected table
  • Run read-only financial data queries
  • Calculate counts or averages with SELECT statements

Key features

  • List SQLite tables
  • Describe table structure
  • Run SELECT queries
  • Read-only database access
  • FastMCP-based local execution
  • Smithery playground testing

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.

18/18 checks healthy over the last 117d

Supply-chain signal

5 high-severity advisories on record for this package. Most advisories affect transitive dependencies and may not be exploitable in this server's actual usage — this is a directional signal, not a security audit.

Critical 1High 4Medium 3Low 6

Scanned 8/29/2026 via OSV.dev

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.

How Wgong Sqlite MCP Server works

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:

Terminal
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.

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 Wgong Sqlite MCP Server

wgong-sqlite-mcp-server is an MCP server that connects AI assistants to a configured SQLite database through FastMCP. Its main tools are list_tables for database tables, describe_table for table structure, and read_query for running SELECT statements. It is intended for inspecting and querying SQLite data without write operations.

Install the Python dependencies and FastMCP, then start the application with SQLITE_DB_PATH set to your database file. The documented commands use pip for installation and fastmcp run sqlite_explorer.py for local execution.

Set SQLITE_DB_PATH to the existing SQLite database file before launching the server. The variable can be placed before a FastMCP command or added to the MCP client's environment configuration.

Claude Desktop can be configured with FastMCP's installation command, while Cline uses a JSON configuration that launches FastMCP and passes SQLITE_DB_PATH.

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 PreviewWgong Sqlite MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/wgong-sqlite-mcp-server?style=directory)](https://allmcps.com/mcp/wgong-sqlite-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/wgong-sqlite-mcp-server"><img src="https://allmcps.com/api/badge/wgong-sqlite-mcp-server?style=directory" alt="Wgong Sqlite MCP Server on AllMCPs" /></a>