Skip to main content

Grain SQL

io.github.pattrnlabs/grain

v0.10.53Updated Nov 19, 2026stdio · npm

Run SQL queries and inspect database schemas through safe, visible MCP tools.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add grain -- npx -y [email protected]

The registry lists extra launch arguments or environment variables for this server that could change what runs. They are left out here; check its repository before adding any.

Configuration

4 settings.

  • GRAIN_CONNECTIONS
    Env var· optional· secret
    JSON array of Grain connection profiles for headless use.
  • GRAIN_MCP_SAFE_MODE
    Env var· optional
    Set to false to allow mutating SQL. Defaults to true.
  • GRAIN_MAX_ROWS
    Env var· optional
    Maximum rows returned by query tools. Defaults to 10000.
  • --stdio
    Argument· optional
    Run Grain using stdio transport for local MCP clients.

Listed in the official MCP Registry since Nov 19, 2026. Mirrored daily; last checked Nov 26, 2026.