# Gulliver

> Gulliver is an open-source MCP server for databases. SQL dress rehearsal for AI agents: cost preflight, sampled runs and budget-gated execution. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, API
- **Repository:** https://github.com/laaielichter/gulliver
- **GitHub stars:** 2
- **License:** MIT
- **MCP Registry name:** io.github.laaielichter/gulliver
- **Categories:** [databases](https://ai-powered.com/categories/databases), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add gulliver -- npx -y gulliver-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "gulliver": {
      "command": "npx",
      "args": [
        "-y",
        "gulliver-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "gulliver": {
      "command": "npx",
      "args": [
        "-y",
        "gulliver-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "gulliver": {
      "command": "npx",
      "args": [
        "-y",
        "gulliver-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

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

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add gulliver -- npx -y gulliver-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.gulliver]
command = "npx"
args = ["-y", "gulliver-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "gulliver": {
      "command": "npx",
      "args": [
        "-y",
        "gulliver-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user gulliver npx -- -y gulliver-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "gulliver": {
      "command": "npx",
      "args": [
        "-y",
        "gulliver-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "gulliver": {
      "command": "npx",
      "args": [
        "-y",
        "gulliver-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "gulliver": {
      "command": "npx",
      "args": [
        "-y",
        "gulliver-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "gulliver": {
      "command": "npx",
      "args": [
        "-y",
        "gulliver-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "gulliver": {
      "command": "npx",
      "args": [
        "-y",
        "gulliver-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "gulliver": {
      "command": "npx",
      "args": [
        "-y",
        "gulliver-mcp"
      ]
    }
  }
}
```

## Tools

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_inspect` (name 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_run` (name 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_check` (name 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

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

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/gulliver
