MCP server · Analytics
Gulliver MCP server
by laaielichter
Lets your AI test SQL queries on tiny samples first, estimate cost, and only run the full query inside a budget.
Gulliver is a helper that sits between your AI and your database. Before your AI runs a big, expensive SQL query, Gulliver tries it on a small slice of the data, estimates what the full run will cost, and warns you if something looks wrong. It is handy for anyone who asks an AI to write SQL against a real data warehouse and does not want a surprise bill.
What is an MCP server? The 30-second version
On its own, your AI can only chat. An MCP server is a small helper program that gives your AI a new skill or a connection to an app or service. This one connects your AI to your database, here DuckDB, Postgres, BigQuery or Snowflake, so the AI can inspect tables, check a query before running it, and run it safely when you ask. You do not need to understand the plumbing. You just talk to your AI, and Gulliver does the careful checking behind the scenes.
What this MCP server does
You ask your AI to write or run some SQL. The AI passes the query to Gulliver. Gulliver first looks at the tables to see how big they are. Then it checks the query for common mistakes, estimates the cost, and tries it on 1%, 3% and 10% of the data. It uses those small runs to predict what the full run will do. If everything is inside your budget, it runs the full query and gives you the rows, plus a short receipt of what happened.
What you can do with it
- Inspect your tables to see which ones are large and what columns they have
- Estimate the cost and row count of a query before it runs
- Catch common SQL mistakes like joins that multiply rows
- Get a suggested rewrite of a slow query, with a note on what changed
- Rehearse a query on small samples and predict the full run
- Run the full query only if it fits inside a budget you set
- Get a short receipt showing what was estimated, rehearsed and actually run
Try asking your AI
- “Which tables in my database are the biggest?”
- “Before you run this query, estimate how much it will cost and how many rows it will return.”
- “This join looks suspicious. Can you rehearse it on a small sample and tell me if it multiplies rows?”
- “Rewrite this query to be cheaper, but only if it returns exactly the same rows.”
What it gives back to you
You get plain answers in the chat: table sizes, a cost estimate, a warning if something looks risky, and a predicted row count for the full run. If the query actually runs, you get the rows back, with any secrets masked and personal data flagged. You can also ask for a short receipt that shows what was estimated, what was rehearsed, and what was actually run.
Before you start
What you need
- A database to point it at, such as a DuckDB file, Postgres, BigQuery or Snowflake
- The uv tool installed (the install command uses it under the hood)
- A gulliver.toml config file if you want to set connections and budgets
- An MCP client like Claude Desktop, Cursor, VS Code or Claude Code
Good to know
It can run real queries against your database, so set a budget and keep the read-only gate on to avoid surprise costs or unwanted changes.
Install it with your AI
Add Gulliver MCP server to your AI, no technical skills needed
You don't install anything by hand. You copy one prompt, paste it into an AI that can work on your computer, and it checks, installs and connects the server for you, asking you when it needs something.
Sign in to get the install prompt
Members get a ready-made prompt that lets the Claude desktop app check Gulliver MCP server, install it and connect it for them, step by step. You don't need any technical skills: you copy, paste and answer a few questions. Your connected AI can also find and install any of the 5,046 MCP servers here for you.
Who it's for
Data analysts, analytics engineers and anyone who asks an AI to write SQL against a real warehouse and wants to avoid expensive mistakes.





