Skip to content
Cursor

valv for Cursor

sh.valv/mcp

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

client:Cursor transport:stdio runtime:npm

Install valv in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@valv/mcp"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "VALV_PROVIDER": "<VALV_PROVIDER>",
        "VALV_DATABASE": "<VALV_DATABASE>",
        "VALV_TABLES": "<VALV_TABLES>",
        "VALV_EXCLUDE": "<VALV_EXCLUDE>",
        "VALV_POLICY_FILE": "<VALV_POLICY_FILE>",
        "VALV_CONTEXT": "<VALV_CONTEXT>",
        "VALV_HTTP_PORT": "<VALV_HTTP_PORT>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

valv in other clients