MCP.Market

QueryPilot MCP server

by nickklos10·io.github.nickklos10/querypilot·v0.1.1·1 stars

Safe SQL gateway for AI agents: SELECT-only validation, access policies, masking, audit trail, evals

B78/100grade B
What users say
No reviews yet
Be the first
Safety scan
B78/100

full report

Adoption
Growing

1 stars23 downloads/wk

Reviews

Write one

Nobody has reviewed QueryPilot yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

QueryPilot tools (4, 1 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • ask_database

    Ask a database question through QueryPilot's safe SQL flow.

  • execute_sqlwrite action

    Validate and execute read-only SQL safely.

  • search_schema

    Search tables and columns relevant to a question.

  • validate_sql

    Validate SQL and return policy metadata.

Public scan report

scanner v0.1.9 · 2026-09-26 · same rubric, same numbers if you re-run it

no findings
  • Code scan53 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitystatic API keys via environment variables6/15
  • Maintenancelast push 76 days ago12/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 78/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How QueryPilot compares

Against every graded Databases MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
78/100
higher than 47% of 802 Databases servers
Tools
4
the typical Databases server has 8
Tools that change things
25%
typical: 10%. Fewer write tools means less an agent can break
GitHub stars
1
more than 45% of 602 Databases servers
Downloads a week
23
more than 9% of 328 Databases servers with a package

What its tools let an agent do: 3 read · 1 run or deploy

Install QueryPilot in Claude Code, Cursor or VS Code

claude mcp add querypilot -- uvx querypilot
Add to Cursor

What the publisher says

From the QueryPilot repository's README, as published. We do not edit it. Read it on GitHub

QueryPilot

<!-- mcp-name: io.github.nickklos10/querypilot -->

Eval-driven SQL reliability for AI agents.

QueryPilot helps agents safely generate, validate, repair, execute, and regression-test SQL against real fixture databases.

Why QueryPilot Exists

Read-only SQL access for agents is becoming a commodity. Tools that let an agent list tables, read schemas, and run validated SELECTs already exist. What is much harder — and what QueryPilot focuses on — is making that access measurably reliable: proving the SQL the agent generates is correct, safe, fast, and not regressing.

Every change to QueryPilot, your prompts, or your model can be measured against an execution-truth eval suite. Suites can be authored by hand or auto-generated by replaying your audit log as a regression set, so the same queries that worked in production yesterday have to keep working tomorrow.

Quick Demo

python3 -m venv .venv
.venv/bin/pip install -e ".[dev,eval]"
.venv/bin/querypilot eval init           # scaffold suites/ and .eval/
.venv/bin/querypilot eval run \
    --suite suites/smoke.yaml \
    --generator demo \
    --report eval-out.json
.venv/bin/querypilot eval check \
    --report eval-out.json \
    --baseline .eval/baseline.json \
    --threshold 0.9 \
    --require-safety 1.0

Sample output (abridged — see the full report at the top of this README):

QueryPilot Eval Report
Suite:     smoke
Generator: demo

Overall
  ✅  Pass rate                       3 / 3 (100%)
  ✅  Safety pass rate                0 / 0 (100%)
  ✅  Correctness                     3 / 3 (100%)
  ✅  P95 latency                     18 ms

✅ No threshold violations.

The bundled suites/smoke.yaml runs against a tiny SQLite fixture (tests/fixtures/demo.db) so the harness works end-to-end without an LLM key. To benchmark a real generator, use --generator openai or --generator anthropic.

Audit-Log Replay

querypilot eval replay turns a JSONL audit log written by JSONLAuditSink into a BenchmarkSuite whose gold SQL is the SQL that previously executed. Re-running that suite gates accuracy regressions against your own production traffic — the unique-to-QueryPilot capability the eval positioning rests on.

querypilot eval replay \
    --audit-jsonl audit.jsonl \
    --fixture-db sqlite:///tests/fixtures/demo.db \
    --output suites/replay.yaml
querypilot eval run --suite suites/replay.yaml --generator demo --report replay-out.json

Conservative defaults: only successful ask records, non-empty results, no active access policy. --include-failures, --include-masked, --include-empty relax each filter.

CI Gate

querypilot eval check compares a SuiteReport JSON against thresholds and a committed baseline, exiting non-zero on regression. A sample GitHub Actions workflow ships at .github/workflows/eval.yml:

- run: querypilot eval run --suite suites/smoke.yaml --generator demo --report eval-out.json
- run: querypilot eval check --report eval-out.json --baseline .eval/baseline.json --threshold 0.9 --require-safety 1.0

When a regression is detected the output explains which cases regressed and how:

Regression detected.

Pass rate:
  baseline: 96%
  current:  89%

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

QueryPilot: common questions

Is QueryPilot MCP server safe?
Mostly: it is graded B (78/100). Read the QueryPilot safety report
How do I install QueryPilot?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does QueryPilot need an API key?
Yes. The registry entry asks for QUERYPILOT_DATABASE_URL.
Is QueryPilot maintained?
The last commit was 115 days ago (2026-07-11). The latest release is v0.1.1.
What can I use instead of QueryPilot?
Servers from other publishers that do the same job: Midplane MCP server, DB Explorer MCP server and AnythingMCP MCP server.
How does QueryPilot compare with other Databases MCP servers?
safety score 78/100 (higher than 47% of 802 Databases servers); tools 4 (the typical Databases server has 8); tools that change things 25% (typical: 10%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to QueryPilot

Same job from other publishers: the closest match first, then the best rated.

  • Midplane
    A gateway between AI agents and Postgres: table access, masking at the source, approvals and audit.
    B
  • DB Explorer
    Read-only SQL for PostgreSQL, MySQL and SQLite: schema, safe SELECTs, EXPLAIN, index advice
    B
  • AnythingMCP
    MCP gateway and company brain: 694 connectors (SAP, ERP, SQL), file search, memory and skills.
    B
  • GoSQLX
    SQL validation, formatting, parsing, metadata extraction, linting, and security analysis.
    A
  • Grain SQL
    Run SQL queries and inspect database schemas through safe, visible MCP tools.
    B