Grain SQL
io.github.pattrnlabs/grain
MCP server Not tested
Run SQL queries and inspect database schemas through safe, visible MCP tools.
Technical sheet
- Author
- pattrnlabs (registry namespace)
- Repository
- github.com/pattrnlabs/grain
- Site
- grain.tools
- Version
- 0.10.53
- Transport
- stdio
- Authentication
- None (declared in the registry)
- Packages
- grain-tools 0.10.53 npm stdio
- Tools
- —
- Categories
- Databases
- Last updated
- 20 Nov 2026
- Published
- 20 Nov 2026
Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded. Latest test not successful: the badge only says “listed”.
[](https://latlas.dev/en/mcp/io.github.pattrnlabs/grain)<a href="https://latlas.dev/en/mcp/io.github.pattrnlabs/grain"><img src="https://latlas.dev/badge/fiche/io.github.pattrnlabs/grain.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
No remote address published: this server runs locally, so we do not test it.
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport not listed | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Local launch of package grain-tools (npm). Formats taken from each client’s documentation.
claude mcp add-json grain '{"command":"npx","args":["-y","[email protected]"]}'{
"mcpServers": {
"grain": {
"command": "npx",
"args": ["-y","[email protected]"]
}
}
}{
"mcpServers": {
"grain": {
"type": "stdio",
"command": "npx",
"args": ["-y","[email protected]"]
}
}
}{
"mcpServers": {
"grain": {
"type": "stdio",
"command": "npx",
"args": ["-y","[email protected]"],
"tools": ["*"]
}
}
}{
"mcpServers": {
"grain": {
"command": "npx",
"args": ["-y","[email protected]"]
}
}
}{
"mcpServers": {
"grain": {
"command": "npx",
"args": ["-y","[email protected]"]
}
}
}[mcp_servers.grain]
command = "npx"
args = ["-y","[email protected]"]Declared environment variables
| Name | Required | Description |
|---|---|---|
| GRAIN_CONNECTIONS | no (secret) | JSON array of Grain connection profiles for headless use. |
| 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. |
Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
[Grain SQL — L’Atlas](https://latlas.dev/en/mcp/io.github.pattrnlabs/grain)Source : Registre officiel MCP · retrieved 30 Nov 2026. L’Atlas adds no data beyond this source and its own tests.