Enables LLMs to safely execute database queries via MCP tools, with security features including query restrictions, truncation, and timeout.
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.
process.env. You'll be asked to provide them before it can run.GEMINI_API_KEY— Requires: , OPENAI_API_KEY, or USE_OLLAMA=trueOPENAI_API_KEY— Requires: GEMINI_API_KEY, , or USE_OLLAMA=trueOLLAMA_BASE_URLOLLAMA_MODELUSE_OLLAMA— Requires: GEMINI_API_KEY, OPENAI_API_KEY, or =trueDB_TYPE— ## MySQL Configuration (used when =mysql)QUERY_TIMEOUT_SECONDS— Query Timeout: to prevent slow queries.CONNECT_TIMEOUT_SECONDS— 10 # Connection timeout in secondsSQLITE_DATABASE_PATH— ./sample_data/demo.dbDB_USER— your_database_userDB_PASSWORD— your_database_passwordDB_HOST— your_database_hostDB_NAME— your_database_nameSQLITE_PROGRESS_HANDLER_INTERVAL— Timeout check frequencyENABLE_SCHEMA_TOOLS— 1 # Controls sample() toolENABLE_TABLE_SUMMARY— If 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).LARGE_TABLE_THRESHOLD— 1000 - Threshold for is_large flag.MAX_RESULT_ROWS— Prevent Token Explosion: Result truncation () + Table count limits (MAX_OVERVIEW_TABLES).MAX_RESULT_CHARS— Result Truncation: MAX_RESULT_ROWS / to prevent Token overflow.MAX_SCHEMA_TABLES— 50 # Max tables returned by get_full_schema (0=unlimited)MAX_OVERVIEW_TABLES— Prevent Token Explosion: Result truncation (MAX_RESULT_ROWS) + Table count limits ().ALLOW_UNION— Supports configuration-based policy/prompt injection (e.g., , ALLOWED_TABLES, truncation thresholds), using shorter, more relevant guidance to reduce invalid tool calls.ALLOWED_TABLES— Supports configuration-based policy/prompt injection (e.g., ALLOW_UNION, , truncation thresholds), using shorter, more relevant guidance to reduce invalid tool calls.[](https://m8ven.ai/mcp/firstmeridian-llm-sql-safety-executor-mcp-1pon15)