74
/ 100
1 month ago
glama

MySQL MCP Server

Enables safe querying and optional writing to MySQL databases via MCP tools, with support for schema inspection, connection management, and read-only mode.

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
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 2 credentials: MYSQL_PASSWORD, MYSQL_SSL_KEY
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.
configMCP_AUDIT_LOGread_audit_log MYSQL_MCP_READ_AUDIT_TOOL=true +
configMCP_DEBUG
configMCP_QUERY_RESULT_HINT
configMCP_SCHEMA_OVERVIEW_MAX_TABLESMCP 50 Resource 展开表数上限
configMYSQL_CONNECTION_LIMIT
configMYSQL_CONNECTION_STRING
configMYSQL_DATABASEyour_database
configMYSQL_DATABASE_ALLOWLIST库白名单 限制可见与可切换的库
configMYSQL_HOST连接 / PORT / USER / PASSWORD / DATABASE — 基本连接信息
configMYSQL_MAX_ROWS执行 100 单次最大返回行数
configMYSQL_MAX_SQL_LENGTH执行 102400 单条 SQL 最大长度
configMYSQL_MCP_CONNECTION_ID
configMYSQL_MCP_EXPLAIN_JSONexplain_query 执行计划 + 中文告警;可选
configMYSQL_MCP_EXTRA_CONNECTIONS多连接 — JSON 数组额外 DSN
configMYSQL_MCP_KILL_QUERYkill_query =true(只读模式不可用)
configMYSQL_MCP_OPS_TOOLSprocess_list =true
configMYSQL_MCP_PROCESS_LIST_MAX
configMYSQL_MCP_READ_AUDIT_TOOLread_audit_log =true + MCP_AUDIT_LOG
configMYSQL_MCP_READ_SLOW_LOGread_slow_query_log =true + MYSQL_MCP_SLOW_LOG_PATH
configMYSQL_MCP_SLOW_LOG_PATHread_slow_query_log MYSQL_MCP_READ_SLOW_LOG=true +
configMYSQL_MCP_VALIDATE_EXTRA_CONNECTIONS
🔐 secretMYSQL_PASSWORDyour_password
configMYSQL_PORT"": "3306",
configMYSQL_QUERY_TIMEOUT执行 30000 查询超时(ms)
configMYSQL_QUEUE_LIMIT
configMYSQL_READONLY只读双保险 =true 时工具层拒绝写入 + 连接池 SET SESSION transaction_read_only = 1
configMYSQL_RETRY_COUNT
configMYSQL_RETRY_DELAY_MS
configMYSQL_SSL_CA
configMYSQL_SSL_CERT
🔐 secretMYSQL_SSL_KEY
configMYSQL_TIMEOUT
configMYSQL_URL连接 — mysql:// 连接串,与分项二选一
configMYSQL_USER"": "root",
// 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 5 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/yclenove-mysql-mcp-server-15p9iv)](https://m8ven.ai/mcp/yclenove-mysql-mcp-server-15p9iv)
commit: 50c4e79ef35e7b00f301f82c0034488c6b350fef
code hash: dbdd89a0403c6842988ee41e01def5e34e08da8a822ca176aec892c2255a7c69
verified: 6/10/2026, 11:04:26 AM
view raw JSON →