Basic information
About MySQL Database Explorer MCP Server
Explore MySQL databases securely with read-only access. Execute safeguarded sequel queries and review schemas easily, with built-in protection.
MySQL Database Explorer is a MCP server in the Databases category listed in the AddMCP.net directory, published by dpflucas. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 59 GitHub stars. Source code is hosted on github.com. Related topics: community, database-communication, databases, mcp-server, mysql.
Setup
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": [
"mysql-mcp-server"
],
"env": {
"MYSQL_HOST": "your-mysql-host",
"MYSQL_PORT": "3306",
"MYSQL_USER": "your-mysql-user",
"MYSQL_PASSWORD": "your-mysql-password",
"MYSQL_DATABASE": "your-default-database"
}
}
}
}
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": [
"mysql-mcp-server"
],
"env": {
"MYSQL_HOST": "your-mysql-host",
"MYSQL_PORT": "3306",
"MYSQL_USER": "your-mysql-user",
"MYSQL_PASSWORD": "your-mysql-password",
"MYSQL_DATABASE": "your-default-database"
}
}
}
}
{
"servers": {
"mysql": {
"command": "npx",
"args": [
"mysql-mcp-server"
],
"env": {
"MYSQL_HOST": "your-mysql-host",
"MYSQL_PORT": "3306",
"MYSQL_USER": "your-mysql-user",
"MYSQL_PASSWORD": "your-mysql-password",
"MYSQL_DATABASE": "your-default-database"
}
}
}
}
MySQL Database Explorer MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": [
"mysql-mcp-server"
],
"env": {
"MYSQL_HOST": "your-mysql-host",
"MYSQL_PORT": "3306",
"MYSQL_USER": "your-mysql-user",
"MYSQL_PASSWORD": "your-mysql-password",
"MYSQL_DATABASE": "your-default-database"
}
}
}
}
MySQL Database Explorer MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MySQL Database Explorer?
MySQL MCP Server is a Model Context Protocol (MCP) implementation that enables safe, structured interaction between AI applications (hosts/clients) and MySQL databases. It is designed as a communication protocol component, not a standalone server, to facilitate database exploration and analysis through a controlled interface.
How to use MySQL Database Explorer?
Install via pip (pip install mysql-mcp-server) or automatically via Smithery for Claude Desktop. Configure required environment variables: MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE, and optionally MYSQL_PORT (default 3306). Add the server configuration to your AI client’s settings (e.g., claude_desktop_config.json for Claude Desktop or mcp.json for VS Code). For debugging, use the MCP Inspector instead of running the Python script directly.
Key features of MySQL Database Explorer
- Lists available MySQL tables as resources
- Reads table contents for analysis
- Executes SQL queries with proper error handling
- Secure database access via environment variables
- Comprehensive logging for monitoring
Use cases of MySQL Database Explorer
- AI-powered database exploration and querying
- Controlled data analysis within a safe interface
- Automated database interaction in AI applications
- Secure integration of MySQL with AI assistants
Frequently asked questions
1 Is MySQL MCP Server meant to run standalone?
No, it is designed as a communication protocol implementation between AI applications and MySQL databases, not as a standalone server.
2 What environment variables are required?
You must set MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, and MYSQL_DATABASE. Optionally set MYSQL_PORT (default 3306).
3 How do I install MySQL MCP Server?
Install via pip: pip install mysql-mcp-server. For Claude Desktop, you can also use Smithery: npx -y @smithery/cli install mysql-mcp-server --client claude.
4 What are the security best practices?
Use a dedicated MySQL user with minimal privileges, never use root credentials, restrict access to necessary operations, enable logging, and perform regular security reviews.
5 How can I debug MySQL MCP Server?
Use the MCP Inspector tool. Do not try to run the server as a standalone Python program.
Videos
Tutorials, guides, and showcases related to MySQL Database Explorer MCP Server. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In