sql-connector
Skill1 starsChanged 4 days agoMITView on GitHub
Connects to, introspects, and queries multi-engine databases (Microsoft SQL Server, Oracle, PostgreSQL, SQLite, MongoDB, MS Access, MySQL) via the sql-connector TypeScript MCP server. Enforces zero-tolerance safety guardrails preventing DROP TABLE, DELETE * or unbounded updates, and destructive DDL. Use when asked to "query database", "connect to sql server", "query postgres", "query oracle", "inspect database schema", "connect to sqlite", "query mongodb", "connect to ms access", "run safe sql", or "audit sql query safety".
- Deletes or force-pushes
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-orchestratorSkill
- algorithmic-complexity-analyzerSkill
- api-securitySkill
- architectural-planningSkill
- caching-queues-reviewerSkill
- code-reviewerSkill
- csharp-developerSkill
- design-pattern-detectorSkill
- detect-overengineeringSkill
- github-security-scanner-hookSkill
- java-developerSkill
- legacy-code-modernizationSkill
- llm-as-judgeSkill
- load-memorySkill
- nodejs-executorSkill
- playwright-bdd-testerSkill
- powershell-writerSkill
- python-api-writerSkill
- python-developerSkill
- python-linterSkill
- react-developerSkill
- remote-pod-log-analyzerSkill
- save-memorySkill
- scan-halucinated-testsSkill
- scan-repo-readmeSkill
- skill-creatorSkill
- sql-executorSkill
- sync-github-forksSkill
- trace-code-contextSkill
- troubleshoot-and-fixSkill
- typescript-developerSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Every query is filtered through the SQL Connector Firewall before execution:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SQL Connector
Safely inspect database schemas, evaluate query plans, and execute guarded SQL or MongoDB queries across relational and document databases using the sql-connector MCP server.
Architectural Heuristics & Decision Matrix
| Database Engine | Recommended Adapter | Safety Mode Guidance | Primary Use Cases |
| SQLite | Built-in node:sqlite (Node 22+) | read-only (default) or guarded-write | Local testbeds, isolated reproduction fixtures, scratch databases. |
| PostgreSQL | Pure-JS pg adapter | read-only for audits; guarded-write for bounded data updates | Cloud databases, analytical queries, JSONB document querying. |
| SQL Server | Pure-JS tedious (TDS protocol) | read-only with maxRows capping | Enterprise transactional databases, T-SQL queries, stored procedure calls. |
| Oracle | oracledb Thin Client | read-only for inspection; EXPLAIN PLAN for tuning | Enterprise ERP/core systems, PL/SQL queries, data dictionary audits. |
| MongoDB | mongodb driver (MQL) | Structured JSON queries (find, aggregate) | Document stores, nested JSON collections, event streams. |
| MS Access | Windows ACE OLEDB / ODBC | read-only schema and table discovery | Legacy desktop databases (.accdb, .mdb), local file data extraction. |
| MySQL / MariaDB | Pure-JS mysql2 | read-only (default) | Web applications, read replicas, relational queries. |
Zero-Tolerance Safety Guardrails
Every query is filtered through the SQL Connector Firewall before execution:
- Forbidden DDL:
DROP TABLE,DROP DATABASE,TRUNCATE TABLE,ALTER TABLE ... DROPare strictly blocked in all modes. - Forbidden DML:
DELETE *,DELETE FROM tablewithoutWHERE, and tautological clauses (WHERE 1=1,WHERE 'a'='a',WHERE true) are blocked. - Execution Mode: Defaults to
read-only(onlySELECT,EXPLAIN,SHOW,find). Useguarded-writestrictly for boundedINSERT/UPDATE/DELETEwith explicit targets. - Context Protection: Results are capped to
maxRows: 500by default to prevent context window exhaustion.
Modular References
- SQL Connector MCP Reference Guide — Tool specifications, connection strings, firewall rules, and dialect examples.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

