ALL PLANS

MCP database security: your agent checks SQL as it writes it

Connect your coding agent to Vericto over the Model Context Protocol. Before a commit exists, every migration and query is evaluated against your workspace's rules, with the same engine as the proxy and the CLI.

Sample output, as the docs describe it.

A remote MCP server, with nothing to install

Vericto runs a remote MCP server (Streamable HTTP) that authenticates with an API key from your workspace with the ci_dryrun:execute scope. A connected agent calls check_sql while it generates SQL and gets the same verdict as the CLI or the API: BLOCKED, FLAGGED, MONITORED or ALLOWED, with the rule that fired and a suggested fix.

Install in one click

Pick the server and your client: the buttons open Cursor or VS Code with the configuration filled in, and for Claude you copy one command or one URL. Sign in (OAuth) is the one-click option: the API key and local servers also need a key or your database URL.

The quickest way for a person: one click, sign in in the browser and approve, with no key to copy.

The vericto-account server at https://mcp.vericto.com/mcp/account, with no API key. The first time, the client opens Vericto in the browser: you sign in, pick the workspace and approve the permissions. To use check_sql, tick sql:check on the consent screen (it spends the month's checks). It acts as you, with your role.

Claude Code

claude mcp add --scope user --transport http vericto-account https://mcp.vericto.com/mcp/account

Then, in a session, run /mcp and choose Authenticate.

Claude Desktop · claude.ai

In Customize → Connectors → Add custom connector, paste this URL and, under Authentication, choose Sign in now. On Team and Enterprise, an owner adds it under Organization settings → Connectors and each person connects with their own account.

https://mcp.vericto.com/mcp/account

The vericto server at https://mcp.vericto.com/mcp, meant for agents and CI. Create an API key with only the ci_dryrun:execute scope. Cursor opens an Install MCP server? window with the configuration filled in. The Authorization header reads Bearer ${env:VERICTO_API_KEY}: keep it if VERICTO_API_KEY is set in your environment (restart Cursor after setting it), or replace it with Bearer followed by your key. In that case Cursor stores the key in ~/.cursor/mcp.json in plain text, which is why it should carry only the ci_dryrun:execute scope. VS Code asks for the key once and stores it encrypted.

Claude Code

claude mcp add --scope user --transport http vericto https://mcp.vericto.com/mcp \
  --header 'Authorization: Bearer ${VERICTO_API_KEY}'

Claude Desktop · claude.ai

In Customize → Connectors → Add custom connector, use the URL https://mcp.vericto.com/mcp and, under Authentication, No sign-in. Under Request headers, add Authorization with the value Bearer followed by your key: Claude keeps it in the connector, not in a file. If you do not see Request headers, use the OAuth tab or the mcp-remote bridge in the per-client setup.

The vericto-db server: vericto-proxy mcp runs in Docker on your machine, with the built-in rules and no account. It connects to your PostgreSQL and gives the agent execute_sql, describe_schema, check_sql and whoami, never the database credential. The links use the ghcr.io/vericto/proxy:5.2.1 image.

First, once: create a read-only role (the SQL is in the docs) and save the connection URL in ~/.config/vericto/db.url, with mode 600:

mkdir -p ~/.config/vericto && chmod 700 ~/.config/vericto
printf '%s' 'postgres://vericto_agent_ro:…@db.example.com:5432/shop?sslmode=verify-full' > ~/.config/vericto/db.url
chmod 600 ~/.config/vericto/db.url

macOS and Windows (Docker Desktop)

Linux

On Linux, Docker needs --user with your uid:gid to read the file. VS Code asks for it; the Cursor link uses 1000:1000: if id -u or id -g print something else, change it in ~/.cursor/mcp.json.

Claude Code

On macOS and Linux; the shell fills in your uid:gid:

claude mcp add --scope user vericto-db -- \
  docker run -i --rm --user "$(id -u):$(id -g)" \
    -v ~/.config/vericto/db.url:/run/secrets/db.url:ro \
    ghcr.io/vericto/proxy:5.2.1 /usr/local/bin/vericto-proxy mcp --database-url-file /run/secrets/db.url

Claude Desktop

