DBCode
io.dbcodev1.0.1更新於 Oct 3, 2026
Query and explore 100+ databases through your DBCode connections.
概覽
讓 AI 助理透過你在支援的編輯器中既有的 DBCode 連線來查詢與探索資料庫。
- 功能
- DBCode MCP 伺服器會把 DBCode 擴充功能中已儲存的資料庫連線開放給 AI 助理查詢與探索。它支援 100 多種資料庫,包括 PostgreSQL、MySQL、SQL Server、Oracle、SQLite、MongoDB、ClickHouse 與 Snowflake。這個 npm 套件會找出電腦上最新安裝的 DBCode 並啟動其 MCP 伺服器;當開啟了裝有 DBCode 的編輯器時,助理會透過它運作,沒有開啟編輯器時則直接讀取已儲存的連線。若在多個編輯器中使用 DBCode,可用 --app 選項選擇要曝光哪個編輯器的連線。
- 適用情境
- 適合已經在 VS Code、Cursor、Windsurf、Antigravity 或 Kiro 中透過 DBCode 使用資料庫,並希望 AI 助理直接查詢與探索這些連線、不必重新輸入憑證的情況。它著重於資料探索與臨時查詢,而非獨立的資料庫存取方式。
- 執行需求
- 需要本機桌面環境:在 VS Code、Cursor、Windsurf、Antigravity 或 Kiro 中安裝 DBCode 擴充功能,並需要 Node.js 22.14 或更新版本,以透過 stdio 執行 npm 套件 @dbcode/mcp。未宣告任何環境變數、標頭或驗證;資料庫憑證來自既有的 DBCode 連線。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 DBCode,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
DBCode MCP server
Let your AI agent query your databases through DBCode, using the connections you already have in DBCode.
DBCode works with 100+ databases, including PostgreSQL, MySQL, SQL Server, Oracle, SQLite, MongoDB, ClickHouse and Snowflake.
Requirements
- The DBCode extension, installed in VS Code, Cursor, Windsurf, Antigravity or Kiro. Install DBCode.
- Node.js 22.14 or newer.
Setup
Claude Code
Codex
GitHub Copilot CLI
Add this to ~/.copilot/mcp-config.json:
Gemini CLI, Claude Desktop, Cursor, Windsurf and other clients
Add this to the client's MCP configuration (for Gemini CLI, ~/.gemini/settings.json; for Claude Desktop, claude_desktop_config.json):
Cursor, VS Code, Windsurf, Antigravity and Kiro can also connect DBCode to their built-in agent without this package. See DBCode's MCP docs.
How it works
The package finds the newest DBCode installed on your machine and starts its MCP server. When an editor with DBCode is open, the agent works through it. With no editor open, the server reads your saved DBCode connections directly.
If you use DBCode in more than one editor, choose which editor's connections the agent sees with --app:
Values (not case-sensitive): Code, Code - Insiders, Cursor, Windsurf, VSCodium, Antigravity IDE, Antigravity, Kiro.
來源:mcp/README.md,提交 3605eaf
工具
0版本歷史
1- v1.0.1最新Oct 3, 2026

