Grain SQL
io.github.pattrnlabs/grain ยท version 0.10.49
Community listing. Not installed or verified by cosmic-mcp. Read the source and its permissions before you run it.
Run SQL queries and inspect database schemas through safe, visible MCP tools.
https://github.com/pattrnlabs/grainQuick facts
- Listing: Community
- Published Nov 4, 22:57 UTC
- Transport: stdio
- Package: npm
grain-tools0.10.49 - Listed by cosmic-mcp: Nov 9, 04:26 UTC
Details
- Repository: https://github.com/pattrnlabs/grain
- npm: https://www.npmjs.com/package/grain-tools
- Website: https://grain.tools
- Needs settings:
GRAIN_CONNECTIONSGRAIN_MCP_SAFE_MODEGRAIN_MAX_ROWS
Setup snippets
Generated from the registry entry. cosmic-mcp has not run or reviewed this server; values in angle brackets are yours to fill in.
Run it locally (npm)
npx -y '[email protected]'Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"grain": {
"args": [
"-y",
"[email protected]"
],
"command": "npx",
"env": {
"GRAIN_CONNECTIONS": "<your grain connections>",
"GRAIN_MAX_ROWS": "<your grain max rows>",
"GRAIN_MCP_SAFE_MODE": "<your grain mcp safe mode>"
}
}
}
}Claude Code
claude mcp add 'grain' -- npx -y '[email protected]'Cursor (.cursor/mcp.json)
{
"mcpServers": {
"grain": {
"args": [
"-y",
"[email protected]"
],
"command": "npx",
"env": {
"GRAIN_CONNECTIONS": "<your grain connections>",
"GRAIN_MAX_ROWS": "<your grain max rows>",
"GRAIN_MCP_SAFE_MODE": "<your grain mcp safe mode>"
}
}
}
}VS Code (.vscode/mcp.json)
{
"servers": {
"grain": {
"args": [
"-y",
"[email protected]"
],
"command": "npx",
"env": {
"GRAIN_CONNECTIONS": "<your grain connections>",
"GRAIN_MAX_ROWS": "<your grain max rows>",
"GRAIN_MCP_SAFE_MODE": "<your grain mcp safe mode>"
},
"type": "stdio"
}
}
}Related servers
- spotdb Verified domain
Ephemeral data sandbox for AI workflows with guardrails and security - Reasonbook Verified domain
Reasonbook: decisions that survive the session, in a local record AI agents keep. - AI for Database Verified domain
Ask your databases questions in plain English, run read-only SQL and set up data alerts. - AI2SQL Verified domain
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema - AICasePredict Verified domain
Search a large legal database of 325M+ US court records: cases, attorneys, judges and courts. - APC Security Reference Server
Reference MCP server for synthetic APC action-security evaluation and local SQLite sandbox testin...