MCP Mysql
by @abelmferreira
Query, inspect, monitor, and analyze MySQL or MariaDB through MCP with read-only controls and optional SSH tunneling.
Install MCP Mysql
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"abelmferreira-mcp-mysql": {
"command": "npx",
"args": [
"-y",
"@abelmferreira/mcp-mysql"
],
"env": {
"READONLY": "YOUR_VALUE_HERE",
"SQL_CONNECTION_URL": "YOUR_VALUE_HERE",
"SQL_SERVER": "YOUR_VALUE_HERE",
"SQL_DATABASE": "YOUR_VALUE_HERE",
"SQL_USER": "YOUR_VALUE_HERE",
"SQL_PASSWORD": "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
We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.
npx -y @abelmferreira/mcp-mysqlNo response to initialize.
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 .
Overview
Use cases
- Run read-only SQL queries against MySQL or MariaDB
- Inspect tables, columns, views, and indexes
- Diagnose waits, locks, and active database queries
- Review query plans and identify index opportunities
- Reach a private database through an SSH bastion
Key features
- MySQL and MariaDB query execution
- Read-only mode with optional write enablement
- Schema and index exploration
- Performance and wait monitoring
- Query and index analysis
- Built-in SSH tunneling with host-key pinning
Tools17
What MCP Mysql lets your agent do. Expand a tool for its parameters.
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 7d ago via OSV.dev · @abelmferreira/mcp-mysql (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How MCP Mysql works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about MCP 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/abelmferreira-mcp-mysql)<a href="https://allmcps.com/mcp/abelmferreira-mcp-mysql"><img src="https://allmcps.com/api/badge/abelmferreira-mcp-mysql?style=directory" alt="MCP Mysql on AllMCPs" /></a>