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_CONNECTIONSEnv var· optional· secretJSON array of Grain connection profiles for headless use.GRAIN_MCP_SAFE_MODEEnv var· optionalSet to false to allow mutating SQL. Defaults to true.GRAIN_MAX_ROWSEnv var· optionalMaximum rows returned by query tools. Defaults to 10000.--stdioArgument· optionalRun Grain using stdio transport for local MCP clients.
Links
Listed in the official MCP Registry since Nov 19, 2026. Mirrored daily; last checked Nov 26, 2026.