# Veto — SQL Safety & Cost Oracle MCP server

Deterministic safety, correctness & cost gate that vets Postgres SQL before your AI agent runs it.

## Links
- Registry page: https://www.getdrio.com/mcp/com-vetosql-veto
- Repository: https://github.com/metaweardigital/veto-mcp
- Website: https://vetosql.com

## Install
- Endpoint: https://vetosql.com/mcp
- Auth: Not captured

## Setup notes
- Remote endpoint: https://vetosql.com/mcp

## Tools
- 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. Endpoint: https://vetosql.com/mcp
- 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. Endpoint: https://vetosql.com/mcp
- 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. Endpoint: https://vetosql.com/mcp

## Resources
Not captured

## Prompts
Not captured

## Metadata
- Owner: com.vetosql
- Version: 0.5.0
- Runtime: Streamable Http
- Transports: HTTP
- License: Not captured
- Language: Not captured
- Stars: Not captured
- Updated: Jun 14, 2026
- Source: https://registry.modelcontextprotocol.io
