AWS MarketplaceLearn more
Skip to main content
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

2

Enter Your Databend DSN

Get My DSN

Format: databend://user:password@host:port/database?warehouse=wh

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
732 S 6TH ST, STE R, Las Vegas, NV 89101, USA
SOC 2 Type IIGDPR
© 2026 Databend Cloud. All Rights Reserved.