valv MCP Server
by valv-devsh.valv/mcpv0.6.2
Let coding agents query any SQL database safely. Read-only by default and scoped by your policies.
context tax
queued
security
queued
cold start
queued
freshness
Active8d ago
Install valv MCP server
Install in Claude Code
claude mcp add valv-dev -e DATABASE_URL='<database-url>' -- npx -y @valv/mcpInstall in Cursor
{
"mcpServers": {
"valv-dev": {
"command": "npx",
"args": [
"-y",
"@valv/mcp"
],
"env": {
"DATABASE_URL": "<database-url>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"valv-dev": {
"command": "npx",
"args": [
"-y",
"@valv/mcp"
],
"env": {
"DATABASE_URL": "<database-url>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"valv-dev": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@valv/mcp"
],
"env": {
"DATABASE_URL": "<database-url>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"valv-dev": {
"command": "npx",
"args": [
"-y",
"@valv/mcp"
],
"env": {
"DATABASE_URL": "<database-url>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| DATABASE_URL | yes | yes | Database connection string. PostgreSQL, MySQL, SQLite, CockroachDB, or a ClickHouse HTTP URL. |
| VALV_PROVIDER | — | — | Datasource provider: postgresql, mysql, sqlite, or clickhouse. Inferred from DATABASE_URL when omitted. |
| VALV_DATABASE | — | — | Database name. Required for ClickHouse, whose URL does not carry one. |
| VALV_TABLES | — | — | Comma-separated allow-list of tables. When set, only these are exposed to the agent. |
| VALV_EXCLUDE | — | — | Comma-separated deny-list of tables, applied after the allow-list. |
| VALV_POLICY_FILE | — | — | Path to a policy module that takes full control of access. Without it, the server is read-only across all tables. |
| VALV_CONTEXT | — | — | JSON context object the policy reads, e.g. {"tenant":{"id":"acme"}}. |
| VALV_HTTP_PORT | — | — | Serve over Streamable HTTP on this port instead of stdio. |
Freshness
Active — last maintenance signal 8d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-02 · 8d ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-07-28 · 2mo ago · official registry · v0.6.2
FAQ
›How do I install the valv MCP server in Claude Code?
Run: claude mcp add valv-dev -e DATABASE_URL='<database-url>' -- npx -y @valv/mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does valv require an API key?
Yes. It expects DATABASE_URL, of which 1 is a secret.
›Can I use valv as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is valv in the official MCP registry?
Yes, as sh.valv/mcp.
Alternatives to valv
Other database MCP servers.