Official MCP Registry · published 2h ago

schemagate

io.github.ashishsinha1602/schemagate

Identity-scoped schema selection for text-to-SQL. Returns only the tables the caller may read.

Version
1.24.0
Runs
Locally
Packages
pypi
Published
Dec 5, 2026

Get started

Add it to your agent

claude mcp add schemagate -e SCHEMAGATE_DB_TYPE=… -e SCHEMAGATE_DB_TYPE=… -- uvx schemagate-mcp==1.24.0

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Before you start

Environment variables

  • SCHEMAGATE_DB_TYPErequiredDatabase type. 'demo' is a built-in sample database: nothing else to fill in
  • SCHEMAGATE_DB_HOSTHost name or IP. Snowflake: account id. Databricks: workspace host. BigQuery: project id. Empty for demo, SQLite, DuckDB
  • SCHEMAGATE_DB_PORTPort. Empty for the usual one (PostgreSQL 5432, MySQL 3306, SQL Server 1433, Oracle 1521)
  • SCHEMAGATE_DB_USERUser name (a read-only user is best). Databricks: empty
  • SCHEMAGATE_DB_PASSWORDsecretPassword, typed as it is (no URL encoding needed). Databricks: personal access token. Snowflake: password or access token, empty with a key pair
  • SCHEMAGATE_DB_NAMEDatabase name. Oracle: service name or connect string. SQLite/DuckDB: file path. Databricks: catalog or catalog.schema. BigQuery: dataset
  • SCHEMAGATE_DB_CONNECTIONOracle only: the name of a connection saved in SQL Developer for VS Code or SQLcl. Fills host, port, service and user; type its password above
  • SCHEMAGATE_DB_OPTIONSExtra settings as key=value&key=value. Databricks: http_path=/sql/1.0/warehouses/<id>. Snowflake: warehouse=WH&role=R, and private_key_file=/path/key.p8 for key
  • SCHEMAGATE_DATABASE_URLsecretAdvanced: a full SQLAlchemy URL instead of the fields above. Leave empty to use the fields
  • SCHEMAGATE_RESTRICT_FROM_GRANTS1 = show each caller only the tables and columns its database GRANTs allow (the client must send the caller's identity)
  • SCHEMAGATE_DB_TYPErequiredDatabase type. 'demo' is a built-in sample database: nothing else to fill in
  • SCHEMAGATE_DB_HOSTHost name or IP. Snowflake: account id. Databricks: workspace host. BigQuery: project id. Empty for demo, SQLite, DuckDB
  • SCHEMAGATE_DB_PORTPort. Empty for the usual one (PostgreSQL 5432, MySQL 3306, SQL Server 1433, Oracle 1521)
  • SCHEMAGATE_DB_USERUser name (a read-only user is best). Databricks: empty
  • SCHEMAGATE_DB_PASSWORDsecretPassword, typed as it is (no URL encoding needed). Databricks: personal access token. Snowflake: password or access token, empty with a key pair
  • SCHEMAGATE_DB_NAMEDatabase name. Oracle: service name or connect string. SQLite/DuckDB: file path. Databricks: catalog or catalog.schema. BigQuery: dataset
  • SCHEMAGATE_DB_CONNECTIONOracle only: the name of a connection saved in SQL Developer for VS Code or SQLcl. Fills host, port, service and user; type its password above
  • SCHEMAGATE_DB_OPTIONSExtra settings as key=value&key=value. Databricks: http_path=/sql/1.0/warehouses/<id>. Snowflake: warehouse=WH&role=R, and private_key_file=/path/key.p8 for key
  • SCHEMAGATE_DATABASE_URLsecretAdvanced: a full SQLAlchemy URL instead of the fields above. Leave empty to use the fields
  • SCHEMAGATE_RESTRICT_FROM_GRANTS1 = show each caller only the tables and columns its database GRANTs allow (the client must send the caller's identity)