Text-to-SQL access control: schema selection that gives the LLM only the tables the caller is allowed to read. Row-level-security-aware table pruning for LangChain, MCP and any SQL agent. Postgres, Or
schemagate — fewer tokens for text-to-SQL, and only the tables the caller may read
Most text-to-SQL prompts carry the whole schema, and on a big database that is most of the prompt, on every question. schemagate sends the model only the tables the question needs: 91.1% fewer schema tokens (median) on databases with 50+ tables (benchmark). It filters by the caller's grants first, so restricted tables are absent from the prompt rather than ranked low. Works with LangChain, LlamaIndex, MCP, or any SQL agent, on Postgres, Oracle, MySQL, SQL Server and SQLite.
Don't want to run it yourself? schemagate.app is the hosted version. Connect PostgreSQL, MySQL, SQL Server, Oracle or a spreadsheet, invite your team, and everyone asks questions in plain English, each person seeing only the data they're allowed to. Free 7-day trial, no card needed, or pay once with the lifetime deal on AppSumo.
Measured, not drawn: python docs/media/maketokengif.py rebuilds it from the seeded 1,201-object fixture, counting with tiktoken's cl100kbase.
On LiveSQLBench-Large-v1: 2 on the Agent board at 40.21% (schemagate + Claude Code agent, Opus 5.5), reproduced by the BIRD team (leaderboard, run files).
On BIRD's leaderboard: 74.34 execution accuracy on the hidden test set, scored by the BIRD team (leaderboard). On BIRD Mini-Dev it scored SQLite 81.0, PostgreSQL 72.6, MySQL 72.4 with Claude Opus 5.5 and one model call per question, 1 in all three on that board; BIRD has since released an updated Mini-Dev (2026-10-28) and lists those results in its legacy table (run files). On the updated Mini-Dev (202
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/Spemakqy10k--Schemagate.html)
Policy-based SQL firewall for LLM agents and Text-to-SQL. Validates and rewrites generated SQL before execution. Includes a read-only MCP server.
alikarami76/keygraphSchema map for data analyst and text-to-SQL agents: join paths, keys, grain and status codes served to LLM agents over MCP, CLI --json or markdown, plus an offline explorer. MySQL, PostgreSQL, SQLite,
frangelbarrera/code-review-agent-mcpAI code review agent MCP server. Reviews code like a kernel maintainer: blunt, technical, no sugarcoating. Detects bugs + OWASP Top 10 security vulnerabilities. 4 harshness levels. Anti-RLHF.
jersonboydmilan/CapgateCapgate — runtime authority boundary for autonomous AI agents: the agent proposes, the harness authorizes, the executor acts. Deny-by-default policy, non-transitive delegation, tamper-evident audit, M
TeodorMCP/universal-connector-mcpUniversal MCP server: connect any OpenAPI/Swagger, GraphQL, gRPC or SOAP API to AI agents. Security-first, local, token-efficient. Any API. One server.
thaildhe172591/pythiaPL/SQL development for AI agents on Oracle Database - expert queries, impact analysis, and a snapshot-verified write path with honest rollback
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.