Purpose: QuestDB MCP Server is an MCP (Model Context Protocol) server used to connect programming AI agents to a running QuestDB Web Console. Once connected, agents can create notebook cells, run queries, and build charts; every operation is performed in the browser, against the QuestDB session the user has already established.
Main capabilities: Through this server, agents gain three types of tool operations: creating notebook cells, running SQL queries, and building charts (charts run on live time-series data). The documentation explicitly states that the supported programming agents it can connect include Claude Code, Codex, Cursor, OpenCode, and Gemini CLI.
Usage (quick install, recommended): An interactive setup wizard is provided that automatically detects installed programming agents and writes the connection bridge into each agent's MCP configuration. The wizard has two steps: first, select agents (multi-select from the detected Claude Code, Codex, Cursor, OpenCode, and Gemini CLI); second, review settings (optionally override CONSOLE_ORIGIN and MCP_BRIDGE_PORT, or press Enter to keep the default values). The wizard pins each agent's configuration to the bridge version that runs it.
Version matching: QuestDB Web Console expects a specific version of the bridge. If using an older console, you need to run the matching version: npx @questdb/mcp-server-questdb@<version> setup, and the configuration it writes will start the same version. When unsure, pair first; when a version mismatch occurs, the agent is told which version it needs to switch to. For versions before 0.3.0, the old package name should be used instead: npx @questdb/mcp-bridge@<version> setup.
Manual configuration: The server can also be added manually to the MCP client configuration (for example, ~/.claude/.mcp.json).
Offline/restricted installation (no npx): In environments where npx cannot be run (no npm registry access, or a policy of reviewing before bundling), you can use the standalone packaged file attached to each supported version's GitHub Release: a single self-contained .mjs file, requiring only Node ≥ 22, and establishing no network connections other than the local WebSocket connection to the local Web Console. Standalone bundle files are available starting from bridge version 0.4.0, and all supported QuestDB Web Console versions require bridge version 0.4.0 or higher. After downloading the bundle file (mcp-server-questdb-<version>.mjs) and THIRD_PARTY_NOTICES.txt, you must first move the bundle file to a permanent location before running setup—do not configure from the download directory or a temporary directory—and invoke that exact path. The agent configuration written by setup will launch that bundle file directly (no npx involved), so moving or deleting that exact path will cause the MCP server to fail to start. When switching versions, place the matching new bundle file next to the current file and run node /permanent/absolute/path/mcp-server-questdb-<new-version>.mjs upgrade; it will repoint the agent configuration to the new file while preserving environment settings. If the configured file has been moved, run upgrade from its new absolute path. setup and upgrade always write the installation method of the binary being run: the bundle file writes a file path configuration, and npx writes an npx configuration.
Environment variables: The MCP client will run the bridge on your behalf via the above configuration, so manual invocation is rarely needed. When invoked manually, unknown commands exit with a non-zero status and a brief error. You can pin the version with npx @questdb/mcp-server-questdb@0.3.0 start; after installing to PATH, the executable name is mcp-server-questdb.
Pairing flow: Before any notebook/chart/SQL tool is available, the browser must pair with the bridge, and the flow is agent-driven. When the agent needs to pair, it calls get_pairing_credentials and shows the user both: first, a one-click deep link (opened in the tab displaying the Web Console); second, the WebSocket URL + token (which can be pasted into the MCP pill at the bottom of the Web Console if the deep link does not land in the correct tab). Either method leads to a consent prompt, and after acceptingthe agent's next tool call will go through. Each bridge run generates a new port and pairing token, stored only in memory; after a restart, the old credentials become invalid, and the agent will provide new credentials the next time pairing is needed.
Logging: The bridge writes to stderr and a log file. The default level is INFO; set it to DEBUG to see full payloads (output as continuation lines).
Use cases: When you need to let a coding agent operate on time-series data in an already running QuestDB Web Console, for example exploring data through notebook cells, executing SQL queries, or building charts based on real-time data.
Limitations: The browser must first complete pairing with the bridge before tools can be used; the bridge version must match the QuestDB Web Console version (before 0.3.0, the old package name was required; standalone bundle files require bridge version 0.4.0+ and also console version 0.4.0+); standalone bundle files require only Node ≥ 22 and establish no network connections other than the local WebSocket, but moving the bundle file path will cause the server to fail to start; pairing credentials are stored only in memory and become invalid after a restart. For more information on fees, pricing, platform support, etc., the materials do not currently provide it.