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_URLEnv var· required· secretDatabase connection string. PostgreSQL, MySQL, SQLite, CockroachDB, or a ClickHouse HTTP URL.VALV_PROVIDEREnv var· optionalDatasource provider: postgresql, mysql, sqlite, or clickhouse. Inferred from DATABASE_URL when omitted.VALV_DATABASEEnv var· optionalDatabase name. Required for ClickHouse, whose URL does not carry one.VALV_TABLESEnv var· optionalComma-separated allow-list of tables. When set, only these are exposed to the agent.VALV_EXCLUDEEnv var· optionalComma-separated deny-list of tables, applied after the allow-list.VALV_POLICY_FILEEnv var· optionalPath to a policy module that takes full control of access. Without it, the server is read-only across all tables.
Show 2 moreShow fewer
VALV_CONTEXTEnv var· optionalJSON context object the policy reads, e.g. {"tenant":{"id":"acme"}}.VALV_HTTP_PORTEnv var· optionalServe over Streamable HTTP on this port instead of stdio.
Links
Listed in the official MCP Registry since Jul 28, 2026. Mirrored daily; last checked Nov 26, 2026.