60
/ 100
1 month ago
glama

MySQL ReadOnly MCP Server

Enables AI assistants to safely query MySQL databases with read-only access, featuring SQL injection protection, connection pooling, and automatic query limits for secure database exploration.

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
🚨
Known vulnerabilities in dependencies: 2 critical, 3 high
Affects packages this MCP installs at runtime. Upgrade or remove the affected dependency.
🔐
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.
// known CVEs in dependencies2 critical3 high2 low

Disclosed vulnerabilities in this server's declared npm dependencies (via OSV). Whether each is reachable depends on the installed versions.

criticalmysql2@3.6.5GHSA-4rch-2fh8-94vw

MySQL2 for Node Arbitrary Code Injection

criticalmysql2@3.6.5GHSA-fpw7-j2hg-69v5

mysql2 Remote Code Execution (RCE) via the readCodeFor function

high@modelcontextprotocol/sdk@1.0.0GHSA-8r9q-7v3j-jr4g

Anthropic's MCP TypeScript SDK has a ReDoS vulnerability

high@modelcontextprotocol/sdk@1.0.0GHSA-w48q-cv73-mx4w

Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default

highmysql2@3.6.5GHSA-pmh2-wpjm-fj45

mysql2 vulnerable to Prototype Pollution

Depend on this server? Get alerted when its CVEs change.Watch this server free →
// required environment variables
This server reads these from process.env. You'll be asked to provide them before it can run.
configMYSQL_DATABASEyour_database_name
configMYSQL_HOST"": "localhost",
🔐 secretMYSQL_PASSWORDyour_mysql_password
configMYSQL_PORT"": "3306",
configMYSQL_SSL_CA=path/to/ca.pem
configMYSQL_SSL_CERT=path/to/cert.pem
🔐 secretMYSQL_SSL_KEY=path/to/key.pem
configMYSQL_SSL_REJECT_UNAUTHORIZED❌ true 是否拒绝未授权的 SSL 证书
configMYSQL_USERyour_mysql_username
// 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 1 concrete improvement 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/zhaojw-php-mysql-readonly-mcp-bpxjo4)](https://m8ven.ai/mcp/zhaojw-php-mysql-readonly-mcp-bpxjo4)
commit: 045abdba8e9e03d8fca396d85ac96448e4bb5b21
code hash: 72a7c64629a5b07c5fbce516535467ad6c7fdbb35631da772108244dc4f501fb
verified: 6/26/2026, 9:50:17 AM
view raw JSON →