PluginBench
MCP Server
Active

Grain MCP Server

io.github.pattrnlabs/grain

What is the Grain MCP server?

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

How to install Grain

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • GRAIN_CONNECTIONS
    secret

    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.

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "grain": {
      "command": "npx",
      "args": [
        "-y",
        "grain-tools",
        "-y",
        "--stdio"
      ],
      "env": {
        "GRAIN_CONNECTIONS": "<YOUR_GRAIN_CONNECTIONS>",
        "GRAIN_MCP_SAFE_MODE": "<YOUR_GRAIN_MCP_SAFE_MODE>",
        "GRAIN_MAX_ROWS": "<YOUR_GRAIN_MAX_ROWS>"
      }
    }
  }
}

Related MCP servers

Turn a YouTube channel into a webhook: a signed HTTP POST seconds after every new video.

0
JavaScript
MIT
View repository →

Free, agent-first social-post metrics — a post URL in, views/likes/comments out.

1
JavaScript
View repository →

Proprietary B2B creator-velocity data: ranked board, live breakouts, and audience-growth curves.

View repository →

Web search for AI agents — 5 tools: search, news, images, scrape, research. x402/USDC or API key.

2
JavaScript
MIT
View repository →

Ask "Are you on Trust Switch?" before your agent deals with another agent. Free. Never blocks.

0
Python
MIT
View repository →

Local-first planning and document management layer for AI assistants—no cloud, no subscriptions.

10
TypeScript
MIT
View repository →