Query and inspect local SQLite databases through MCP, with read-only SQL access and query-plan analysis by default.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Server Sqlite.
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.
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.
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.
Install and run the ofershap/mcp-server-sqlite MCP server with:
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.
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.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.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ofershap-mcp-server-sqlite)<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>