AI-Powered Database Integration
Connect AI Agents to Databend
One MCP server. Full schema context. Session sandbox keeps production read-only while agents experiment safely. Works with Codex, Cursor, Claude Code, Gemini CLI, and any MCP-compatible agent.
Safety Guarantees
Session sandbox + SQL validation protect production data.
Session Sandbox Isolation
Each MCP session gets a unique mcp_sandbox_{session_id}_ prefix for all write operations.
Read-only Production Access
SELECT/SHOW/DESCRIBE allowed on production; writes outside the sandbox are blocked.
SQL Safety Validation
SQL is standardized and checked by rule-based guardrails to prevent bypass.
1
Select Your Coding Agent
3
Session Sandbox Safety
Session sandbox prefix
Writes are allowed only on mcp_sandbox_{session_id}_* objects; production stays read-only.
Always On
Enforced in code. Use get_session_sandbox_prefix to retrieve your live prefix.
4
Run This Command in Your Terminal
codex mcp add databend \
--env DATABEND_DSN='databend://user:password@host:port/database?warehouse=your_warehouse' \
-- uv tool run --from mcp-databend@latest mcp-databend

