Grain for Zed
io.github.pattrnlabs/grain
Run SQL queries and inspect database schemas through safe, visible MCP tools.
client:Zed
transport:stdio
runtime:npm
Install Grain in Zed
~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json
{
"context_servers": {
"grain": {
"command": "npx",
"args": [
"-y",
"grain-tools"
],
"env": {
"GRAIN_CONNECTIONS": "<GRAIN_CONNECTIONS>",
"GRAIN_MCP_SAFE_MODE": "<GRAIN_MCP_SAFE_MODE>",
"GRAIN_MAX_ROWS": "<GRAIN_MAX_ROWS>"
}
}
}
}
Merge this into your existing settings object — do not replace the file. Zed docs