AskDB is a self-hosted bridge between your MongoDB or PostgreSQL database and any AI agent that speaks MCP. It clones your production data into an isolated sandbox, lets you control exactly which fields the AI can see, and exposes a single /mcp endpoint that plugs into Claude, ChatGPT, Cursor, and anything else.
Give AI agents safe access to your database.
स्टार
72
टूल
—
अपटाइम
—
No data masking. No fake data. Hidden fields are simply omitted from every response — the AI never knows they exist. Every query is audited.
Get started in 3 steps
Step
What happens
01
Connect
Paste your MongoDB or PostgreSQL connection string in the dashboard
02
Configure
Browse real sample data, toggle which fields the AI can see
03
Query
Give your AI agent https://<your-domain>/mcp — done
Works with · Claude Desktop · Claude Code · ChatGPT · Cursor · any MCP client
Features
Sandbox isolation. Production data cloned into a Docker container. AI reads the copy, never the original.
Field-level control. Toggle any field or collection visible/hidden — changes take effect immediately, no re-sync.
PII auto-detection. Fields like email, password, ssn, phone are detected and pre-hidden automatically.
MongoDB + PostgreSQL. One MCP tool surface across engines. list-databases, collection-schema, find, aggregate, count, distinct, sample-documents, execute-typescript, save-insight.
Audit trail. Every MCP query logged with timestamp, execution time, target, and row count.
OAuth + API keys. Remote clients (Claude, Cursor) use OAuth. Local configs use bearer tokens (SHA-256 hashed, shown once).
Multi-database. Connect every database you own — Mongo and Postgres side by side. Each tool accepts a connectionId.
Interactive result viewer.find / aggregate / sample-documents results render as a sortable table in MCP Apps–capable hosts (Claude Desktop, Claude on web, VS Code Copilot). Non-Apps clients get plain JSON.
Code Mode. An execute-typescript tool lets the AI run a sandboxed TypeScript program that composes multiple queries in one round trip. Details →
The installer will install Docker if missing, prompt for your domain and Let's Encrypt email, generate all secrets, and bring up the stack behind Caddy with auto-provisioned HTTPS. Total time on a fresh VPS is 2–3 minutes.
Don't have a VPS yet?exe.dev spins up a ready-to-go Ubuntu/Debian VPS in a couple of clicks — a quick way to get to the one-liner above.
Set up your domain
In your DNS provider, add an A record pointing to your VPS IP:
name: askdb (or any subdomain)
value: <VPS public IP>
proxy: **OFF** — Cloudflare users: grey cloud, not orange.
The orange proxy blocks Let's Encrypt HTTP-01.
Verify DNS has propagated: dig +short askdb.example.com
Open ports 80 and 443 on your VPS firewall.
Run the installer above.
Create your admin account
The first time you open https://<your-domain>, the dashboard redirects you to /setup to create the admin account. Do this before connecting Claude or Cursor — you'll use the same account for the OAuth prompt. After the first signup, further registrations are rejected.
Alternative install modes
Caddy (default): auto-provisioned HTTPS. Requires a domain with A record.
Proxyless: you run your own reverse proxy (Coolify, Traefik, nginx). AskDB binds 127.0.0.1:3100.
Quick test (nip.io): zero setup — the installer detects your VPS public IP and issues a real Let's Encrypt cert for <ip>.nip.io. No DNS, no domain. Ideal for trial runs. Ports 80/443 still required.
Cloudflare Tunnel: no open ports, no public IP needed. See below.
Cloudflare Tunnel in 90 seconds
If you already have a domain on Cloudflare (free plan works):
Prompt it: "Create a new Cloudflare Tunnel named askdb, route the hostname askdb.example.com to http://askdb:3100, and give me the connector token." Replace askdb.example.com with the subdomain you want.
Copy the token it returns (long eyJ... string).
Run the installer, pick option 3) Cloudflare Tunnel, paste the token, enter the same subdomain. The VPS handles Docker, routing, and certs — Cloudflare handles TLS and DNS automatically.
No firewall changes. No A records. The subdomain starts serving over HTTPS within a minute.
git clone https://github.com/mgorabbani/askdb.git
cd askdb
cat > .env <<EOF
COMPOSE_PROFILES=proxyless
DOMAIN=localhost
BETTER_AUTH_URL=http://localhost:3100
TRUSTED_ORIGINS=http://localhost:3100,http://127.0.0.1:3100
EOF
docker compose up --build -d
# wait ~45s for first build + healthcheck
open http://localhost:3100
Create an admin account in the dashboard, add a database connection, and try the MCP URL at http://127.0.0.1:3100/mcp. Local MCP clients (Claude Code / Cursor with a fixed bearer token) work; remote OAuth flows need HTTPS, so use the VPS install for Claude Desktop / Cursor remote.
Stop with docker compose down (keeps data) or docker compose down -v (wipes volumes).
Connecting Your AI Agent
Claude, Cursor, and any other remote-MCP client connect to https://<your-domain>/mcp. Paste that URL as a custom connector and complete the OAuth approval in your browser. No port, no path rewriting, no API key.
For clients that expect a fixed bearer token (Claude Code, Cursor local configs), create an API key in the dashboard and add it to your config:
Connection strings are encrypted at rest (AES-256-GCM), never logged
API keys are hashed (SHA-256), shown once, never stored in plaintext
Every MCP query is logged to the audit trail
Docker socket hardening: the compose file includes a tecnativa/docker-socket-proxy sidecar so AskDB never has direct access to /var/run/docker.sock — only the API endpoints it needs are exposed.
Roadmap
MongoDB + PostgreSQL adapters with sandbox isolation
The MIT License means you can self-host, fork, modify, and use AskDB freely — including in commercial and proprietary projects — provided you keep the copyright and license notice.
अभी टूल सूची नहीं है। रिमोट सर्वर को पहले हेल्थ चेक के बाद सूची मिलती है।
FAQ
सवाल
Askdb कैसे इंस्टॉल करें?
इस पेज पर Cursor, Claude Desktop, Claude Code या VS Code के लिए stdio कॉन्फ़िग कॉपी करें। यह पब्लिशर का इंस्टॉल इस्तेमाल करता है, PlugMCP प्रॉक्सी नहीं।
क्या Askdb के लिए API key चाहिए?
इस रिकॉर्ड में कोई ज़रूरी एनवायरनमेंट वेरिएबल दर्ज नहीं है।
Askdb कौन सा ट्रांसपोर्ट इस्तेमाल करता है?
Askdb stdio पर लोकल चलता है।
Askdb की पिछली जाँच कब हुई थी?
पिछली जाँच 2026-10-28 को हुई। Give AI agents safe access to your database.