sqlite-mcp
Read-only SQLite access for AI agents in a single ~1 MB static binary. Query tool with row limits, list_tables, and table schemas exposed as MCP resources. The database is opened read-only, so writes fail at the SQLite layer. No Python, no Node, no runtime to install; SQLite is compiled in. Binaries for Linux, macOS, and Windows.
README
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.db
No 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
query tool |
Run SQL, get rows back as pipe-separated text with a header. max_rows defaults to 100; truncation is reported. SQL errors come back as tool errors with the SQLite message. |
list_tables tool |
Enumerate tables. |
sqlite://table/<name> resources |
Each table's CREATE statement, so the model can read schemas before writing queries. |
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.0
The 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.db
Claude 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.0
How 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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。