Veto SQL MCP
Veto is an official MCP server that provides deterministic SQL safety and cost analysis for Postgres. It allows AI agents to vet SQL statements before execution, returning structured verdicts (ok, warn, block) based on rules like destructive deletes or locking risks, without connecting to the production database or using LLMs.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://vetosql.com/mcpWhat its tools do
3 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Not annotated (3)
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Passed Official MCP Registry namespace is tied to vetosql.com ·
- Passed Endpoint is on the registry namespace domain ·
- Uptime 100% over 90 days
- Availability 2 of 2 checks passed in 30 days
What you can do with it
- Analyze Postgres SQL for safety risks before execution
- Block destructive queries like DELETE without WHERE
- Estimate query costs using scratch database EXPLAIN plans
- Enforce custom organizational policies on specific tables
Source and maintenance
- Last repository push
- Maintenance checked
Protocol and capabilities
- Server
- veto 0.4.0
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 3 advertised
- Resources
- Not advertised
- Resource templates
- Not advertised
- Prompts
- Not advertised
{
"tools": {
"listChanged": true
}
}Tools
3 advertised
analyze_sql — Analyze SQL safety & cost
Analyze Postgres SQL/migrations for destructive operations, locking risk, correctness traps (NULL handling that silently returns wrong results), anti-patterns, and query cost. Returns a deterministic verdict (ok/warn/block) with findings. Pass the optional `schema` argument (your CREATE TABLE/INDEX DDL) to also get EXPLAIN-based cost analysis run on a throwaway scratch Postgres — no separate tool or DB connection needed.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"sql"
],
"properties": {
"sql": {
"type": "string",
"description": "The SQL to analyze (one or more statements)."
},
"schema": {
"type": "string",
"description": "Optional CREATE TABLE/INDEX DDL. Providing it enables EXPLAIN-based cost analysis (seq scans on large tables, etc.) on a throwaway scratch Postgres; omit it for static safety analysis only."
},
"dialect": {
"type": "string",
"const": "postgres"
},
"rowCountHints": {
"type": "object",
"description": "Optional map of table name to estimated row count for realistic cost estimates.",
"additionalProperties": {
"type": "number"
}
}
},
"additionalProperties": false
}set_policies — Set custom org policies (Pro)
Replace the stored custom org policy set for your Pro key (this is also how you update or clear them: send the full new set to update, or an empty array to remove all). Each policy blocks or warns on an operation against matching tables (e.g. no DELETE on payments). Policies are declarative data — validated, never executed — and apply transparently to every later analyze_sql call made with this key. Use get_policies to read the current set.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"policies"
],
"properties": {
"policies": {
"type": "array",
"items": {
"type": "object",
"required": [
"table",
"operations",
"action"
],
"properties": {
"table": {
"type": "string",
"description": "Exact table name or glob, e.g. \"payments\", \"audit_*\", \"*\"."
},
"action": {
"enum": [
"block",
"warn"
],
"type": "string"
},
"message": {
"type": "string",
"description": "Optional human message shown in the finding."
},
"operations": {
"type": "array",
"items": {
"enum": [
"select",
"insert",
"update",
"delete",
"truncate",
"drop",
"alter"
],
"type": "string"
},
"description": "Operations this rule applies to."
}
},
"additionalProperties": false
},
"description": "The full policy set (replaces any previously stored set; max 50)."
}
},
"additionalProperties": false
}get_policies — Get custom org policies (Pro)
Return the custom org policy set currently stored for your Pro key — the same rules analyze_sql enforces on top of the built-ins. Read-only; returns an empty list if none are set. Use set_policies to change them.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}Prompts
Not advertised
Resources
Not advertised
90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-02: 3 of 3 checks answered
- 2026-11-03: 4 of 4 checks answered
- 2026-11-04: 4 of 4 checks answered
- 2026-11-05: 4 of 4 checks answered
- 2026-11-06: 4 of 4 checks answered
- 2026-11-07: 2 of 2 checks answered
- 2026-11-09: 1 of 1 checks answered
- 2026-11-10: 2 of 2 checks answered
- 2026-11-11: 1 of 1 checks answered
- 2026-11-12: 1 of 1 checks answered
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 2 of 2 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 4 of 4 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 3 of 3 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 2 of 2 (100%)
- Average latency
- 1264 ms
- 95th percentile latency
- 1340 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 1349 ms · 3 tool(s)
- · probe · passed · 1178 ms · metadata changed · 3 tool(s)
- · repository · passed · updated
- · repository · passed · metadata changed · unchanged
- · repository · passed · metadata changed · updated
- · registry · passed · metadata changed · Source metadata updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http veto-sql-mcp https://vetosql.com/mcpCodex
codex mcp add veto-sql-mcp --url https://vetosql.com/mcpCursor
{
"mcpServers": {
"veto-sql-mcp": {
"url": "https://vetosql.com/mcp"
}
}
}Cline
{
"mcpServers": {
"veto-sql-mcp": {
"type": "streamableHttp",
"url": "https://vetosql.com/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"veto-sql-mcp": {
"type": "http",
"url": "https://vetosql.com/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http veto-sql-mcp https://vetosql.com/mcpClaude Desktop
https://vetosql.com/mcpWindsurf
{
"mcpServers": {
"veto-sql-mcp": {
"serverUrl": "https://vetosql.com/mcp"
}
}
}Let your agent find its tools
Find servers like Veto SQL MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other developer tools servers
Do you run Veto SQL MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.