69
/ 100
1 month ago
glama

sql-safety-executor

Enables LLMs to safely execute database queries via MCP tools, with security features including query restrictions, truncation, and timeout.

Is this your MCP?

Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find.

Install from

M8ven verifies MCPs across every public registry — install directly from whichever one you prefer.

// key findings
7 tools verified — handlers match their declared behaviour
7 read-only tools verified — handlers contain no write/delete/exec
No credential exfiltration, no sensitive file access, no obfuscation
Static analysis found nothing flowing your secrets to unexpected places.
Open source with a license and README
Anyone can audit the code, the license is declared, and the publisher documents what it does.
🔐
You'll be asked for 3 credentials: GEMINI_API_KEY, OPENAI_API_KEY, DB_PASSWORD
These are read from process.env at runtime. Make sure you trust where they’ll be sent.
// required environment variables
This server reads these from process.env. You'll be asked to provide them before it can run.
🔐 secretGEMINI_API_KEYRequires: , OPENAI_API_KEY, or USE_OLLAMA=true
🔐 secretOPENAI_API_KEYRequires: GEMINI_API_KEY, , or USE_OLLAMA=true
configOLLAMA_BASE_URL
configOLLAMA_MODEL
configUSE_OLLAMARequires: GEMINI_API_KEY, OPENAI_API_KEY, or =true
configDB_TYPE## MySQL Configuration (used when =mysql)
configQUERY_TIMEOUT_SECONDSQuery Timeout: to prevent slow queries.
configCONNECT_TIMEOUT_SECONDS10 # Connection timeout in seconds
configSQLITE_DATABASE_PATH./sample_data/demo.db
configDB_USERyour_database_user
🔐 secretDB_PASSWORDyour_database_password
configDB_HOSTyour_database_host
configDB_NAMEyour_database_name
configSQLITE_PROGRESS_HANDLER_INTERVALTimeout check frequency
configENABLE_SCHEMA_TOOLS1 # Controls sample() tool
configENABLE_TABLE_SUMMARYIf an exact count is needed, please use SELECT COUNT() ..., or enable =1 and use get_table_summary(exact_count=True) (note that large tables may be slow).
configLARGE_TABLE_THRESHOLD1000 - Threshold for is_large flag.
configMAX_RESULT_ROWSPrevent Token Explosion: Result truncation () + Table count limits (MAX_OVERVIEW_TABLES).
configMAX_RESULT_CHARSResult Truncation: MAX_RESULT_ROWS / to prevent Token overflow.
configMAX_SCHEMA_TABLES50 # Max tables returned by get_full_schema (0=unlimited)
configMAX_OVERVIEW_TABLESPrevent Token Explosion: Result truncation (MAX_RESULT_ROWS) + Table count limits ().
configALLOW_UNIONSupports configuration-based policy/prompt injection (e.g., , ALLOWED_TABLES, truncation thresholds), using shorter, more relevant guidance to reduce invalid tool calls.
configALLOWED_TABLESSupports configuration-based policy/prompt injection (e.g., ALLOW_UNION, , truncation thresholds), using shorter, more relevant guidance to reduce invalid tool calls.
// full audit trail
The full breakdown of what we checked, the deductions that landed, the network hosts, the dependency advisories, and concrete fix guidance is available to verified publishers.
// improvement guidance — verified publishers only
We have 4 concrete improvements we can share with the publisher of this MCP. Each comes with specific guidance to raise the trust score.
// embed badge in your README
[![M8ven Score](https://m8ven.ai/badge/mcp/firstmeridian-llm-sql-safety-executor-mcp-1pon15)](https://m8ven.ai/mcp/firstmeridian-llm-sql-safety-executor-mcp-1pon15)
commit: a3e6926c139f03dbb077ac5125e175f50743ac28
code hash: 40c9afac30c6e53807e3b3e662cbf42cd62c0a3c4c8510a08158f88fa2343dea
verified: 6/23/2026, 10:18:32 AM
view raw JSON →