Schemagate MCP Server

Your text-to-SQL agent picks which tables to show the model before anyone checks what the caller is allowed to read. schemagate does the check first: it filters the schema by the caller's grants, so…

Local serverstdio

What is the Schemagate MCP Server?

schemagate is an MCP project maintained in the ashishsinha1602/schemagate repository. The maintainer describes its purpose as “Your text-to-SQL agent picks which tables to show the model before anyone checks what the caller is allowed to read. schemagate does the check first…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using python. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares SCHEMAGATE_DATABASE_URL. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the Schemagate MCP Server

{
  "mcpServers": {
    "schemagate": {
      "command": "python",
      "args": [
        "-m",
        "schemagate.mcp_server"
      ],
      "env": {
        "SCHEMAGATE_DATABASE_URL": "postgresql://localhost/app"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
SCHEMAGATE_DATABASE_URLDeclared in the maintainer’s client configuration.Check documentation