Spemakqy10k / Schemagate
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, Oracle, MySQL, SQL Server. 75% fewer prompt tokens.
ActiveLast commit yesterday4 contributors in 90 daysApache-2.0 licence, allows business use
- Maintenance
- Active
- Last commit yesterday
- Stars
- 38
- On GitHub
- Licence
- Apache-2.0
- Allows business use
- Downloads for
- None listed
- No release files
- Latest version
- None yet
- No releases
- Built with
- Python
- 80% of the code
What it does
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.
Get started
pip install schemagateIs it looked after?
- Contributors
- 4
- Last 90 days
- Issues
- 0% closed
- 2 still open
- Pull requests
- 1 merged
- 1 waiting
- Releases
- None
- Never published
Similar repos
| Repo | Stars | Last commit | Licence | Downloads for |
|---|---|---|---|---|
| ashishsinha1602 / schemagate | 127 | yesterday | Apache-2.0 | No downloads |
| agno-agi / dash | 2,280 | 4 months ago | Apache-2.0 | No downloads |
| boxed-dev / cognidb | 215 | 4 months ago | MIT | No downloads |
| sao-coding / locus | 185 | today | AGPL-3.0 | Windows |
| tidydesigns / tidy | 101 | 16 days ago | Apache-2.0 | No downloads |
| QuackbackIO / quackback | 377 | yesterday | AGPL-3.0 | No downloads |
More: languages, topics and project record
Languages
- Python 80%
- HTML 19%
- Shell 1%
- HCL 1%
Topics
- database
- llm
- mcp
- security
- text-to-sql
Project record
- JobOther AI tools
- StatusNew to our list
- Commits467
- Forks12
- Watching3
- CreatedDec 1, 2026
- First seen by usDec 2, 2026
- CheckedDec 2, 2026




