sqlite-mcp
Provides tools for querying SQLite databases (read-only), listing tables, and reading table schemas via resources.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
sqlite-mcp
Point Claude at any SQLite database with a single 1 MB binary.
claude mcp add my-db /path/to/sqlite-mcp /path/to/database.dbNo Python, no Node, no runtime. One statically linked executable with SQLite compiled in: about 1 MB stripped. A full cold-process session (initialize, handshake, one SELECT) completes in about 2 ms with 2.9 MB peak memory; the reference Python server takes about 410 ms and 64 MB for the same session, the most-used npm server about 210 ms and 84 MB.
The database is opened read-only. Writes fail at the SQLite layer, so it is safe to hand an LLM.
What it exposes
| Run SQL, get rows back as pipe-separated text with a header. |
| Enumerate tables. |
| Each table's CREATE statement, so the model can read schemas before writing queries. |
Related MCP server: mcp-multi-db
Install
Download a binary from releases (Linux x86_64/aarch64 static, macOS x86_64/aarch64, Windows x86_64), or build from source:
zig build -Doptimize=ReleaseSmall # requires Zig 0.16.0The build fetches the SQLite amalgamation and the zig-mcp-sdk through the Zig package manager; there are no system dependencies.
Claude Code
claude mcp add my-db /path/to/sqlite-mcp /path/to/database.dbClaude Desktop / Cursor
{
"mcpServers": {
"my-db": {
"command": "/path/to/sqlite-mcp",
"args": ["/path/to/database.db"]
}
}
}Example session
> what tables are in this database?
list_tables -> orders, users
> who spent the most?
query("SELECT u.name, SUM(o.total) AS spent FROM users u
JOIN orders o ON o.user_id = u.id
GROUP BY u.id ORDER BY spent DESC LIMIT 1")
-> Alan Turing | 42.0How it works
Built with zig-mcp-sdk. The tool schemas are generated at compile time from the argument structs, the SQLite amalgamation is compiled into the binary by Zig's C compiler, and every release is conformance-tested in CI: handshake, queries, NULL rendering, truncation, write rejection, schema resources.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA secure, read-only MCP server that empowers Claude Desktop and AI agents to safely query and inspect local SQLite databases.-
- AlicenseAqualityBmaintenanceRead-only MCP server for querying PostgreSQL, MySQL, and SQLite from AI agents — multi-database, safe by default.4268 npm1ISC
- AlicenseNot gradedqualityDmaintenanceA read-only MCP server that enables LLMs to safely explore and query any SQLite database via natural language. It exposes tools for listing tables, describing schemas, and executing SELECT/WITH queries with built-in safety guards like write prevention and row limits.MIT
- AlicenseAqualityCmaintenanceRead-only MCP server that lets AI agents safely query SQLite, PostgreSQL, and MySQL/MariaDB. Enforces read-only transactions with column masking, row caps, query timeouts, EXPLAIN-based cost rejection, and rate limiting.750 npm2MIT