MySQL Database▌

by burakdirin
Connect to MySQL databases, execute SQL queries, and get JSON results easily with our simple interface—ideal for MySQL a
Enables direct SQL query execution and database connections to MySQL databases through a simple interface that returns results in JSON format.
best for
- / Database administrators analyzing MySQL data
- / Developers building database-driven applications
- / Data analysts querying MySQL databases
capabilities
- / Execute SELECT queries on MySQL databases
- / Run INSERT, UPDATE, DELETE operations
- / Manage database connections
- / Query database schema and table structure
what it does
Connects AI models to MySQL databases for running queries and managing database operations. Uses environment variables or connection strings for database authentication.
about
MySQL Database is a community-built MCP server published by burakdirin that provides AI assistants with tools and capabilities via the Model Context Protocol. Connect to MySQL databases, execute SQL queries, and get JSON results easily with our simple interface—ideal for MySQL a It is categorized under databases.
how to install
You can install MySQL Database in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
license
MIT
MySQL Database is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
readme
mysqldb-mcp-server MCP server
A MySQL database MCP server project.
Installation
You can install the package using uv:
uv pip install mysqldb-mcp-server
Or using pip:
pip install mysqldb-mcp-server
Components
Tools
The server provides two tools:
-
connect_database: Connects to a specific MySQL databasedatabaseparameter: Name of the database to connect to (string)- Returns a confirmation message when connection is successful
-
execute_query: Executes MySQL queriesqueryparameter: SQL query/queries to execute (string)- Returns query results in JSON format
- Multiple queries can be sent separated by semicolons
Configuration
The server uses the following environment variables:
MYSQL_HOST: MySQL server address (default: "localhost")MYSQL_USER: MySQL username (default: "root")MYSQL_PASSWORD: MySQL password (default: "")MYSQL_DATABASE: Initial database (optional)MYSQL_READONLY: Read-only mode (set to 1/true to enable, default: false)
Quickstart
Installation
Claude Desktop
MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mysqldb-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/Users/burakdirin/Projects/mysqldb-mcp-server",
"run",
"mysqldb-mcp-server"
],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_USER": "root",
"MYSQL_PASSWORD": "password",
"MYSQL_DATABASE": "[optional]",
"MYSQL_READONLY": "true"
}
}
}
}
</details>
<details>
<summary>Published Server Configuration</summary>
{
"mcpServers": {
"mysqldb-mcp-server": {
"command": "uvx",
"args": [
"mysqldb-mcp-server"
],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_USER": "root",
"MYSQL_PASSWORD": "password",
"MYSQL_DATABASE": "[optional]",
"MYSQL_READONLY": "true"
}
}
}
}
</details>
Installing via Smithery
To install MySQL Database Integration Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @burakdirin/mysqldb-mcp-server --client claude
Development
Building and Publishing
To prepare the package for distribution:
- Sync dependencies and update lockfile:
uv sync
- Build package distributions:
uv build
This will create source and wheel distributions in the dist/ directory.
- Publish to PyPI:
uv publish
Note: You'll need to set PyPI credentials via environment variables or command flags:
- Token:
--tokenorUV_PUBLISH_TOKEN - Or username/password:
--username/UV_PUBLISH_USERNAMEand--password/UV_PUBLISH_PASSWORD
Debugging
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via npm with this command:
npx @modelcontextprotocol/inspector uv --directory /Users/burakdirin/Projects/mysqldb-mcp-server run mysqldb-mcp-server
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
FAQ
- What is the MySQL Database MCP server?
- MySQL Database is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for MySQL Database?
- This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
Ratings
4.5★★★★★10 reviews- ★★★★★Shikha Mishra· Oct 10, 2024
MySQL Database is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
- ★★★★★Piyush G· Sep 9, 2024
We evaluated MySQL Database against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Chaitanya Patil· Aug 8, 2024
Useful MCP listing: MySQL Database is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Sakshi Patil· Jul 7, 2024
MySQL Database reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Ganesh Mohane· Jun 6, 2024
I recommend MySQL Database for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Oshnikdeep· May 5, 2024
Strong directory entry: MySQL Database surfaces stars and publisher context so we could sanity-check maintenance before adopting.
- ★★★★★Dhruvi Jain· Apr 4, 2024
MySQL Database has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Rahul Santra· Mar 3, 2024
According to our notes, MySQL Database benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
- ★★★★★Pratham Ware· Feb 2, 2024
We wired MySQL Database into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
- ★★★★★Yash Thakker· Jan 1, 2024
MySQL Database is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.