
QuestDB Web Console MCP Server
io.github.questdb由 GitHub 帳號 questdb 發布v0.5.0更新於 Oct 24, 2026
Connects coding agents to a running QuestDB Web Console: notebook cells, SQL queries, and charts.
概覽
將編碼代理連接到執行中的 QuestDB Web Console,讓它能在使用者已開啟的瀏覽器分頁中建立筆記本儲存格、執行 SQL 查詢並產生圖表。
- 可以做什麼
- 在 QuestDB Web Console 中建立與更新筆記本儲存格,包括編輯儲存格內容並從中執行查詢(update_cell、run_query)。依查詢結果在主控台產生圖表。透過取得配對憑證並完成同意提示,將瀏覽器工作階段與橋接器配對。將工具呼叫與結果寫入 stderr 與記錄檔以便排查問題。
- 適用情境
- 當你已在 QuestDB Web Console 中作業,並希望編碼代理針對目前工作階段草擬 SQL、填寫筆記本儲存格或產生圖表,而非直接連線 QuestDB 時適用。
- 執行需求
- 本機 Node.js 執行環境(獨立套件需 Node 22 以上)與 npx,或來自 GitHub Release 的獨立 .mjs 套件。需要可透過 CONSOLE_ORIGIN 存取的 QuestDB Web Console(預設 MCP_BRIDGE_PORT、LOG_PATH 與 LOG_LEVEL。任何工具可用前都需要在瀏覽器中配對並確認同意提示。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 QuestDB Web Console MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
QuestDB MCP Server
An MCP server that connects coding agents (Claude Code, Codex, Cursor, OpenCode, Gemini CLI) to a running QuestDB Web Console. The agent gets tools to create notebook cells, run queries, and build charts. Every action executes in the browser against your already-established QuestDB session.
Setup
Quick setup (recommended)
The interactive wizard detects your installed coding agents and writes the bridge into each one's MCP config:
It walks you through two steps:
- Pick agents: multi-select from the ones it detects (Claude Code, Codex, Cursor, OpenCode, Gemini CLI).
- Review settings: optionally override
CONSOLE_ORIGINandMCP_BRIDGE_PORT; press Enter to keep the defaults.
The wizard pins each agent's config to the bridge version that ran it. Your
QuestDB Web Console expects a specific bridge version. If you're on an older
console, run the matching version: npx @questdb/mcp-server-questdb@<version> setup. The config it writes will launch that same version. (When unsure, pair first; on a version mismatch the agent is told which version to switch to.)
For versions earlier than 0.3.0, use the former package name instead:
npx @questdb/mcp-bridge@<version> setup.
Manual setup
Or add it to your MCP client's config by hand (e.g. ~/.claude/.mcp.json):
Offline / restricted install (no npx)
Environments that can't run npx (no npm registry access, vet-then-vendor
policies) can use the standalone bundle attached to each supported version's
GitHub Release:
a single self-contained .mjs file needing only Node ≥ 22, making no
network connections except the local WebSocket to your Web Console.
Standalone bundles are available starting with bridge version 0.4.0. All supported QuestDB Web Console versions request bridge version 0.4.0 or later.
Download the bundle (mcp-server-questdb-<version>.mjs) and
THIRD_PARTY_NOTICES.txt from the release, then move the bundle to a
permanent location before setup—do not configure it from
a downloads or temporary directory—and invoke that exact path:
Setup writes agent configs that launch the bundle file directly (no npx
involved), so moving or deleting that exact path will prevent the MCP server
from starting. To switch versions, put the matching bundle beside the current
one and run node /permanent/absolute/path/mcp-server-questdb-<new-version>.mjs upgrade;
it re-points your agent configs at the new file while keeping env
settings. If a configured file was already moved, run upgrade from its new
absolute path. setup and upgrade always write the install style of the
binary you run: a bundle writes file-path configs; npx writes npx configs.
Environment variables
Commands
Your MCP client runs the bridge for you via the config above, so you rarely invoke it by hand. When you do:
An unknown command exits non-zero with a short error. Pin a version with
npx @questdb/[email protected] start. (Installed on your PATH, the
executable is named mcp-server-questdb.)
Pairing
Before any notebook / chart / SQL tool works, your browser has to pair with the bridge. The agent drives the flow.
When the agent needs to pair, it calls get_pairing_credentials and
shows you both:
- A one-click deep link — open it in the tab showing your Web Console.
- A WebSocket URL + token — paste into the MCP pill at the bottom of the Web Console if the deep link doesn't land in the right tab.
Either path lands you on a consent prompt. Accept it and the agent's next tool call goes through.
Each bridge run generates a fresh port and pairing token, held only in memory. On restart the old credentials stop working — the agent will surface new ones the next time it needs to pair.
Logs
The bridge writes to stderr and to a log file. Tail the newest:
At default INFO:
At DEBUG (full payloads as continuation lines):
License
Apache-2.0.
來源:README.md,提交 b80e855
工具
0版本歷史
2- v0.5.0最新Sep 30, 2026
- v0.4.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分