Stop guessing.
Start verifying.
The AI that reads your live schema before writing a single line of SQL or MongoDB pipeline.
Connect Supabase, Neon, AWS RDS, PostgreSQL, or MongoDB Atlas. QueryCraft introspects your real tables, catches typos, asks targeted clarifying questions before compiling, and enforces read-only safety guards on every execution.
Connect any database in 30 seconds
Should I filter for completed orders only and calculate spend from order_items?
SELECT u.id, u.full_name,
SUM(oi.quantity * oi.unit_price) AS total_spend
FROM users u
JOIN orders o ON u.id = o.user_id
JOIN order_items oi ON o.id = oi.order_id
WHERE o.status = 'completed'
GROUP BY u.id, u.full_name
ORDER BY total_spend DESC
LIMIT 5;The Universal AI Database Problem
Generic AI guesses schemas.
QueryCraft verifies.
Whether your data lives in relational PostgreSQL tables or MongoDB document collections, standard LLMs hallucinate fields and assume silent defaults. QueryCraft brings live schema grounding to all your data engines.
Without QueryCraft
What goes wrong in SQL & NoSQL
-- What generic AI generates:
SELECT * FROM customers
WHERE status = 'active'
ORDER BY total_spend DESC;
-- ↑ 'total_spend' column doesn't exist!
-- ↑ Missing JOIN on order_items
-- ↑ No LIMIT — full table scanWith QueryCraft
Universal Multi-Engine Verification
Conversational Clarification
Pauses before writing queries to clarify ambiguous date windows, status filters, and aggregation methods.
Live SQL & NoSQL Introspection
Introspects live PostgreSQL/MySQL schemas, UUID keys, JSONB fields, and MongoDB collection schemas.
Dual-Engine Critic Loop
Intercepts runtime errors in both SQL and MongoDB pipelines, diagnoses root causes, and regenerates verified fixes.
Read-Only + Auto-Limit Guards
Enforces pure read-only queries everywhere. Blocks write commands and auto-injects LIMIT 50 safeguards.
Universal Semantic KPI Layer
Define business metrics once — revenue formulas, active user thresholds — and every generated query respects them.
-- QueryCraft after live schema verification:
SELECT u.id, u.name,
SUM(oi.quantity * oi.unit_price) AS spend
FROM users u
JOIN orders o ON u.id = o.user_id
JOIN order_items oi ON o.id = oi.order_id
WHERE o.status = 'completed'
GROUP BY u.id, u.name
ORDER BY spend DESC
LIMIT 50; -- auto-addedQueryCraft bridges Relational SQL and NoSQL Document databases with a single conversational clarification interface that guarantees zero hallucination.
How It Works
From question to verified query in four steps.
No SQL knowledge required. No prompt engineering. Connect your database and start asking business questions in plain English.
Connect Your Database
Paste a connection URI — Supabase, Neon, AWS RDS, PostgreSQL, MongoDB Atlas, or Redis. Live schema discovery runs in under 3 seconds.
Ask in Plain Language
Type your question naturally. No SQL knowledge needed. QueryCraft detects ambiguity and asks targeted clarifying questions before compiling anything.
Review Verified Query
Get a schema-grounded, hallucination-free SQL or MQL query. Inspect the EXPLAIN plan, check the cost estimate, and edit before execution.
SELECT u.name, SUM(oi.qty * oi.price) AS rev FROM users u JOIN orders o ON u.id=o.user_id JOIN order_items oi ON o.id=oi.id WHERE o.status='completed' GROUP BY u.name LIMIT 50;
Execute & Visualize
Run the query safely against your live database. Results render as interactive tables, bar charts, line charts, or pie charts — with one-click CSV export.
Ready to stop guessing? Connect your database in seconds.
Try It FreeUniversal Multi-Engine Intelligence
One engine for all your SQL & NoSQL databases.
From relational tables to nested document collections, QueryCraft clarifies intent, grounds queries in live schemas, and executes safe analytics anywhere.
Universal SQL & NoSQL Compiler
Native support for relational SQL (PostgreSQL, MySQL, Supabase, Neon) and document stores (MongoDB Atlas, DynamoDB, Redis). Generates optimized queries tailored to your target engine — with zero syntax drift.
-- Relational SQL:
SELECT u.id, SUM(oi.price) AS total
FROM users u JOIN orders o ON u.id = o.uid
JOIN order_items oi ON o.id = oi.oid
GROUP BY u.id LIMIT 50;
// MongoDB MQL:
db.orders.aggregate([
{ $match: { status: "completed" } },
{ $unwind: "$items" }
]);Proactive Clarification Layer
When requests lack date ranges, status filters, or aggregation parameters, the engine pauses and asks targeted clarifying questions before compiling — with 1-tap interactive response chips.
Clarify: "Top customers" by:
→ total spend (SUM of order_items)
→ order count (COUNT DISTINCT orders)
Date range:
→ [Last 30 days] [YTD 2024] [All time]Schema & Collection Grounding
Inspects live database catalogs — relational tables, UUIDs, JSONB columns, foreign keys, and MongoDB document schemas. Never hallucinates non-existent fields or invalid types.
Schema: users(id UUID, email TEXT)
orders(total DECIMAL, status TEXT)
Collections: products, sessionsCritic Loop — SQL & MQL Doctor
Intercepts runtime errors, parses SQLSTATE codes, uses an LLM critic to diagnose root causes, and auto-repairs queries with up to 3 self-healing retries.
PostgreSQL ERROR 42703
→ Diagnosis: column 'total_spend'
does not exist
→ Auto-heal: mapped to
SUM(oi.quantity * oi.unit_price) ✓Read-Only Sandboxing
Strictly enforces read-only access across SQL (SELECT only) and NoSQL (find/aggregate, GET). Intercepts INSERT, DELETE, DROP before they reach your database.
BLOCKED: INSERT / UPDATE / DROP
ALLOWED: SELECT / find() / aggregate()
Auto-guard: LIMIT 50 injectedCross-Engine Semantic KPI Layer
Define business KPI formulas and glossary terms once. QueryCraft applies them across both relational joins and nested NoSQL document pipelines. Teach the AI your custom metric definitions, upload policy documents, and let the semantic layer surface verified calculations every time.
Net Revenue
total_amount - refund_amount - discount_amount
Active Churn Rate
churned_users / prev_month_active * 100
MRR Growth
current_mrr - prev_mrr / prev_mrr * 100
LTV / CAC Ratio
customer_ltv / customer_acquisition_cost
Daily Use Cases
Built for every team that touches data.
Whether you're analyzing metrics, debugging slow queries, or just need a quick answer — QueryCraft speaks your language.
Answer business questions instantly without writing SQL
SELECT
TO_CHAR(created_at, 'YYYY-MM') AS month,
SUM(total_amount) AS revenue,
LAG(SUM(total_amount)) OVER (
ORDER BY TO_CHAR(created_at, 'YYYY-MM')
) AS prev_revenue
FROM orders
WHERE status = 'completed'
GROUP BY 1
ORDER BY 1 DESC
LIMIT 6;Open Model Context Protocol (MCP)
Plug into any AI agent. Instantly.
QueryCraft's MCP server exposes the Cost Guard workflow as a native tool for Cursor, Claude Desktop, and any agent framework — over standard stdio.
Dynamic Schema Streaming
Protocol StandardUses Model Context Protocol to stream live database catalogs — PostgreSQL tables, MongoDB collections, Redis key schemas — directly into LLM context on every query.
Cross-Engine Read-Only Safety
Universal SandboxingMCP tool definitions strictly enforce read-only execution (SELECT, find(), aggregate(), GET), preventing data mutations across all SQL and NoSQL databases.
Universal Agent Compatibility
Open EcosystemConnect your cloud database in this web studio, or plug the same MCP server into Claude Desktop, Cursor IDE, and any enterprise AI agent pipeline.
{
"mcpServers": {
"querycraft-cost-guard": {
"command": "/path/to/.venv/bin/python",
"args": ["-m", "app.mcp_server"],
"cwd": "/path/to/TTS/backend",
"env": {
"PYTHONPATH": "/path/to/TTS/backend",
"POSTGRES_URL": "postgresql://***",
"READ_ONLY_ENFORCED": "true",
"AUTO_LIMIT": "50"
}
}
}
}$ querycraft mcp start
[MCP] Server initializing — QueryCraft-CostGuard v1.0
[MCP] Transport: stdio | Protocol: JSON-RPC 2.0
[MCP] Tool registered: evaluate_and_heal_sql ✓
[MCP] Connected to PostgreSQL: 12 tables introspected ✓
[MCP] Ready — awaiting tool invocations from IDE agent
Developer Love
Trusted by the teams who can't afford hallucinations.
QueryCraft caught a Cartesian join that would have scanned 24 million rows in production. The Cost Guard firewall paid for itself in the first 10 minutes.
Alex Chen
Senior Backend Engineer
FinTech Startup · PostgreSQL + Supabase
I used to wait 2 days for the data team to write a query. Now I describe what I need in plain English and get verified SQL in seconds. Our analytics velocity is 10x.
Priya Sharma
Head of Product Analytics
B2B SaaS · Neon + MongoDB Atlas
The clarification loop is brilliant. It asked me exactly the right question before generating the query — something no other AI tool has ever done.
Marcus Williams
Data Analyst
E-commerce Platform · AWS RDS
We plugged QueryCraft's MCP server into our Claude Desktop setup and now our entire engineering team can query production databases safely. The read-only enforcement is non-negotiable for us.
Sofia Petrov
Platform Engineer
DevTools Company · PostgreSQL
Connect your database
Paste a connection URI. Live schema discovery in under 3 seconds.
Ask in plain English
No SQL knowledge needed. QueryCraft clarifies before compiling.
Execute with confidence
Verified, read-only queries with EXPLAIN cost analysis.
Universal Database Studio
Your database deserves
a smarter analyst.
No manual prompt crafting. No hallucinated table joins. Connect Supabase, Neon, MongoDB Atlas, or AWS RDS — QueryCraft handles schema discovery, clarification, and safe execution.