MCP directory

Grain SQL

by github.com/pattrnlabs · v0.10.53 · updated Nov 19, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • GRAIN_CONNECTIONSsecret

    JSON array of Grain connection profiles for headless use.

  • GRAIN_MCP_SAFE_MODE

    Set to false to allow mutating SQL. Defaults to true.

  • GRAIN_MAX_ROWS

    Maximum rows returned by query tools. Defaults to 10000.

More MCP servers