DBCode

io.dbcodev1.0.1更新於 Oct 3, 2026

Query and explore 100+ databases through your DBCode connections.

已驗證STDIO僅桌面Developer ToolsDatabases

概覽

AI 產生的概覽

讓 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 連線。
安裝前請注意
此伺服器會重複使用已儲存的 DBCode 資料庫連線,因此助理可觸及這些連線涵蓋的所有資料庫,包括正式環境資料。依每個連線的憑證與權限,查詢可能讀取、修改或刪除資料。請確認曝光了哪些連線與哪個編輯器,並把資料庫帳號權限限制在助理應有的範圍內。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 DBCode,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

bash
claude mcp add dbcode -- npx -y @dbcode/mcp

Codex

bash
codex mcp add dbcode -- npx -y @dbcode/mcp

GitHub Copilot CLI

Add this to ~/.copilot/mcp-config.json:

json
{  "mcpServers": {    "dbcode": {      "type": "local",      "command": "npx",      "args": ["-y", "@dbcode/mcp"],      "tools": ["*"]    }  }}

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):

json
{  "mcpServers": {    "dbcode": {      "command": "npx",      "args": ["-y", "@dbcode/mcp"]    }  }}

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:

json
"args": ["-y", "@dbcode/mcp", "--app", "Cursor"]

Values (not case-sensitive): Code, Code - Insiders, Cursor, Windsurf, VSCodium, Antigravity IDE, Antigravity, Kiro.

來源:mcp/README.md,提交 3605eaf

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v1.0.1最新Oct 3, 2026