Afgong Sqlite MCP Server logo

Afgong Sqlite MCP Server

Read-only SQLite exploration through table listing, schema inspection, and SELECT queries over MCP.

Install Afgong Sqlite MCP Server

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

Setup steps from the project

afgong-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. Start the server
    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. 4. Run
    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. 5. 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

afgong-sqlite-mcp-server MCP server exposes a local SQLite database to MCP clients through FastMCP. It provides tools for listing tables, describing table structures, and running SELECT queries. Configure the database file with SQLITE_DB_PATH, then launch it locally or through an HTTP-based FastMCP workflow. Reach for it when an agent needs to inspect or analyze SQLite data without modifying records.

Use cases

  • List tables in a local SQLite database
  • Inspect the columns and structure of a table
  • Run SELECT queries over financial records
  • Calculate counts or averages from SQLite data

Key features

  • SQLite table discovery
  • Table schema inspection
  • Read-only SELECT queries
  • FastMCP local execution
  • Claude Desktop and Cline configuration

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.

22/22 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

How Afgong Sqlite MCP Server works

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.

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

afgong-sqlite-mcp-server is an MCP server that connects MCP clients to a configured SQLite database through FastMCP. Its main tools are list_tables for discovering tables, describe_table for inspecting table structure, and read_query for executing SELECT statements and returning data. It is documented for read-only database exploration.

Install the Python packages from requirements.txt and install FastMCP if needed. Set SQLITE_DB_PATH to the SQLite file, then launch sqlite_explorer.py with fastmcp run. The repository also documents FastMCP commands for inspection, development, installation, and Claude Desktop setup.

Set SQLITE_DB_PATH to the path of the database file before starting the server. The examples use an absolute path, and the Cline configuration passes the same value inside its env object. Replace the example path with a readable SQLite file on your system.

The README specifically shows setup instructions for Claude Desktop and Cline in VS Code, along with FastMCP local and HTTP-based testing workflows.

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