Skip to main content

valv

sh.valv/mcp

v0.6.2Updated Jul 28, 2026stdio · npm

Let coding agents query any SQL database safely. Read-only by default and scoped by your policies.

Install

Needs 1 secret. Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add mcp -e 'DATABASE_URL=<your-database-url>' -- npx -y @valv/[email protected]

Configuration

8 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • DATABASE_URL
    Env var· required· secret
    Database connection string. PostgreSQL, MySQL, SQLite, CockroachDB, or a ClickHouse HTTP URL.
  • VALV_PROVIDER
    Env var· optional
    Datasource provider: postgresql, mysql, sqlite, or clickhouse. Inferred from DATABASE_URL when omitted.
  • VALV_DATABASE
    Env var· optional
    Database name. Required for ClickHouse, whose URL does not carry one.
  • VALV_TABLES
    Env var· optional
    Comma-separated allow-list of tables. When set, only these are exposed to the agent.
  • VALV_EXCLUDE
    Env var· optional
    Comma-separated deny-list of tables, applied after the allow-list.
  • VALV_POLICY_FILE
    Env var· optional
    Path to a policy module that takes full control of access. Without it, the server is read-only across all tables.
Show 2 more
  • VALV_CONTEXT
    Env var· optional
    JSON context object the policy reads, e.g. {"tenant":{"id":"acme"}}.
  • VALV_HTTP_PORT
    Env var· optional
    Serve over Streamable HTTP on this port instead of stdio.

Listed in the official MCP Registry since Jul 28, 2026. Mirrored daily; last checked Nov 26, 2026.