A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"mcp_server_mysql": {
"env": {
"PATH": "/path/to/node/bin:/usr/bin:/bin",
"MYSQL_DB": "db_name",
"MYSQL_SSL": "true",
"MYSQL_HOST": "127.0.0.1",
"MYSQL_PASS": "",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"ENABLE_LOGGING": "true",
"MYSQL_CACHE_TTL": "60000",
"MYSQL_LOG_LEVEL": "info",
"MYSQL_POOL_SIZE": "10",
"MYSQL_RATE_LIMIT": "100",
"MYSQL_QUERY_TIMEOUT": "30000",
"MYSQL_METRICS_ENABLED": "true",
"ALLOW_DELETE_OPERATION": "false",
"ALLOW_INSERT_OPERATION": "false",
"ALLOW_UPDATE_OPERATION": "false",
"MYSQL_MAX_QUERY_COMPLEXITY": "1000"
},
"args": [
"-y",
"@benborla29/mcp-server-mysql"
],
"command": "/path/to/npx/binary/npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
🚀 This is a modified version optimized for Claude Code with SSH tunnel support > Original Author: @benborla29 > Original Repository: https://github.com/benborla/mcp-server-mysql
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y '@benborla29/mcp-server-mysql' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked @benborla29/mcp-server-mysql against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in data
Manage Supabase projects — databases, auth, storage, and edge functions
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
The Apify MCP server enables your AI agents to extract data from social media, search engines, maps, e-commerce sites, or any other website using thousands of ready-made scrapers, crawlers, and automation tools available on the Apify Store.
An official Qdrant Model Context Protocol (MCP) server implementation
MCP Security Weekly
Get CVE alerts and security updates for Mcp Server Mysql and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.