Grain SQL MCP Server

Run SQL queries and inspect database schemas through safe, visible MCP tools.

Local serverstdio

What is the Grain SQL MCP Server?

Grain SQL is an MCP integration. Run SQL queries and inspect database schemas through safe, visible MCP tools.

Packages and local setup

The published npm package is grain-tools, version 0.10.31. Its declared MCP transport is stdio.

The package declares 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..

This package has launch arguments in its registry record. Use the maintainer’s configuration for those arguments rather than launching it with only the package name.

Before connecting

Check the maintainer’s instructions for account access, authentication and the supported client configuration. Once connected, inspect the tools your client receives and try a small task that matches the server’s stated purpose. The registry description does not include a verified, complete tool list.

Project and source

View the publisher’s registry entry · Project repository · Project website. This profile uses version 0.10.31 from the registry. Registration identifies the publisher namespace; it does not establish that this is a first-party integration for every service it connects.

Browse related databases MCP servers for tools that cover the same kind of work.

Configuration

VariableDescriptionRequired
GRAIN_CONNECTIONSJSON array of Grain connection profiles for headless use.Check documentation
GRAIN_MCP_SAFE_MODESet to false to allow mutating SQL. Defaults to true.Check documentation
GRAIN_MAX_ROWSMaximum rows returned by query tools. Defaults to 10000.Check documentation