Sqlite MCP Server

Query SQLite databases, inspect schemas, and explain queries from your AI assistant. Read-only by default for safety.

Local serverstdioMIT

What is the Sqlite MCP Server?

Mcp Server Sqlite is an MCP project maintained in the ofershap/mcp-server-sqlite repository. The maintainer describes its purpose as “Query SQLite databases, inspect schemas, and explain queries from your AI assistant. Read-only by default for safety”. Read the project documentation for the complete scope.

Installation

The documented npm package is mcp-sqlite-server. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
queryExecute SQL (SELECT, PRAGMA, EXPLAIN, WITH). Returns results as a table.
schemaGet full schema: all tables with columns, types, and row counts.
table_infoDetailed info for a single table: columns, constraints, row count.
explainRun EXPLAIN QUERY PLAN to optimize queries.
list_databasesList .db, .sqlite, .sqlite3 files in a directory.

How to install the Sqlite MCP Server

{
  "mcpServers": {
    "sqlite": {
      "command": "npx",
      "args": [
        "mcp-sqlite-server"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.