Gulliver MCP logo

Gulliver MCP

Rehearses SQL on sampled data, estimates cost, applies safe fixes, and runs full queries within defined budgets.

Install Gulliver MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "gulliver-mcp": {
      "command": "uvx",
      "args": [
        "gulliver-mcp"
      ],
      "env": {
        "GULLIVER_DSN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env GULLIVER_DSN=YOUR_VALUE_HERE --transport stdio gulliver-mcp -- uvx gulliver-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 16 tools correctly ().

Overview

gulliver-mcp places a guarded SQL workflow between an AI agent and DuckDB, Postgres, BigQuery, or Snowflake. It inspects metadata, preflights queries, rehearses them on 1%, 3%, and 10% samples, predicts full-scale behavior, and runs the complete query only when budget conditions are met. Its MCP tools also cover SQL rewrites, lineage, schema drift, data diffs, translation, incremental models, quality checks, query history, and pull-request review. Reach for it when agent-generated SQL needs cost controls, scale testing, safety checks, or CI validation.

Use cases

  • Rehearse agent-generated SQL before scanning large tables
  • Block queries that exceed cost or safety budgets
  • Rewrite slow SQL and compare estimated savings
  • Check schema drift and column-level downstream impact
  • Review data model changes in CI and pull requests

Key features

  • Sampled SQL rehearsal with full-run predictions
  • Query cost, scale, read-only, and budget guards
  • SQL rewriting with verification and equivalence labels
  • Data masking and personal-data detection in results
  • Cross-engine SQL translation and data diffs
  • CI linting, quality checks, and pull-request review

Tools16

What Gulliver MCP lets your agent do. Expand a tool for its parameters.

Verified live~6.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

4/4 checks healthy over the last 18d

What it can do

From the 16 tools this server returned when we ran it; 16 declare their own safety hints.

Read-only tools · 16
Network at startup2 connections
Files written at startup15

Observed 2026-11-18 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 18d ago via OSV.dev · gulliver-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit5d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed16Callable tools this server registers over MCP.

How Gulliver MCP works

What gulliver-mcp does

gulliver-mcp gives AI agents a controlled workflow for testing SQL against small samples before touching a large dataset. It can inspect table metadata, estimate bytes, rows, and cost, identify scale risks, and predict full-query behavior from rehearsals on 1%, 3%, and 10% samples. The server supports DuckDB, Postgres, BigQuery, and Snowflake.

A run can be blocked when it exceeds a configured budget, requires rehearsal, or needs approval. Returned rows are marked as untrusted data; secrets are masked and personal data is flagged. Read-only checks also reject side-effect functions, SQL hidden in strings, and disallowed file access.

How it works

The intended sequence starts with gulliver_inspect for metadata, followed by gulliver_preflight for estimates, scale lint, read-only validation, and budget checks. gulliver_rehearse executes sampled versions of a query, fits a growth curve, and returns a full-run prediction with a confidence range. gulliver_run performs the complete query only when the applicable budget and approval conditions allow it. gulliver_receipt produces a Markdown record covering estimates, rehearsals, approvals, execution, and predicted-versus-actual results.

Every response includes a status and next step. gulliver_fix can rewrite SQL and label whether a change preserves rows exactly, relies on assumptions, may affect null behavior, or changes results. With a connection, it compares estimated costs for the original and rewritten queries; verification can test rewrites against generated edge cases.

Setup and configuration

The package is available as an npm launcher for the Python gulliver-mcp package and runs the Python implementation through uv. The Python package supports Python 3.10 through 3.13. A local quick start installs the package with pip install gulliver-mcp, creates a demonstration DuckDB database with gulliver demo, and points the server or CLI at it with GULLIVER_DSN.

Gulliver also supports configuration in gulliver.toml. Data quality checks can be defined there and run in CI. CLI workflows include linting, baseline-aware linting, pruning, calibration, receipts, column-level diffs, and review commands.

Tools and capabilities

  • Inspect table sizes, row counts, bytes, partitions, and columns.
  • Preflight SQL with estimates, 15 scale-lint rules, safety checks, and optional fixes.
  • Rehearse sampled queries and predict full-scale cost and result growth.
  • Enforce per-agent, per-session, and runaway-query budgets.
  • Mask secrets, flag personal data, and mark returned rows as untrusted.
  • Analyze column impact and drift from SQL models or a dbt manifest.
  • Compare datasets by key, including comparisons across engines.
  • Translate SQL between DuckDB, Postgres, BigQuery, and Snowflake.
  • Assess incremental model safety and estimate skipped rows.
  • Run checks for uniqueness, nulls, accepted values, ranges, freshness, and row-count changes.
  • Group query history by shape, identify recurring costs, and review model changes for lint, impact, and monthly cost.

Limitations and notes

Full execution is conditional rather than automatic: a query may return needs_rehearsal or needs_approval. DuckDB file access is sandboxed to the database folder and current folder unless additional access is allowed. SQL rewrites are not all guaranteed to return identical rows; claims of exact equivalence depend on checked column types, while other modes report assumptions or possible differences. The project is MIT-licensed.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gulliver MCP

gulliver-mcp is an MCP server that connects AI agents to DuckDB, Postgres, BigQuery, and Snowflake for guarded SQL work. Its main tools inspect databases, preflight and rehearse queries on samples, predict full-run cost, enforce budgets, execute approved queries, generate receipts, and rewrite SQL when safer alternatives exist.

Install the Python package with `pip install gulliver-mcp`; the npm package provides a launcher that runs the Python implementation through `uv`. For a local test, run `gulliver demo`, set `GULLIVER_DSN` to the generated DuckDB file, and use the CLI or MCP client.

gulliver-mcp supports DuckDB, Postgres, BigQuery, and Snowflake. It can inspect metadata, preflight and rehearse SQL, predict full-run behavior, and translate SQL between these engines.

Yes, gulliver-mcp works with Cursor. It is also listed for Claude Code, Codex, Gemini CLI, Claude Desktop, VS Code, Windsurf, and other MCP clients.

Yes, gulliver-mcp can stop queries that fail budget, rehearsal, read-only, or approval checks. Its guards detect side-effect functions, SQL hidden in strings, disallowed file access, runaway loops, secrets, and personal data in results.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGulliver MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gulliver-mcp?style=directory)](https://allmcps.com/mcp/gulliver-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/gulliver-mcp"><img src="https://allmcps.com/api/badge/gulliver-mcp?style=directory" alt="Gulliver MCP on AllMCPs" /></a>