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.
MCPpedia last refreshed this data
MCP Server MySQL is an MCP server that 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. Its tool list has not been published yet over stdio and http, requires no API key, and scores 92/100 on MCPpedia's security, maintenance and efficiency rubric.
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
Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
DataForSEO API modelcontextprotocol server
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.
Using mcp-server-mysql to let your AI query MySQL? Bloome brings that to your whole team — an AI-agent IM platform where AI agents are members of the chat. Connect your MCP tools and have agents inspect schemas, run queries, and answer data questions for everyone in one thread. Zero local setup, runs in the cloud, on web and mobile.
MCP server that gives Claude and other LLMs access to MySQL — inspect schemas, run queries, and optionally write data, all through the Model Context Protocol.
Claude Code (simplest):
claude mcp add mcp_server_mysql \
-e MYSQL_HOST="127.0.0.1" \
-e MYSQL_PORT="3306" \
-e MYSQL_USER="root" \
-e MYSQL_PASS="your_password" \
-e MYSQL_DB="your_database" \
-- npx @benborla29/mcp-server-mysql
Claude Desktop / other clients:
{
"mcpServers": {
"mcp_server_mysql": {
"command": "npx",
"args": ["-y", "@benborla29/mcp-server-mysql"],
"env": {
"MYSQL_HOST": "127.0.0.1",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASS": "your_password",
"MYSQL_DB": "your_database"
}
}
}
}
All write operations are disabled by default. Enable with ALLOW_INSERT_OPERATION=true, ALLOW_UPDATE_OPERATION=true, ALLOW_DELETE_OPERATION=true.
Tool: mysql_query
Execute SQL queries. Read-only by default. Write operations enabled per flag.
Resources: mysql://tables
Lists all tables and column metadata for the connected database.
PRs welcome at github.com/benborla/mcp-server-mysql.
git clone https://github.com/benborla/mcp-server-mysql.git
pnpm install
pnpm run build
pnpm test
MIT — see LICENSE for details.