# AskDB — Safe DB Clone + MCP for Agents > AskDB clones a DB into an isolated container and exposes an MCP endpoint with field-level visibility controls; verified 55★ and pushed 2026-05-04. ## Install Merge the JSON below into your `.mcp.json`: ## Quick Use ```bash curl -fsSL https://github.com/mgorabbani/askdb/releases/latest/download/install.sh | sudo bash # After install: open the dashboard, connect DB, then give your agent the MCP URL. docker ps | rg -n 'askdb' || true ``` ## Intro AskDB clones a DB into an isolated container and exposes an MCP endpoint with field-level visibility controls; verified 55★ and pushed 2026-05-04. **Best for:** Teams that want agents to query production-like data safely without exposing hidden fields or direct prod access **Works with:** Docker on a VPS, a MongoDB/PostgreSQL connection string, and an MCP-capable client **Setup time:** 6-15 minutes ### Key facts (verified) - GitHub: 55 stars · 1 forks · pushed 2026-05-04. - License: MIT · owner avatar + repo URL verified via GitHub API. - README-backed entrypoint: `curl -fsSL .../install.sh | sudo bash`. ## Main - Safer workflow for agents: README describes cloning MongoDB/Postgres via dump/restore into an isolated Docker container before letting an agent query it. - Field-level data control: README highlights hidden fields are stripped from every response and agents never learn hidden fields exist. - Fast VPS install: README includes a one-liner installer for Ubuntu/Debian that sets up Docker (if missing) and brings up the stack with HTTPS. - Multiple deployment modes: README mentions proxyless and Cloudflare Tunnel options depending on your network constraints. ### Source-backed notes - README includes a VPS installer: `curl -fsSL .../install.sh | sudo bash` for Ubuntu/Debian. - README explains the clone flow: `mongodump`/`mongorestore` for Mongo and `pg_dump`/`pg_restore` for Postgres inside Docker. - README mentions hidden fields are stripped from every response so agents can’t exfiltrate unseen columns/fields. ### FAQ - **Does it connect to production directly?**: README frames it as a clone-then-query workflow; agents query the isolated clone, not prod. - **Which databases are supported?**: README explicitly mentions MongoDB and PostgreSQL with dump/restore per engine. - **How fast is setup?**: README claims a fresh VPS can be ready in a few minutes; budget extra time for DNS/ports. ## Source & Thanks > Source: https://github.com/mgorabbani/askdb > License: MIT > GitHub stars: 55 · forks: 1 --- ## Quick Use ```bash curl -fsSL https://github.com/mgorabbani/askdb/releases/latest/download/install.sh | sudo bash # After install: open the dashboard, connect DB, then give your agent the MCP URL. docker ps | rg -n 'askdb' || true ``` ## Intro AskDB 会把数据库克隆到隔离容器里,并提供 MCP endpoint 给 agent,同时支持字段级可见性控制(隐藏字段会从响应中剥离);已验证 55★,最近更新 2026-05-04。 **Best for:** 想让 agent 安全查询“类生产数据”,但不直接连生产、且需要隐藏字段不外泄的团队 **Works with:** VPS 上的 Docker、MongoDB/PostgreSQL 连接串,以及支持 MCP 的客户端 **Setup time:** 6-15 minutes ### Key facts (verified) - GitHub:55 stars · 1 forks;最近更新 2026-05-04。 - 许可证:MIT;作者头像与仓库链接均已通过 GitHub API 复核。 - README 中可对照的入口命令:`curl -fsSL .../install.sh | sudo bash`。 ## Main - 让 agent 先查“克隆库”:README 描述先把 Mongo/Postgres dump/restore 到隔离容器,再把 MCP URL 交给 agent 查询。 - 字段级控制:README 强调隐藏字段会从每次响应中剥离,agent 甚至不会知道这些字段存在。 - VPS 一键安装:README 给出 Ubuntu/Debian 的一行安装脚本,会处理 Docker、域名与 HTTPS 等启动步骤。 - 多部署形态:README 提到 proxyless 与 Cloudflare Tunnel 等选项,适配不同网络边界。 ### Source-backed notes - README 给出 VPS 安装命令:`curl -fsSL .../install.sh | sudo bash`(Ubuntu/Debian)。 - README 说明克隆流程:Mongo 用 `mongodump`/`mongorestore`,Postgres 用 `pg_dump`/`pg_restore`,并在 Docker 内执行。 - README 强调隐藏字段会从每次响应中剥离,降低 agent 误读/外泄风险。 ### FAQ - **会直接连生产库吗?**:README 的路径是先克隆再查询:agent 访问的是隔离克隆库而非生产。 - **支持哪些数据库?**:README 明确提到 MongoDB 与 PostgreSQL,并按引擎使用对应 dump/restore。 - **部署要多久?**:README 提到新 VPS 2–3 分钟可跑起来;域名/DNS/端口可能需要额外时间。 ## Source & Thanks > Source: https://github.com/mgorabbani/askdb > License: MIT > GitHub stars: 55 · forks: 1 --- Source: https://tokrepo.com/en/workflows/askdb-safe-db-clone-mcp-for-agents Author: MCP Hub