Grain for Claude Code
io.github.pattrnlabs/grain
Run SQL queries and inspect database schemas through safe, visible MCP tools.
client:Claude Code
transport:stdio
runtime:npm
Install Grain in Claude Code
run in your project directory
claude mcp add grain -e GRAIN_CONNECTIONS=<GRAIN_CONNECTIONS> -e GRAIN_MCP_SAFE_MODE=<GRAIN_MCP_SAFE_MODE> -e GRAIN_MAX_ROWS=<GRAIN_MAX_ROWS> -- npx -y grain-tools
Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs