Skip to content
Grain SQL logo
MCP server
Registry

Grain SQL MCP Server

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

Grain SQL scores 61 (Good), with no SPDX license recorded and written in Batchfile. It installs as a local process. It does not declare tools yet. Filed under Databases. GitHub shows 3 stars. Package registries report about 415 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by pattrnlabsNo licenseBatchfile3 stars
Trust score
61Good
Trust score 61 of 100, Good

Good trust

61 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • No license recorded.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 61 comes from

22 + 20 + 6 + 0 + 10 + 3 = 61. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity6 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 6 of 20 points.
License0 / 10

A clear, OSI-style open-source license.

License: 0 of 10 points.
Security10 / 10

Not archived, a secure install path, a pinned version.

Security: 10 of 10 points.
Docs3 / 10

A real summary, a README with depth, listed tools.

Docs: 3 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "pattrnlabs-grain": {      "command": "npx",      "args": [        "-y",        "grain-tools@0.10.55"      ],      "env": {        "GRAIN_CONNECTIONS": "YOUR_GRAIN_CONNECTIONS",        "GRAIN_MCP_SAFE_MODE": "",        "GRAIN_MAX_ROWS": ""      }    }  }}

Environment variables

NameRequiredNotes
GRAIN_CONNECTIONSSecretOptionalJSON array of Grain connection profiles for headless use.
GRAIN_MCP_SAFE_MODEOptionalSet to false to allow mutating SQL. Defaults to true.
GRAIN_MAX_ROWSOptionalMaximum rows returned by query tools. Defaults to 10000.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

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

Frequently asked questions

What is Grain SQL MCP Server?

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

How do I install Grain SQL MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Grain SQL MCP Server runs locally from the npm package grain-tools with the command npx -y grain-tools@0.10.55.

Does Grain SQL MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Grain SQL MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is Grain SQL MCP Server's trust score calculated?

Grain SQL MCP Server scores 61 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server