Gulliver
SQL dress rehearsal for AI agents: cost preflight, sampled runs and budget-gated execution
The repository was last updated 4 days ago and is published under MIT.
Gulliver is an open-source MCP server for databases. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted, API
- Runs
- Locally
- What it can do
- Can change data (1 tool)
- GitHub stars
- 2
- Last commit
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add gulliver -- npx -y gulliver-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"gulliver": {
"command": "npx",
"args": [
"-y",
"gulliver-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"gulliver": {
"command": "npx",
"args": [
"-y",
"gulliver-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"gulliver": {
"command": "npx",
"args": [
"-y",
"gulliver-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"gulliver": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"gulliver-mcp"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add gulliver -- npx -y gulliver-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.gulliver]
command = "npx"
args = ["-y", "gulliver-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"gulliver": {
"command": "npx",
"args": [
"-y",
"gulliver-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "gulliver": { "command": "npx", "args": [ "-y", "gulliver-mcp" ] } } }Or run: gemini mcp add -s user gulliver npx -- -y gulliver-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "gulliver": { "command": "npx", "args": [ "-y", "gulliver-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "gulliver": { "command": "npx", "args": [ "-y", "gulliver-mcp" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "gulliver": { "command": "npx", "args": [ "-y", "gulliver-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "gulliver": { "command": "npx", "args": [ "-y", "gulliver-mcp" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "gulliver": { "command": "npx", "args": [ "-y", "gulliver-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "gulliver": { "command": "npx", "args": [ "-y", "gulliver-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "gulliver": { "command": "npx", "args": [ "-y", "gulliver-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Gulliver
Gulliver sits between an agent and a data warehouse and treats every query as something to rehearse first. The README's example is a self-join on a non-unique key: a 5-million-row table where the rehearsal on 1%, 3% and 10% samples predicts about 256 million output rows, close to the 255 million the real run returned.
Beyond sizing, it refuses unsafe SQL. A read-only gate blocks side-effect functions, SQL hidden in strings and file access, and DuckDB is sandboxed in the engine. Returned rows are marked untrusted, secrets are masked and personal data is flagged, while a runaway guard stops agents that loop on the same expensive query or overspend a per-agent budget.
It works with DuckDB, Postgres, BigQuery and Snowflake, and installs from PyPI or npm as an MCP server or CLI. A gulliver demo command creates a local DuckDB database with 5 million events, so you can try it without a warehouse. Exit codes and lint output (SARIF, pre-commit, GitHub Action) support use in CI.
Tools this server provides (14)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 14 tools changes data; 11 names don't say.
From the server's own tool labels and tool names; not verified by us.
- gulliver_inspectName suggests: reads
- Table sizes, rows, bytes, partitions and columns from metadata
- gulliver_preflight
- Estimates cost and runs scale lint, read-only and budget gates
- gulliver_rehearse
- Runs the query on 1%, 3% and 10% samples and predicts the full run
- gulliver_runName suggests: changes
- Runs the full query only inside the budget
- gulliver_receipt
- Markdown proof of what was estimated, approved and run
- gulliver_fix
- Rewrites SQL for the agent and labels each change
- gulliver_impact
- Column-level lineage showing what breaks when a column changes
- gulliver_drift
- Detects schema changes since the last snapshot
- gulliver_diff
- Key-based data diff between two models
- gulliver_translate
- Translates SQL between DuckDB, Postgres, BigQuery and Snowflake
- gulliver_incremental
- Assesses whether a model can be built incrementally
- gulliver_checkName suggests: reads
- Cheap data quality checks such as unique keys and freshness
- gulliver_top
- Ranks repeated queries by cost with fixes
- gulliver_review
- Reviews a pull request for lint, breaking changes and cost
What it does
- Cost preflight
- Estimates bytes, rows and money before a query runs, with 15 scale-lint rules.
- Sampled rehearsal
- Runs 1%, 3% and 10% samples and predicts the full result with a confidence range.
- Auto-fix rewrites
- Rewrites slow SQL and labels whether the same rows are guaranteed.
- Read-only gate
- Blocks side-effect functions, hidden SQL and file reads.
- Result guard
- Masks secrets, flags personal data and marks rows as untrusted.
- Run receipts
- Produces a Markdown record of what was estimated, approved and run.
Good for
- Stop an agent from scanning a multi-billion-row table by accident
- Predict whether a join will multiply rows before running it in full
- Lint SQL changes in pull requests and CI
- Check what breaks downstream when a column is changed or dropped
- Translate queries between DuckDB, Postgres, BigQuery and Snowflake
Pricing
Open source
Open-source MCP server and CLI
Gulliver FAQ
Which databases does Gulliver support?
DuckDB, Postgres, BigQuery and Snowflake.
Can I try Gulliver without a warehouse?
Yes. The gulliver demo command creates a local DuckDB database with 5 million events.
How is Gulliver installed?
As gulliver-mcp from PyPI or npm, over stdio or Streamable HTTP.
Does the full query always run?
No. It runs only inside the budget; otherwise it answers that rehearsal or approval is needed.
Is Gulliver free?
Yes. Gulliver is open source, so you can use and self-host it for free.
How do I add Gulliver to Claude Code?
Run this command in your terminal: claude mcp add gulliver -- npx -y gulliver-mcp
What are the best alternatives to Gulliver?
The closest alternatives to Gulliver are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


