SQL
MCP server by limetry Verified · npm:@limetry
Gates write SQL on Postgres and Supabase by checking each action intent against a Limetry policy before it runs. Built for teams that want approval and audit control over agent database writes.
Install SQL
Built from the published package, never by AI.
claude mcp add sql -- npx -y @limetry/sqlRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"sql": {
"args": [
"-y",
"@limetry/sql"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"sql": {
"args": [
"-y",
"@limetry/sql"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"sql": {
"args": [
"-y",
"@limetry/sql"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add sql -- npx -y @limetry/sql{
"mcpServers": {
"sql": {
"args": [
"-y",
"@limetry/sql"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add sql npx -y @limetry/sqlGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the sql block.
About
The SQL package, @limetry/sql, is an MCP server for Postgres and Supabase that works as a write gate. The adapter owns DATABASE_URL. Before a write runs, it submits an action intent to a Limetry server, which returns allow, deny, or approval_required, along with reasons and a signed outcome receipt.
Limetry is open source under the MIT license and can run as a self-hosted node. Policies can allow or block action types and resource patterns, set cost caps, and require approval for high-risk actions. Audit records are privacy-safe by default. The source notes that outcomes are advisory until the agent loop or resource middleware enforces them, so the project suits teams that want governance over agent database writes.
Written from the project's README and checked against it.
What you need
- A Postgres or Supabase database
- A DATABASE_URL for the database
- A Limetry server (self-hosted node)
- npm to install the published packages
Try asking
- Check this UPDATE statement against the write policy before running it
- Ask for approval before any production table change goes through
- Show the recent audit trail for database write attempts
Good to know
- Outcomes are advisory by default and must be enforced in the agent loop or middleware
- Agents can bypass Limetry unless downstream resources reject unverified actions
- Audit stores a privacy-safe record with audit_mode=minimal by default
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Gate agent writes to a Postgres database
- Require approval for risky SQL changes
- Keep an audit trail of agent database actions
Alternatives to SQL
All alternatives →Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.
ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.
Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.
MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.
Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.
MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.
Compare with Supabase, ArcadeDB MCP Server or DBHub
SQL: common questions
Does Limetry block SQL writes on its own?
No. The source says outcomes are advisory by default. Enforcement has to happen in the agent loop, the adapter, or downstream middleware that rejects actions without a verified evaluation or approval.
What does the audit log store?
Audit stores a privacy-safe record, with audit_mode=minimal as the default. The source advises not to put secrets or chat transcripts in metadata or details.
Does the SQL adapter work with Supabase?
Yes. The source describes @limetry/sql as a Postgres and Supabase MCP write gate that owns DATABASE_URL.
How do I install SQL?
In Claude Code run claude mcp add sql -- npx -y @limetry/sql. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is SQL the official server?
SQL is published by npm:@limetry from its verified domain in the official MCP Registry.
Is SQL free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is SQL safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to SQL?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does SQL work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
