LocalFree

Grain SQL MCP server

pattrnlabs/grain

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

3 GitHub stars1 forks4,748 npm downloads / month

Install Grain SQL in Claude Code

Claude Code
claude mcp add grain-sql -- npx -y grain-tools
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "grain-sql": {
      "command": "npx",
      "args": [
        "-y",
        "grain-tools"
      ]
    }
  }
}

Frequently asked questions

What does the Grain SQL MCP server do?

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

Is the Grain SQL MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does Grain SQL run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add Grain SQL to Claude Code?

Run: claude mcp add grain-sql -- npx -y grain-tools

More databases MCP servers

View all