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.
{
"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"
}
}
}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.
Is it safe?
No known CVEs for @benborla29/mcp-server-mysql.
No authentication — any process on your machine can connect.
MIT. View license →
Is it maintained?
Last commit 24 days ago. 1,466 stars. 6,036 weekly downloads.
Will it work with my client?
Transport: stdio, http. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
Context cost
3 tools. ~200 tokens (0.1% of 200K).
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:
queryExecute SQL queries against the MySQL database
get_schemaRetrieve database schema information including tables and columns
list_databasesList all available databases
This server is missing a description.If you've used it, help the community.
Add informationLast scanned 2h ago
No known vulnerabilities.
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.