Skip to contentGrain SQL MCP Server — Install for Claude, Cursor & VS Code | MCPpedia
Grain SQL MCP Server
Run SQL queries and inspect database schemas through safe, visible MCP tools.
55FairInstall
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"pattrnlabs-grain": {
"command": "npx",
"args": [
"-y",
"grain-tools@0.10.34"
],
"env": {
"GRAIN_CONNECTIONS": "YOUR_GRAIN_CONNECTIONS",
"GRAIN_MCP_SAFE_MODE": "",
"GRAIN_MAX_ROWS": ""
}
}
}
}
Related servers

MCP server for interacting with the Supabase platform
Environment
| Name | Required | Notes |
|---|
| GRAIN_CONNECTIONS | No | JSON array of Grain connection profiles for headless use. Secret. |
| GRAIN_MCP_SAFE_MODE | No | Set to false to allow mutating SQL. Defaults to true. |
| GRAIN_MAX_ROWS | No | Maximum rows returned by query tools. Defaults to 10000. |
Tools show up when the registry metadata or the repository README lists them. GitHub enrichment fills this in when a token is configured.
About
Run SQL queries and inspect database schemas through safe, visible MCP tools.
FAQ
- What is Grain SQL?
- Run SQL queries and inspect database schemas through safe, visible MCP tools.
- How do I install Grain SQL?
- Pick a client above and copy the generated config. Cursor and VS Code also have a deep link when the server can run locally or remotely.
- Is Grain SQL official?
- No. Registry-listed is not the same as vendor-official. Read the methodology for the difference.
- How is the trust score calculated?
- This listing scores 55 (Fair). The formula is published on the methodology page.
Reviews
0 published · no average
Sign in to review this server.
61
Good
SSH server management for agents, with per-server read-only and allowlist security modes

MCP Toolbox for Databases enables your agent to connect to your database.
ZAgent memory: working, episodic, semantic, procedural and core layers. Local SQLite, no account.
RNatural language interface designed for agentic applications to manage and search data in Redis.
HMake your agent's memory work like a brain. Hippo is long-term memory for coding agents.