Grain SQL
Run SQL queries and inspect database schemas through safe, visible MCP tools.
MCP server · by pattrnlabs
About
Grain SQL is an MCP server published by pattrnlabs. Marketplaces we read that list it: 1 (Official MCP Registry). The last change we recorded was on 2026-10-12. As of our marketplace pass on 2026-10-12.
What it asks for
- Runs on your machine
- Secrets: 1
- Settings: 3
Requires: GRAIN_CONNECTIONS (secret)
What it declares, asks for and runs, in full
Only install plugins from developers you trust. We list what marketplaces publish and do not test plugins.
Works with
- Claude Code
- Codex
- Cursor
- VS Code
- Copilot CLI
From the marketplaces that list it and the MCP transport it declares, as each client documents them. We do not test plugins.
Connect
Commands and configs built only from what its marketplaces declare. We do not run them for you and do not test plugins.
As a local MCP server: npm package
Built from what Official MCP Registry declares.
claude mcp add --env "GRAIN_CONNECTIONS=<YOUR_GRAIN_CONNECTIONS>" --transport stdio grain -- npx -y grain-tools
[mcp_servers.grain]
command = "npx"
args = ["-y", "grain-tools"]
[mcp_servers.grain.env]
GRAIN_CONNECTIONS = "<YOUR_GRAIN_CONNECTIONS>"
{
"mcpServers": {
"grain": {
"command": "npx",
"args": [
"-y",
"grain-tools"
],
"env": {
"GRAIN_CONNECTIONS": "<YOUR_GRAIN_CONNECTIONS>"
}
}
}
}
Replace the values in angle brackets with your own. We show the names of the settings, never values.
Optional arguments it also declares: --stdio.
Optional settings it also lists: GRAIN_MAX_ROWS, GRAIN_MCP_SAFE_MODE.
Where it is published
| Marketplace | Status | Version | Figures | Verified | First seen |
|---|---|---|---|---|---|
| Official MCP Registry (Open the registry record) | Listed | 0.10.31 | Forks (GitHub): 1 Stars (GitHub): 3 |
Not marked |
Each figure is the marketplace's own and is never added up across marketplaces. A marketplace that publishes no figure shows none: no number is not zero.
What changed
- Official MCP Registry: released version 0.10.31 (was 0.10.30)
Similar plugins
Products whose own names, descriptions, tools and skills are closest in meaning to this one, on every marketplace we read. Closeness is ranked within this list only.
-
Read-only SQL querying + schema introspection over Postgres & SQLite, with a gated write mode.
-
Run governed SQL queries and inspect database schemas from MCP agents.
-
Execute raw SQL queries against SQL Server, SQLite, PostgreSQL, MySQL, and MariaDB.
-
Lets AI agents query SQL Server, PostgreSQL, MySQL, Oracle and SQLite via the Jam SQL Studio app.
-
Database interaction and business intelligence capabilities.
-
data co.thinair/data
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
-
sixta-connect ai.sixta/sixta-connect
DBRE-grade SQL analysis inside any MCP client. No connection. No install. Paste a query.
-
database ai.haymon/database
Database MCP server for MySQL, MariaDB, PostgreSQL & SQLite
-
mcp-mysql io.github.infoinlet-marketplace/mcp-mysql
Read-only MySQL/MariaDB for AI agents — query, list/describe tables, health. SQL-guarded.
-
Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
Similar plugins by marketplace
The same question asked of one marketplace at a time: is there an analog of this plugin there?
Has a listing on Claude Code: claude-plugins-community (5)
-
Database management tools for Claude Code. Query databases, explore schemas, analyze data quality, and get optimization recommendations. Supports PostgreSQL, MySQL/MariaDB…
-
Connect Claude Code directly to your CockroachDB clusters for hands-on database work — explore schemas, write optimized SQL, debug queries, and manage distributed database…
-
Connect Claude to your ClickHouse Cloud databases. Browse organizations, services, databases, and table schemas. Run read-only SQL queries against your data and get instant…
-
150+ SAP HANA database tools as MCP tools for AI assistants
-
mongodb-mcp-server io.github.mongodb-js/mongodb-mcp-server
MongoDB Model Context Protocol Server
Has a listing on Claude Code: claude-plugins-official (5)
-
Connect Claude Code directly to your CockroachDB clusters for hands-on database work — explore schemas, write optimized SQL, debug queries, and manage distributed database…
-
Connect Claude to your ClickHouse Cloud databases. Browse organizations, services, databases, and table schemas. Run read-only SQL queries against your data and get instant…
-
150+ SAP HANA database tools as MCP tools for AI assistants
-
mongodb-mcp-server io.github.mongodb-js/mongodb-mcp-server
MongoDB Model Context Protocol Server
-
Manage your Neon projects and databases with the neon-postgres agent skill and the Neon MCP Server.
Has a listing on Claude: knowledge-work-plugins (5)
-
Connect Claude Code directly to your CockroachDB clusters for hands-on database work — explore schemas, write optimized SQL, debug queries, and manage distributed database…
-
Connect Claude to your ClickHouse Cloud databases. Browse organizations, services, databases, and table schemas. Run read-only SQL queries against your data and get instant…
-
An authenticated hosted MCP server that accesses your PlanetScale organizations, databases, branches, schema, and Insights data. Query against your data, surface slow queries, and…
-
Prisma MCP integration for Postgres database management, schema migrations, SQL queries, and connection string management. Provision Prisma Postgres databases, run migrations, and…
-
informatica-for-claude-platform
Governed catalog discovery for Informatica Intelligent Data Management Cloud (CDGC): find tables, columns, files, glossary terms and policies across the enterprise catalog, check…
Has a listing on Codex: openai-curated (openai/plugins) (5)
-
Manage Supabase projects directly through ChatGPT. Execute SQL queries on PostgreSQL databases, design and modify table schemas, deploy serverless edge functions, and configure…
-
Available for US1 customers only. Analyze, investigate, and act on your Datadog telemetry directly from ChatGPT using natural language. Ask questions about your production…
-
Bring operational data and context into the flow of your ChatGPT conversations. You can ask questions, create and update records, and analyze your data—all through conversation…
-
Answer product and business questions with data
-
PostHog gives your AI agent direct access to your product analytics, feature flags, experiments, error tracking, surveys, logs, and LLM analytics. Ask questions about your data…
Has a listing on Community GitHub marketplaces (4)
-
Read-only SQL querying + schema introspection over Postgres & SQLite, with a gated write mode.
-
Connect Claude Code directly to your CockroachDB clusters for hands-on database work — explore schemas, write optimized SQL, debug queries, and manage distributed database…
-
Create, connect, and interact with an AlloyDB for PostgreSQL database and data.
-
Create, connect, and interact with an AlloyDB Omni database and data.
Has a listing on Copilot CLI: github/awesome-copilot (5)
-
Database administration, SQL optimization, and data management tools for PostgreSQL, SQL Server, and general database development best practices.
-
Connect GitHub Copilot to your CockroachDB clusters: run and explore SQL through MCP, with DBA/Developer/Operator agents, CockroachDB best-practice skills, and safety hooks that…
-
Explore and query TimeBase streams, schemas, QQL, symbols, and server status via MCP.
-
Build and manage Microsoft Dataverse solutions using natural language. Includes table/column creation, solution lifecycle, data operations, and MCP server configuration.
-
Use Datadog directly in Copilot / VS Code through a preconfigured Datadog MCP server. Query logs, metrics, traces, dashboards, and more through natural conversation.
Has a listing on Copilot CLI: github/copilot-plugins (5)
-
Build Power Apps Canvas Apps using the Canvas Authoring MCP server.
-
model-apps
Build and deploy Power Apps generative pages for model-driven apps with specialist agents for planning, entity creation, and parallel code generation. Requires PAC CLI >= 2.7.0…
-
workiq
Query Microsoft 365 data with natural language — emails, meetings, documents, Teams messages, and more.
-
Toolkit for building Microsoft 365 Copilot declarative agents — scaffolding, JSON manifest development, and capability configuration.
-
mcp-apps
Generate MCP App widgets for MCP tools. Produces self-contained HTML widgets using the MCP Apps protocol.
Has a listing on Cursor: cursor/plugins (5)
-
Explore datasets and tables and run SQL queries.
-
Work with PostHog from chat: query product analytics and run SQL, manage feature flags and experiments, triage error tracking issues, and review session replays, surveys, and…
-
Query, create, and update records in your org.
-
Salesforce (Headless 360, Beta)
Manage records, users, and org setup across Salesforce.
-
Search docs, read pages, and update tables.
Has a listing on Docker MCP Catalog (5)
-
Database interaction and business intelligence capabilities.
-
MCP server for SQLite, PostgreSQL, and MySQL with natural language to SQL and direct SQL tooling.
-
Enable AI agents to manage, monitor, and query CockroachDB using natural language. Perform complex database operations, cluster management, and query execution seamlessly through…
-
Connect to Oracle databases via MCP, providing secure read-only access with support for schema exploration, query execution, and metadata inspection.
-
schemacrawler-ai io.github.schemacrawler/schemacrawler-ai
Enables natural language schema queries — explore tables, keys, procedures, and get SQL help fast
Has a listing on Official MCP Registry (5)
-
Read-only SQL querying + schema introspection over Postgres & SQLite, with a gated write mode.
-
Run governed SQL queries and inspect database schemas from MCP agents.
-
Execute raw SQL queries against SQL Server, SQLite, PostgreSQL, MySQL, and MariaDB.
-
Lets AI agents query SQL Server, PostgreSQL, MySQL, Oracle and SQLite via the Jam SQL Studio app.
-
data co.thinair/data
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
Found by meaning, not by shared code or a shared repository: similar plugins stay separate products, and this is not a review or a recommendation.
Is this your plugin?
Add it to your projects and prove you maintain it with a file in its repository, a file on your domain or a DNS record. You get alerts when a marketplace lists it, drops it, changes its verified mark or what it asks for, and its remote endpoint goes on monitoring as a web service.
Data comes from the Official MCP Registry (registry.modelcontextprotocol.io), CC0 1.0. Figures come from our own regular passes over the marketplaces, last read on . We publish no contact details for plugin publishers.