AI Agents
Connect AI Agents to Databend
Connect with Agent Skills or MCP.
Agent Skills
Official · Cloud onlyQuery, diagnose, and manage Databend Cloud.
Set Up Agent SkillsMCP Server
MCP-compatible agentsQuery data with configurable sandbox protection.
Set Up MCPWork with Databend
Connect and query
Connect, explore schemas, and write SQL.
Diagnose and investigate
Inspect profiles, investigate alerts, and export logs.
Manage warehouses
Resize, resume, or suspend with your approval.
Install with your agent
Paste this prompt into a Skills-compatible agent.
Install the databend-cloud skill:
https://github.com/databendcloud/databend-cloud-skill
Follow SKILL.md to reuse an API key or help me save one for https://api.databend.com.
Keep the key out of chat. Stop after setup; do not connect or run SQL.Setup only. No connection or SQL execution.
After setup, try asking
“Show recent failed queries.”
“Explain why this query is slow.”
“Summarize sales trends this month.”
Agent Skills security
- Set a token IP allowlist to reject requests from other IPs.
- Allow the agent’s outbound IP. An empty list means no IP restriction.
- Tokens follow your current organization role. Use database permissions for read-only access.
- Disable or delete tokens in the Cloud console.
- View recent token usage IP and time in the console.
- Keep tokens out of chat and code. Results and logs may enter model context.
Connect with MCP
Works with Codex, Cursor, Claude Code, and other MCP clients.
MCP security
Safe mode is on. Writes are limited to sandbox objects.
Session Sandbox Isolation
Each session writes to its own sandbox objects.
Read-only Production Access
Production data stays read-only in safe mode.
SQL Safety Validation
SQL validation blocks writes outside the sandbox.
1
Select Your Coding AgentDocs
3
Session Sandbox Safety
Safe mode enabled
Writes are allowed only on mcp_sandbox_{session_id}_* objects; production stays read-only.
4
Run This Command in Your Terminal
codex mcp add databend \
--env DATABEND_DSN='databend://user:password@host:port/database?warehouse=your_warehouse' \
--env DATABEND_MCP_SAFE_MODE=true \
-- uv tool run --from mcp-databend@latest mcp-databend5
Boost Agent Context with llms.txt
Fetch https://docs.databend.com/llms.txt for Databend context
Paste this prompt to your agent. It will learn the full Databend SQL syntax, functions, and best practices.


