Agentβ™₯︎Age
Catalog

valv

Official

by valv-dev Β· TypeScript

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

sh.valv/mcp β€” Model Context Protocol (MCP) SQL Reader

The sh.valv/mcp server lets coding agents query a database safely over MCP. It is built on valv, is read-only by default, and uses policy scoping so agents can only access permitted data. The server introspects the live schema once configured with a connection string and exposes four tools.

πŸ› οΈ Key Features

  • Point it at a database URL/connection string
  • Introspects your live schema
  • Provides four MCP tools: list_resources, search_resources, describe_resource, query
  • Read-only by default
  • Enforces policies; access is scoped by your policies

πŸš€ Use Cases

  • Safe, schema-aware database querying by agents
  • Browsing and searching available database resources before querying

⚑ Developer Benefits

  • Avoids sending SQL/code to the model (β€œNo SQL ever reaches the model”)
  • Supports Prisma-backed databases: PostgreSQL, MySQL, SQLite, CockroachDB
  • Supports ClickHouse

⚠️ Limitations

  • Operates read-only by default
  • Limited to the data the configured policies allow