MCP Server Mysql
by benborla29
Connects AI clients to MySQL for schema inspection and SQL queries, with opt-in writes and configurable database access controls.
Install MCP Server Mysql
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"benborla29-mcp-server-mysql": {
"command": "npx",
"args": [
"-y",
"@benborla29/mcp-server-mysql"
],
"env": {
"MYSQL_HOST": "YOUR_VALUE_HERE",
"MYSQL_PORT": "YOUR_VALUE_HERE",
"MYSQL_USER": "YOUR_VALUE_HERE",
"MYSQL_PASS": "YOUR_VALUE_HERE",
"MYSQL_DB": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
We couldn’t confirm it starts correctly
The install command started, but didn't respond the way we expected when we tried to talk to it.
npx -y @benborla29/mcp-server-mysqlProcess exited after initialize, before tools/list: npm WARN deprecated node-domexception@1.0.0: Use your platform's native DOMException instead npm notice npm notice New major version of npm available! 10.1.0 -> 12.0.2 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v12.0.2> npm notice Run `npm install -g npm@12.0.2` to update! npm notice
This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 1mo ago.
Overview
Use cases
- Query MySQL data from Claude Code
- Inspect tables and columns before generating SQL
- Restrict agents to read-only database access
- Enable selected write operations for controlled workflows
- Query multiple MySQL databases through one MCP connection
Key features
- Read-only SQL access by default
- Schema and column metadata resource
- Opt-in insert, update, and delete permissions
- Multi-database and SSH tunnel support
- PII redaction for query results
- TLS and remote HTTP transport options
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 8d ago via OSV.dev · @benborla29/mcp-server-mysql (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How MCP Server Mysql works
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about MCP Server Mysql
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/benborla29-mcp-server-mysql)<a href="https://allmcps.com/mcp/benborla29-mcp-server-mysql"><img src="https://allmcps.com/api/badge/benborla29-mcp-server-mysql?style=directory" alt="MCP Server Mysql on AllMCPs" /></a>