
Sqlite
io.github.ofershap由 GitHub 帳號 ofershap 發布v1.0.1更新於 Oct 24, 2026
SQLite MCP — query databases, inspect schemas, explain queries, export data.
概覽
讓助理查詢本機 SQLite 資料庫檔案、檢視資料表結構、解釋查詢計畫並匯出結果。
- 可以做什麼
- 提供對本機 SQLite 檔案執行 SQL 的工具,結果以表格形式回傳。可以列出完整結構(含欄位、型別與資料列數),查看單一資料表的詳細資訊,執行 EXPLAIN QUERY PLAN 協助最佳化查詢,並列出目錄中的 .db、.sqlite 與 .sqlite3 檔案。預設以唯讀方式執行,僅允許 SELECT、PRAGMA、EXPLAIN 與 WITH,除非明確開啟寫入模式。
- 適用情境
- 適合處理本機 SQLite 資料庫的情境,例如讓助理查看有哪些資料表、執行查詢或理解查詢計畫,而不必離開編輯器。對於偏好 npm 伺服器而非 Python 參考實作的 TypeScript 或 Node.js 環境也很合適。
- 執行需求
- 透過 npm 套件 mcp-sqlite-server 以 stdio 方式在本機執行,通常以 npx 啟動,因此需要 Node.js。它讀取本機 .db 檔案,宣告不需要驗證、環境變數或標頭。支援 Claude Desktop、Cursor、VS Code Copilot 等桌面 MCP 用戶端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Sqlite,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mcp-server-sqlite
[npm version] [npm downloads] [CI] [TypeScript] [License: MIT]
Query SQLite databases, inspect schemas, and explain queries from your AI assistant. Read-only by default for safety.
Works with Claude Desktop, Cursor, VS Code Copilot, and any MCP client. Reads local
.dbfiles, no auth needed.
[MCP server for querying SQLite databases and inspecting schemas]
Demo built with remotion-readme-kit
Why
SQLite is everywhere. It's the default database for mobile apps, Electron apps, local-first tools, and increasingly for server-side projects too (Turso, Cloudflare D1, Bun's built-in SQLite). The official MCP reference includes a basic SQLite server, but it's Python-only. If you're working in a TypeScript/Node.js environment and want to ask your assistant "what tables are in this database?" or "run this query and show me the results," this server handles that. It opens the database read-only by default so you can explore safely, and you can opt into write mode when you need it.
Tools
Quick Start
Cursor
Add to .cursor/mcp.json:
Claude Desktop
Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
VS Code
Configure the MCP server in your VS Code settings to run 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"
Safety
Read-only by default. The query tool accepts only SELECT, PRAGMA, EXPLAIN, and WITH in readonly mode. Set readonly=false in the tool args to enable INSERT, UPDATE, DELETE, etc.
Development
See also
More MCP servers and developer tools on my portfolio.
Author
README built with README Builder
License
MIT © 2026 Ofer Shapira
來源:README.md,提交 a3b0323
工具
0版本歷史
1- v1.0.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分