# Vericto Proxy mode (local, PostgreSQL and MySQL)

Vericto Proxy mode (local, PostgreSQL and MySQL) is an MCP server for Claude Code that checks PostgreSQL and MySQL queries before execution. It blocks statements that fail its rules.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 6 repo stars
- Author: vericto
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/vericto/vericto-proxy
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/vericto-proxy-mode-local-postgresql-and-mysql

## What it does

Vericto Proxy mode inspects SQL before passing it to PostgreSQL or MySQL. Queries that fail the configured checks are blocked. The server runs in Proxy mode with a local database.

Docker starts the server image, tagged `5.2.0`. Setup requires `VERICTO_API_KEY` and `VERICTO_DATABASE_ID`.

## Requirements
- Needs: Docker
- Environment variables: `VERICTO_API_KEY`, `VERICTO_DATABASE_ID` — keys and tokens: ask the human for the values, never commit them or put them in shared files.
- Works with: PostgreSQL

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env VERICTO_API_KEY=<VERICTO_API_KEY> --env VERICTO_DATABASE_ID=<VERICTO_DATABASE_ID> --transport stdio vericto-proxy-mode-local-postgresql-and-mysql -- docker run -i --rm -e VERICTO_API_KEY -e VERICTO_DATABASE_ID docker.io/vericto/vericto-proxy:5.2.0@sha256:0fa68edbf196818ed43cca4c2c381e1913c39c9cc84fa63f7321b7358d4dded1
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add vericto-proxy-mode-local-postgresql-and-mysql --env VERICTO_API_KEY=<VERICTO_API_KEY> --env VERICTO_DATABASE_ID=<VERICTO_DATABASE_ID> -- docker run -i --rm -e VERICTO_API_KEY -e VERICTO_DATABASE_ID docker.io/vericto/vericto-proxy:5.2.0@sha256:0fa68edbf196818ed43cca4c2c381e1913c39c9cc84fa63f7321b7358d4dded1
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "vericto-proxy-mode-local-postgresql-and-mysql": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "-e",
                "VERICTO_API_KEY",
                "-e",
                "VERICTO_DATABASE_ID",
                "docker.io/vericto/vericto-proxy:5.2.0@sha256:0fa68edbf196818ed43cca4c2c381e1913c39c9cc84fa63f7321b7358d4dded1"
            ],
            "env": {
                "VERICTO_API_KEY": "<VERICTO_API_KEY>",
                "VERICTO_DATABASE_ID": "<VERICTO_DATABASE_ID>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "vericto-proxy-mode-local-postgresql-and-mysql": {
            "type": "stdio",
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "-e",
                "VERICTO_API_KEY",
                "-e",
                "VERICTO_DATABASE_ID",
                "docker.io/vericto/vericto-proxy:5.2.0@sha256:0fa68edbf196818ed43cca4c2c381e1913c39c9cc84fa63f7321b7358d4dded1"
            ],
            "env": {
                "VERICTO_API_KEY": "<VERICTO_API_KEY>",
                "VERICTO_DATABASE_ID": "<VERICTO_DATABASE_ID>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e VERICTO_API_KEY=<VERICTO_API_KEY> -e VERICTO_DATABASE_ID=<VERICTO_DATABASE_ID> vericto-proxy-mode-local-postgresql-and-mysql docker run -i --rm -e VERICTO_API_KEY -e VERICTO_DATABASE_ID docker.io/vericto/vericto-proxy:5.2.0@sha256:0fa68edbf196818ed43cca4c2c381e1913c39c9cc84fa63f7321b7358d4dded1
```
Replace <…> with your own values

## When to use it
- check a PostgreSQL query before it runs
- block SQL that fails the rules
- connect an AI agent to a local MySQL database

## Example prompts
- Check this PostgreSQL query before running it.
- Run this MySQL query only if it passes the rules.

## Similar
- [read-only-local-mysql-mcp-server](https://affpapa.org/en/nevibecode/mcp/read-only-local-mysql-mcp-server.md) — MCP server · ★ 7 repo stars
- [sql-code-review](https://affpapa.org/en/nevibecode/skills/sql-code-review.md) — skill · 14060 installs
- [postgresql-best-practices](https://affpapa.org/en/nevibecode/skills/postgresql-best-practices.md) — skill · 1600 installs
- [postgresql](https://affpapa.org/en/nevibecode/skills/devops-skills-postgresql.md) — skill · 469 installs
- [PostgreSQL Database Administration](https://affpapa.org/en/nevibecode/skills/postgresql-database-administration.md) — skill · 454 installs
- [postgresql-expert](https://affpapa.org/en/nevibecode/skills/postgresql-expert.md) — skill · 427 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
