MCP Hub › Databases & Data › Grain SQL
Grain SQL MCP server
by pattrnlabs · io.github.pattrnlabs/grain
Run SQL queries and inspect database schemas through safe, visible MCP tools.
How to install Grain SQL
npm
claude mcp add grain -- npx -y [email protected]
Or add it to your MCP config (Claude Desktop, Cursor, VS Code):
{
"mcpServers": {
"grain": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Environment variables:GRAIN_CONNECTIONS – JSON array of Grain connection profiles for headless use.GRAIN_MCP_SAFE_MODE – Set to false to allow mutating SQL. Defaults to true.GRAIN_MAX_ROWS – Maximum rows returned by query tools. Defaults to 10000.
Replace placeholders in <angle brackets> with your own values. Review what a server can access before you enable it.
Details
- Version
- 0.10.49
- Published
- 2026-11-04
- Updated
- 2026-11-04
- Namespace
- io.github.pattrnlabs
- Source
- pattrnlabs/grain
Similar databases & data servers
- DataLinkMCP server for secure database access (PostgreSQL, MySQL, SQLite)
- Magic CloudGenerate secured CRUD APIs over your database, run SQL, manage…
- OSS Snowflake MCP ServerMCP Server for Snowflake from Snowflake Labs
- DB MCP ServerDatabase MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with…
- Dot (getdot.ai): AI Data AnalystAI data analyst by getdot.ai. Ask your data warehouse in plain…
- GrovsManage deep links, attribution, analytics, and campaigns on Grovs —…
- HubTub Pulse: YouTube AnalyticsYour YouTube channels’ private analytics for AI assistants: revenue,…
- KoogaAI marketing for businesses: SEO content, AI visibility, email…