Mcp Server Sqlite Fast
<p align="center">
<img src="./assets/banner.svg" alt="Project Banner" width="100%">
</p>
# Mcp Server Sqlite Fast ๐ฆโญ
[](https://github.com/Dali5599/mcp-server-sqlite-fast/stargazers)
[](https://opensource.org/licenses/MIT)
[](https://github.com/Dali5599/mcp-server-sqlite-fast/pulls)
[](https://www.typescriptlang.org/)
[](https://modelcontextprotocol.io/)
[](https://github.com/Dali5599)
> **High-performance Model Context Protocol (MCP) server providing secure read/write queries, schema introspection, and execution plan analysis for SQLite with zero external binary dependencies.**
---
## โก Highlights
- **Zero Native C++ Compilation Woes:** Built on Node 24 native synchronous SQLite (`node:sqlite`), guaranteed instant startup without `node-gyp` errors.
- **Introspection & Schema Discovery:** Auto-inspects tables, foreign keys, indexes, and column types.
- **Strict Read-Only Guardrails:** Enforces safety constraints to prevent accidental database drops or mutations during agent autonomous exploration.
- **Explain Query Plan:** Built-in EXPLAIN execution plan tool for database indexing recommendations.
- **Universal AI Agent Compatibility:** Plug-and-play with Claude Code, Cursor, Windsurf, Zed, and any MCP-compliant client.
---
## ๐ Quickstart
### 1. Installation & Build
```bash
git clone https://github.com/Dali5599/mcp-server-sqlite-fast.git
cd mcp-server-sqlite-fast
npm install
npm run build
```
### 2. Configure with Claude Desktop or Claude Code
Add to your `claude_desktop_config.json` or `mcp.json`:
```json
{
"mcpServers": {
"sqlite-fast": {
"command": "node",
"args": [
"/path/to/mcp-server-sqlite-fast/dist/index.js"
]
}
}
}
```
---
## ๐ ๏ธ Available MCP Tools
| Tool | Parameters | Description |
| :--- | :--- | :--- |
| `list_tables` | `db_path` | Lists all tables, views, and schemas in the SQLite database. |
| `describe_table` | `db_path`, `table_name` | Introspects table columns, primary keys, and foreign keys. |
| `execute_query` | `db_path`, `query`, `params`, `read_only` | Executes SQL queries with optional parameterized arguments. |
| `explain_query` | `db_path`, `query` | Analyzes execution plan to optimize indexing and query performance. |
---
## ๐งช Testing
```bash
npm test
```
All 5 automated unit tests execute with sub-millisecond latency.
---
## ๐ License
MIT License - Developed with precision by Dali & Requin Autonomous AI.
TDQS
Scored across 4 tools
Each tool has a distinct primary purpose: listing tables, describing schema, executing SQL, and explaining query plans. There is mild overlap because execute_query could run EXPLAIN statements, but the specialized explain_query makes the intent clear.
All four tools follow a consistent snake_case verb_noun pattern: list_tables, describe_table, execute_query, explain_query. The convention is predictable throughout.
Four tools are well-scoped for a focused SQLite query/analysis server. Each tool earns its place without redundant surface area.
The surface covers discovery, schema introspection, query execution, and query-plan optimization. Some database operations like index listing or explicit transaction management rely on execute_query, which is a minor gap rather than a blocker.