Grain SQL runs on your own machine — the client starts it, so there is no endpoint to ping. 1 468 installs a week from npm. Last commit 2 Nov 2026.
Run SQL queries and inspect database schemas through safe, visible MCP tools.
Today is the operative word: we check Grain SQL every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add grain -- npx -y grain-tools
{
"mcpServers": {
"grain": {
"command": "npx",
"args": [
"-y",
"grain-tools"
]
}
}
}
[mcp_servers.grain]
command = "npx"
args = ["-y", "grain-tools"]
{
"mcpServers": {
"grain": {
"command": "npx",
"args": [
"-y",
"grain-tools"
]
}
}
}
{
"servers": {
"grain": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"grain-tools"
]
}
}
}
Optional settings from the registry entry, left out of the block above:
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).
Run governed SQL queries and inspect database schemas from MCP agents.
SQLite MCP — query databases, inspect schemas, explain queries, export data.
PostgreSQL MCP — query databases, inspect schemas, explain queries.
Inspect database schemas and execute SQL queries across multiple database providers with LINQ to DB.
Execute SQL and inspect tables, views, schemas and more on a configured database.
WordPress database access via Local by Flywheel. Execute read-only MySQL queries and inspect schema.
Database admin MCP: schema inspection, query optimization for PostgreSQL and MySQL
Database MCP server for schema discovery, comments, and SQL queries.
Answers built from our own checks of this server.