Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Server Sqlite

FreeMaintained

MCP server for SQLite — query databases, inspect schemas, explain queries, and export data from your IDE.

GitHubEmbed

About

MCP server for SQLite — query databases, inspect schemas, explain queries, and export data from your IDE.

README

npm version npm downloads CI TypeScript License: MIT

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

npx mcp-sqlite-server

Works with Claude Desktop, Cursor, VS Code Copilot, and any MCP client. Reads local .db files, no auth needed.

MCP server for querying SQLite databases and inspecting schemas

Demo built with remotion-readme-kit

Why

SQLite is everywhere. It's the default database for mobile apps, Electron apps, local-first tools, and increasingly for server-side projects too (Turso, Cloudflare D1, Bun's built-in SQLite). The official MCP reference includes a basic SQLite server, but it's Python-only. If you're working in a TypeScript/Node.js environment and want to ask your assistant "what tables are in this database?" or "run this query and show me the results," this server handles that. It opens the database read-only by default so you can explore safely, and you can opt into write mode when you need it.

Tools

Tool What it does
query Execute SQL (SELECT, PRAGMA, EXPLAIN, WITH). Returns results as a table.
schema Get full schema: all tables with columns, types, and row counts.
table_info Detailed info for a single table: columns, constraints, row count.
explain Run EXPLAIN QUERY PLAN to optimize queries.
list_databases List .db, .sqlite, .sqlite3 files in a directory.

Quick Start

Cursor

Add to .cursor/mcp.json:

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

Claude Desktop

Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

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

VS Code

Configure the MCP server in your VS Code settings to run npx mcp-sqlite-server.

Example prompts

  • "Show me the schema of my database at ./data.db"
  • "Query the users table: SELECT * FROM users LIMIT 10"
  • "Explain the query plan for this complex join"
  • "What tables are in this database?"
  • "Find all .db files in the current directory"

Safety

Read-only by default. The query tool accepts only SELECT, PRAGMA, EXPLAIN, and WITH in readonly mode. Set readonly=false in the tool args to enable INSERT, UPDATE, DELETE, etc.

Development

npm install
npm run typecheck
npm run build
npm test
npm run format
npm run lint

See also

More MCP servers and developer tools on my portfolio.

Author

Made by ofershap

LinkedIn GitHub


README built with README Builder

License

MIT © 2026 Ofer Shapira

from github.com/ofershap/mcp-server-sqlite

Install Server Sqlite in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install mcp-server-sqlite

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add mcp-server-sqlite -- npx -y mcp-sqlite-server

Step-by-step: how to install Server Sqlite

FAQ

Is Server Sqlite MCP free?

Yes, Server Sqlite MCP is free — one-click install via Unyly at no cost.

Does Server Sqlite need an API key?

No, Server Sqlite runs without API keys or environment variables.

Is Server Sqlite hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Server Sqlite in Claude Desktop, Claude Code or Cursor?

Open Server Sqlite on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Changes

Versions and requested access over time.

  • New version published
  • New version published

Related MCPs

Compare Server Sqlite with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All data MCPs