In Settings → Developer → Edit Config, add the server to claude_desktop_config.json with your home's absolute path instead of /Users/me (no ~) and restart Claude Desktop.

{
  "mcpServers": {
    "vericto-db": {
      "command": "docker",
      "args": ["run", "-i", "--rm",
               "-v", "/Users/me/.config/vericto/db.url:/run/secrets/db.url:ro",
               "ghcr.io/vericto/proxy:5.2.1", "/usr/local/bin/vericto-proxy", "mcp",
               "--database-url-file", "/run/secrets/db.url"]
    }
  }
}

Cursor and VS Code show the configuration and ask you to confirm before they add the server. The docs have the local server step by step and the troubleshooting.

Connect your client

Create an API key with only the ci_dryrun:execute scope in Dashboard → API Keys (it is shown once) and keep it in the VERICTO_API_KEY environment variable, never in a file in your repository. Then pick your client:

If your client supports OAuth (ChatGPT, Claude, Claude Code, Cursor), you can connect it without an API key to https://mcp.vericto.com/mcp/account, your account's server: the client opens Vericto in your browser, you sign in, pick the workspace and approve the permissions. That server acts as you, with your role: it reads the whole workspace's configuration, rules and CI reports, diagnoses the proxy, explains blocks and searches the docs. check_sql works only if you tick the sql:check permission (it spends the month's checks). Write permissions (tickets and configuration changes) cannot be approved over OAuth yet. For an autonomous agent or CI, use the API key on /mcp.

# ~/.zshrc or ~/.bashrc
export VERICTO_API_KEY="vtro_..."

Run this once. The single quotes store the ${VERICTO_API_KEY} reference, not the key: Claude Code reads it from the environment when it starts. In a new session, /mcp should list vericto as connected, with its six tools.

claude mcp add --scope user --transport http vericto https://mcp.vericto.com/mcp \
  --header 'Authorization: Bearer ${VERICTO_API_KEY}'

With OAuth, without an API key: add your account's server, then in Claude Code run /mcp and choose to authenticate; the browser opens to approve it.

claude mcp add --scope user --transport http vericto-account https://mcp.vericto.com/mcp/account

Format per the official docs: code.claude.com

With OAuth, without an API key: in Customize → Connectors, choose Add custom connector with this URL and, under Authentication, Sign in now. Claude opens Vericto so you sign in and approve the connection. On Team and Enterprise, an Owner adds it in Organization settings → Connectors and each person connects with their own account.

https://mcp.vericto.com/mcp/account

With the API key, on the /mcp server:

In Customize → Connectors, choose Add custom connector with the URL https://mcp.vericto.com/mcp. Under Authentication choose No sign-in and, under Request headers, add the authorization header with this value, including Bearer and the space:

Bearer <your Vericto API key>

Anthropic says Request headers is in beta for a limited set of organizations, and Claude connects from its cloud, not from your machine. On Team and Enterprise, an owner adds the connector in Organization settings → Connectors and everyone uses that same key. If you don't see Request headers, Claude Desktop can use the mcp-remote bridge (needs Node.js): add it in Settings → Developer → Edit Config and restart the app.

{
  "mcpServers": {
    "vericto": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote", "https://mcp.vericto.com/mcp",
        "--header", "Authorization:${AUTH_HEADER}"
      ],
      "env": { "AUTH_HEADER": "Bearer <your Vericto API key>" }
    }
  }
}

mcp-remote is a community project, not an Anthropic one. The key sits in claude_desktop_config.json, a local file outside your repositories. No spaces around the : in --header, as its docs advise for Windows.

Format per the official docs: claude.com · modelcontextprotocol.io · mcp-remote

The Codex CLI, the IDE extension and the ChatGPT desktop app share the Codex configuration. Add the server to ~/.codex/config.toml: Codex sends the value of VERICTO_API_KEY in the Authorization header, so the key never lands in the file. Then /mcp or codex mcp list should list vericto.

[mcp_servers.vericto]
url = "https://mcp.vericto.com/mcp"
bearer_token_env_var = "VERICTO_API_KEY"

Format per the official docs: learn.chatgpt.com

ChatGPT connects with OAuth; it cannot send an API key. In chatgpt.com/plugins select + → Add custom MCP server, give it a name, choose Public endpoint with this URL and OAuth as the authentication:

