Grain runs on your own machine — the client starts it, so there is no endpoint to ping. 191 installs a week from npm. Last commit 27 Aug 2026.
Run SQL queries and inspect database schemas through safe, visible MCP tools.
Today is the operative word: we check Grain 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": {
"args": [
"-y",
"grain-tools"
],
"command": "npx"
}
}
}
[mcp_servers.grain]
command = "npx"
args = ["-y", "grain-tools"]
{
"mcpServers": {
"grain": {
"args": [
"-y",
"grain-tools"
],
"command": "npx"
}
}
}
{
"mcpServers": {
"grain": {
"args": [
"-y",
"grain-tools"
],
"command": "npx"
}
}
}
This one needs environment variables set before it will start:
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.).
The author declared them in the registry entry; get the values from the project itself.
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.
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.
Connect to your PostgreSQL database to query data and schemas.
Answers built from our own checks of this server.