Identity-scoped schema selection for text-to-SQL. Returns only the tables the caller may read.
unavailable — runtime listed as `python`; console command name not stated
Python
uvx schemagate
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"schemagate": {
"command": "uvx",
"args": [
"schemagate"
],
"env": {
"SCHEMAGATE_DATABASE_URL": "<YOUR_SCHEMAGATE_DATABASE_URL>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env SCHEMAGATE_DATABASE_URL=<YOUR_SCHEMAGATE_DATABASE_URL> schemagate -- uvx schemagate
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"schemagate": {
"command": "uvx",
"args": [
"schemagate"
],
"env": {
"SCHEMAGATE_DATABASE_URL": "<YOUR_SCHEMAGATE_DATABASE_URL>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"schemagate": {
"command": "uvx",
"args": [
"schemagate"
],
"env": {
"SCHEMAGATE_DATABASE_URL": "<YOUR_SCHEMAGATE_DATABASE_URL>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"schemagate": {
"command": "uvx",
"args": [
"schemagate"
],
"env": {
"SCHEMAGATE_DATABASE_URL": "<YOUR_SCHEMAGATE_DATABASE_URL>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
SCHEMAGATE_DATABASE_URL required secret — SQLAlchemy URL of the database to reflect, or 'demo' for the bundled schemaSCHEMAGATE_CATALOG_CONFIG — Optional path to a JSON file with roles, hints and shadow-name overrides⭐ 103 stars · 最近更新于 29 天前 · Apache-2.0 license
schemagate — text to SQL access control at schema selection 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 restricted tables are absent from the pro…
Summary from the project README — github.com/ashishsinha1602/schemagate
Distributed as Python, listed under Databases. Review our MCP security guide before granting access to real data.
schemagate — text to SQL access control at schema selection 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 restricted tables are absent from the pro
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/ashishsinha1602/schemagate. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/schemagate/)
HTML
<a href="https://mcpnav.net/server/schemagate/"><img src="https://mcpnav.net/badge/schemagate.svg" alt="Listed on MCPNav" height="20"></a>