{
 "schema_version": 1,
 "generated": "2026-10-30",
 "id": "t8y2-dbx--let-claude-code-query-your-databases-with-the-dbx-mcp-server",
 "repo": "t8y2/dbx",
 "repo_url": "https://github.com/t8y2/dbx",
 "repo_slug": "t8y2-dbx",
 "title": "Let Claude Code or Cursor query your databases, read only",
 "page_title": "How to let Claude Code or Cursor query your databases, read only with DBX",
 "summary": "Add the DBX MCP server to your agent and restrict it to read only on an allowlist of connections.",
 "who": "A developer who wants the coding agent to check real schema and data while writing queries and migrations.",
 "problem": "Agents guess at schemas, and giving them raw database credentials is risky.",
 "outcome": "An agent that queries your DBX connections through MCP with read only access to the connections you allow.",
 "steps": [
  "Install DBX and set up your connections in the app",
  "Run `npx @dbx-app/mcp-server` once to check it starts",
  "Add the DBX entry to your .mcp.json with command npx and args -y @dbx-app/mcp-server",
  "In DBX Settings, MCP, set the connection allowlist and choose Read only",
  "Ask the agent to inspect a table's schema and sample rows before writing a query"
 ],
 "agent_prompt": "Add the t8y2/dbx MCP server to this project's .mcp.json, then use it in read only mode to inspect the <table> schema on <connection> and write a query that <goal>. Do not run any write statements.",
 "agents": [
  "claude-code",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "rust",
 "requirements": [
  "macOS, Windows or Linux desktop, Docker for team access, or the web version",
  "An AI provider for the SQL assistant: Claude, OpenAI or a local model via Ollama",
  "Node.js (npx) for the MCP server"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "database-access",
   "notice": "Keep production connections out of the allowlist or on Read only; Full access lets an agent change data."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/t8y2-dbx/let-claude-code-query-your-databases-with-the-dbx-mcp-server/",
 "md": "https://dedupedai.com/use-cases/t8y2-dbx/let-claude-code-query-your-databases-with-the-dbx-mcp-server/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/t8y2-dbx--let-claude-code-query-your-databases-with-the-dbx-mcp-server.json",
 "api_version": "v1"
}
