MCP Server Sqlite logo

MCP Server Sqlite

by ofershap

Query and inspect local SQLite databases through MCP, with read-only SQL access and query-plan analysis by default.

Install MCP Server Sqlite

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ofershap-mcp-server-sqlite": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-sqlite-server"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 5 tools correctly ().

Overview

The ofershap/mcp-server-sqlite MCP server exposes local SQLite database operations to MCP-compatible assistants. It can run supported SQL queries, inspect complete or per-table schemas, review query plans, and find SQLite files in a directory. Read-only mode is the default, while write statements can be enabled through the query tool. Reach for it when an assistant needs structured access to local .db, .sqlite, or .sqlite3 files without authentication.

Use cases

  • Inspect a local database schema
  • Run read-only SQLite queries
  • Review a table's constraints and row count
  • Analyze a SQLite query plan
  • Find SQLite files in a directory

Key features

  • Read-only SQL queries by default
  • Full schema inspection
  • Per-table metadata and constraints
  • SQLite query-plan analysis
  • Local database file discovery

Tools5

What MCP Server Sqlite lets your agent do. Expand a tool for its parameters.

Verified live~449 tokens of context

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.

23/24 checks healthy over the last 99d

What it can do

From the 5 tools this server returned when we ran it.

Runs commands · 1Read-only tools · 4
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceNot published
Package age265 days
Maintainers1

Observed 2026-11-12 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · mcp-sqlite-server (npm)

Adoption & maintenance

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

GitHub stars4Stargazers on the source repository.
npm downloads674Package downloads in the last 30 days.
Last commit8mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed5Callable tools this server registers over MCP.
Directory activity8 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Server Sqlite works

What ofershap/mcp-server-sqlite MCP server does

The ofershap/mcp-server-sqlite MCP server connects an MCP client to local SQLite database files. It is intended for inspecting database structure, running read-oriented SQL, and understanding how SQLite plans to execute a query. The server accepts database paths through tool requests and returns query results in a table format.

The project is implemented for a TypeScript and Node.js workflow and can be launched with the published mcp-sqlite-server package. It does not require credentials because it works with files available on the local machine.

How it works

The server provides separate operations for database discovery, schema inspection, table details, SQL execution, and query-plan analysis. list_databases searches a directory for files ending in .db, .sqlite, or .sqlite3. schema reports every table along with its columns, types, and row counts. table_info narrows that view to one table and includes columns, constraints, and the row count.

The query operation supports SELECT, PRAGMA, EXPLAIN, and WITH statements in its default mode. Results are returned as a table for the calling assistant to interpret. The explain operation runs SQLite's EXPLAIN QUERY PLAN, which can help investigate how a query is likely to access tables and indexes.

Setup and configuration

Install and run the ofershap/mcp-server-sqlite MCP server with:

Terminal
npx -y mcp-sqlite-server

An MCP client can configure the server as a local stdio process using npx and the mcp-sqlite-server package. The README gives configuration examples for Cursor and Claude Desktop, and also states that the server can be configured in VS Code. Other MCP clients may use it if they support local stdio servers.

No API key, token, or other authentication setting is documented. The server reads local database files, so the client environment must be able to access the paths supplied to the tools.

Tools and capabilities

  • query: Runs supported SQL and returns tabular results.
  • schema: Lists all tables with column definitions, types, and row counts.
  • table_info: Shows one table's columns, constraints, and row count.
  • explain: Runs EXPLAIN QUERY PLAN for query analysis.
  • list_databases: Finds SQLite database files in a selected directory.

Limitations and notes

Read-only behavior is enabled by default. In that mode, query accepts only SELECT, PRAGMA, EXPLAIN, and WITH statements. Passing readonly=false in the tool arguments enables write operations such as INSERT, UPDATE, and DELETE, so that setting should be used deliberately.

The documented interface is focused on SQLite files and does not describe connections to hosted database services. The listed tools also do not define a separate export operation; query results are returned to the MCP client as tables. The package is distributed under the MIT license.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Server Sqlite

Run `npx -y mcp-sqlite-server`, then configure that command as a local MCP server.

Yes. The README provides a Claude Desktop configuration using `npx` and the `mcp-sqlite-server` package.

It is read-only by default. Set `readonly=false` in the query tool arguments to enable statements such as `INSERT`, `UPDATE`, and `DELETE`.

In read-only mode, the query tool accepts `SELECT`, `PRAGMA`, `EXPLAIN`, and `WITH` statements.

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