https://mcp.vericto.com/mcp/account

ChatGPT opens Vericto: you sign in, pick the workspace and approve the read permissions (and sql:check if you want it to check SQL). ChatGPT uses your account's server, not the API key one. If you use Codex or the OpenAI API, see those tabs.

Format per the official docs: developers.openai.com · developers.openai.com

In the Responses API, the mcp tool sends the key in headers. OpenAI calls the server from its own infrastructure:

import os
from openai import OpenAI

client = OpenAI()
response = client.responses.create(
    model="gpt-6-astra",
    input="Check this migration with Vericto before I run it: DELETE FROM users;",
    tools=[{
        "type": "mcp",
        "server_label": "vericto",
        "server_url": "https://mcp.vericto.com/mcp",
        "headers": {"Authorization": f"Bearer {os.environ['VERICTO_API_KEY']}"},
        "require_approval": "never",
    }],
)
print(response.output_text)

With the Agents SDK for Python, MCPServerStreamableHttp connects from your own process:

import asyncio
import os
from agents import Agent, Runner
from agents.mcp import MCPServerStreamableHttp

async def main() -> None:
    async with MCPServerStreamableHttp(
        name="vericto",
        params={
            "url": "https://mcp.vericto.com/mcp",
            "headers": {"Authorization": f"Bearer {os.environ['VERICTO_API_KEY']}"},
        },
    ) as vericto:
        agent = Agent(
            name="Assistant",
            instructions="Check every SQL statement with check_sql before you run it.",
            mcp_servers=[vericto],
        )
        result = await Runner.run(agent, "Is UPDATE accounts SET balance = 0; safe to run on postgres?")
        print(result.final_output)

asyncio.run(main())

Format per the official docs: developers.openai.com · openai.github.io

In the agent panel open … → MCP Servers → Manage MCP Servers → View raw config (the global ~/.gemini/config/mcp_config.json, which Antigravity CLI reads too) and add the server. Antigravity uses serverUrl:

{
  "mcpServers": {
    "vericto": {
      "serverUrl": "https://mcp.vericto.com/mcp",
      "headers": { "Authorization": "Bearer <your Vericto API key>" }
    }
  }
}

Antigravity's docs don't describe environment variables in headers, so the key goes in the file. Use the global one, never the project one (.agents/mcp_config.json), so it never ends up in your repository.

Format per the official docs: antigravity.google

If you still use Gemini CLI (for some accounts, Google replaced it with Antigravity CLI on June 18, 2026), add the server to ~/.gemini/settings.json. Gemini CLI uses httpUrl for Streamable HTTP and resolves ${VERICTO_API_KEY} from the environment when it loads the settings. Then /mcp should list vericto as connected.

{
  "mcpServers": {
    "vericto": {
      "httpUrl": "https://mcp.vericto.com/mcp",
      "headers": { "Authorization": "Bearer ${VERICTO_API_KEY}" }
    }
  }
}

Format per the official docs: geminicli.com

Add the server to ~/.cursor/mcp.json (global). Cursor replaces ${env:VERICTO_API_KEY} with the environment variable, so the key never lands in the file:

{
  "mcpServers": {
    "vericto": {
      "url": "https://mcp.vericto.com/mcp",
      "headers": { "Authorization": "Bearer ${env:VERICTO_API_KEY}" }
    }
  }
}

With OAuth, without an API key: add your account's server with "url" only. Cursor opens the browser to approve it:

{
  "mcpServers": {
    "vericto-account": {
      "url": "https://mcp.vericto.com/mcp/account"
    }
  }
}

Format per the official docs: cursor.com

Run MCP: Open User Configuration from the Command Palette (or use .vscode/mcp.json in the workspace) and add the server. VS Code asks for the key the first time it connects, so it never lands in the file. The tools show up in Copilot Chat in agent mode.

{
  "inputs": [
    { "type": "promptString", "id": "vericto-api-key", "description": "Vericto API key", "password": true }
  ],
  "servers": {
    "vericto": {
      "type": "http",
      "url": "https://mcp.vericto.com/mcp",
      "headers": { "Authorization": "Bearer ${input:vericto-api-key}" }
    }
  }
}

