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.

< 12msAvg. query compile time
0Schema hallucinations
5+Database engines

Connect any database in 30 seconds

SupabaseNeonMongoDBPostgreSQLMySQLAWS RDS
QueryCraft Studio — Live GroundedLive
PostgreSQL
Show top customers by total spend
Clarification — Paused before compiling

Should I filter for completed orders only and calculate spend from order_items?

Completed Orders OnlyTop 5 by SpendAll Time
PostgreSQL · Verified Read-OnlyLIMIT 5
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;
RESULT PREVIEW3 of 5 rows
Acme Corp
$24,500#1
Global Logistics
$18,200#2
Stripe Inc
$14,890#3

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

Unverified AI Output — Breaks in Production
-- 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 scan

With 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 — Grounded & Verified SQLVERIFIED
-- 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-added

QueryCraft bridges Relational SQL and NoSQL Document databases with a single conversational clarification interface that guarantees zero hallucination.

Universal SQL & NoSQL Support

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.

01

Connect Your Database

Paste a connection URI — Supabase, Neon, AWS RDS, PostgreSQL, MongoDB Atlas, or Redis. Live schema discovery runs in under 3 seconds.

Connect Database
postgresql://user:***@db.neon.tech/app
12 tables introspected · Schema grounded
02

Ask in Plain Language

Type your question naturally. No SQL knowledge needed. QueryCraft detects ambiguity and asks targeted clarifying questions before compiling anything.

Chat Studio
Top customers by revenue last quarter
Completed orders only, or include all statuses?
03

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.

Verified · Read-Only
LIMIT 50
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;
04

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.

Live Results — 5 rows
Acme Corp$24,500
Global Logistics$18,200
Stripe Inc$14,890

Ready to stop guessing? Connect your database in seconds.

Try It Free

Universal 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.

Multi-Model Engines

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" }
]);
Postgres · MySQL · Mongo · Redis
Conversational AI

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]
Zero Risky Assumptions
Live Introspection

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, sessions
Zero Hallucination Guarantee
Self-Healing AI

Critic 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) ✓
Automated Error Recovery
Universal Safety

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 injected
Read-Only Enforced Everywhere
Business Intelligence

Cross-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.

Unified Business Definitions
KPI Semantic Glossary4 definitions
01

Net Revenue

total_amount - refund_amount - discount_amount

02

Active Churn Rate

churned_users / prev_month_active * 100

03

MRR Growth

current_mrr - prev_mrr / prev_mrr * 100

04

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

What's our month-over-month revenue growth for the last 6 months?
PostgreSQLVERIFIED
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;
Live Results
Executed safely
2024-08
$94,200↗ +18%
2024-07
$79,800↗ +12%
2024-06
$71,200↗ +9%

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 Standard

Uses 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 Sandboxing

MCP tool definitions strictly enforce read-only execution (SELECT, find(), aggregate(), GET), preventing data mutations across all SQL and NoSQL databases.

Universal Agent Compatibility

Open Ecosystem

Connect your cloud database in this web studio, or plug the same MCP server into Claude Desktop, Cursor IDE, and any enterprise AI agent pipeline.

Compatible with Cursor · Claude Desktop · Custom MCP Clients
JSON-RPC 2.0
{
  "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"
      }
    }
  }
}
MCP Transport: stdio · JSON-RPC 2.0Multi-Engine
Terminal Output

$ 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.

AC

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.

PS

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.

MW

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.

SP

Sofia Petrov

Platform Engineer

DevTools Company · PostgreSQL

Used in production by 50+ engineering teams4.9/5 developer satisfaction scoreZero schema hallucinations reported
01

Connect your database

Paste a connection URI. Live schema discovery in under 3 seconds.

02

Ask in plain English

No SQL knowledge needed. QueryCraft clarifies before compiling.

03

Execute with confidence

Verified, read-only queries with EXPLAIN cost analysis.

$querycraft connect postgres://your-database-url

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.

Safe read-only sandboxingSQL, MQL & Key-Value enginesSelf-healing critic loopLive schema grounding