Skip to content
Grok

valv for Grok

sh.valv/mcp

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

client:Grok transport:stdio runtime:npm

Install valv in Grok

.mcp.json (in your project root)

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>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

valv in other clients