Format per the official docs: code.visualstudio.com

In Windsurf, now Devin Desktop, open the … menu of the Cascade panel and, in the MCPs section, Open MCP config file. Add the server: ${env:VERICTO_API_KEY} is replaced with the environment variable, so the key never lands in the file.

{
  "mcpServers": {
    "vericto": {
      "serverUrl": "https://mcp.vericto.com/mcp",
      "headers": { "Authorization": "Bearer ${env:VERICTO_API_KEY}" }
    }
  }
}

Format per the official docs: docs.devin.ai

Kiro CLI and the Kiro IDE read ~/.kiro/settings/mcp.json. Add the server to that file. Kiro only expands approved environment variables: in the IDE, add VERICTO_API_KEY to Mcp Approved Env Vars. Then kiro-cli mcp list should list vericto.

{
  "mcpServers": {
    "vericto": {
      "url": "https://mcp.vericto.com/mcp",
      "headers": { "Authorization": "Bearer ${VERICTO_API_KEY}" }
    }
  }
}

Format per the official docs: kiro.dev

Run zed: open settings file from the Command Palette and add the server under context_servers. Zed's docs don't describe environment variables in headers, so the key goes in your user settings.json, never in a project's .zed/settings.json.

{
  "context_servers": {
    "vericto": {
      "url": "https://mcp.vericto.com/mcp",
      "headers": { "Authorization": "Bearer <your Vericto API key>" }
    }
  }
}

Format per the official docs: zed.dev

Click the MCP Servers icon, open Configure → Configure MCP Servers and add the server. Set "type": "streamableHttp": without it, Cline uses SSE. Its docs don't describe environment variables in headers, so the key goes in that settings file, outside your repositories.

{
  "mcpServers": {
    "vericto": {
      "type": "streamableHttp",
      "url": "https://mcp.vericto.com/mcp",
      "headers": { "Authorization": "Bearer <your Vericto API key>" }
    }
  }
}

Format per the official docs: docs.cline.bot

Any client that supports remote MCP servers over Streamable HTTP with custom headers can connect: the URL is https://mcp.vericto.com/mcp and the key goes in Authorization: Bearer (or in X-API-Key). The file name and the syntax for reading environment variables depend on the client. If your client only supports local (stdio) servers, the mcp-remote bridge from the Claude Desktop tab works the same way.

{
  "mcpServers": {
    "vericto": {
      "url": "https://mcp.vericto.com/mcp",
      "headers": { "Authorization": "Bearer <API key, or your client's env-var reference>" }
    }
  }
}

Formats checked against each client's official docs on October 27, 2026; the API key tested end to end with Claude Code and Kiro; OAuth end to end on staging with a test client. Never paste the key into a committed file. The docs have the troubleshooting and the OAuth details.

The dashboard's MCP connections page with sample data: three active connections, claude-desktop, claude-code and cursor, each with its permissions (Setup, Docs, Rules or CI reports read, and Check SQL on two of them), status, last use and expiry.
MCP connections in the dashboard, with sample data: each client connected to your account, the permissions you approved (Check SQL only where you ticked it) and when it was last used.

Six tools

  • check_sql: evaluates a script or a list of statements against the workspace rules and returns a verdict per statement, with its line.
  • whoami: plan, checks left this month, ruleset version and the workspace databases with their dialect.
  • list_rules and show_rule: the effective rule catalogue and the detail of each rule, including its AST condition.
  • list_reports and show_report: the check history and the full result of each one.

Sensitive columns over MCP

If a finding carries approved_query, the query reads a masked column: that is the only approved query and the agent must run it instead of the original. MCP cannot force it; only the TCP proxy enforces masking.

Quota and security

  • Checks per month, shared with the CLI and the validation API: 1,000 on Free, 10,000 on Builder, unlimited on Team and Enterprise. Each evaluated statement counts as one check; the read-only tools use no quota.
  • The API key determines the workspace, and a key with only ci_dryrun:execute cannot read the audit trail or change rules.
  • Vericto only analyses the SQL text: it does not connect to your database or run anything.

Keep reading

Try it on your own SQL

The Free plan includes 500K queries a month and 1,000 CLI and MCP checks, with no credit card.

Start free