SuperAPIAI Directory

mcp-server-sqlite

github.com · AI coding

SQLite operations: query databases, inspect schemas, explain queries and export data.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS

About this tool

mcp-server-sqlite is an MCP server for SQLite that helps users query SQLite databases, inspect the database schema, and explain query statements from AI assistants. Its core design is read-only by default to ensure safe operation.

Primary uses The tool is aimed at users who need to access and analyze local SQLite databases in an AI assistant environment. SQLite is widely used in mobile apps, Electron apps, local-first tools, and increasingly in server-side projects (such as Turso, Cloudflare D1, Bun's built-in SQLite). The official MCP reference implementation includes a basic SQLite server, but it only supports Python; this server targets the TypeScript/Node.js environment, allowing users to ask the assistant questions such as "What tables are in this database?" or "Run this query and show the results."

Main capabilities

  • Query SQLite databases.
  • Inspect the database schema.
  • Explain query plans.
  • Read local .db files without authentication.
  • Read-only mode by default. In read-only mode, the query tool only accepts SELECT, PRAGMA, EXPLAIN, and WITH; setting readonly=false in the tool parameters enables write operations such as INSERT, UPDATE, DELETE.

Usage The server can be used with Claude Desktop, Cursor, VS Code Copilot, and any MCP client. The configuration methods provided in the materials include:

  • Add to .cursor/mcp.json.
  • Add to claude_desktop_config.json (on macOS the path is ~/Library/Application Support/Claude/claude_desktop_config.json).
  • Configure the MCP server in VS Code settings, running 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"

Applicable scenarios Suitable for safely exploring local SQLite databases, viewing table structures, executing read-only queries, and understanding query plans through an AI assistant in a TypeScript/Node.js environment; when data modification is needed, write mode can be explicitly enabled.

Limitations and notes Read-only by default; write operations require setting readonly=false; reads local .db files without authentication. The materials do not provide other platform support, pricing models, or performance data, and none is currently provided. This project uses the MIT license, with copyright information as MIT © 2026 Ofer Shapira.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools