mysqldb-mcp-server
5
The mysqldb-mcp-server is a project designed to function as a MySQL database Model Context Protocol (MCP) server. It provides essential tools for database connection and query execution, and supports configuration through environment variables.
mysqldb-mcp-server MCP Server
A MySQL database MCP server project.
Installation
- Install via
uv
:uv pip install mysqldb-mcp-server
- Install via
pip
:pip install mysqldb-mcp-server
Components
- Tools
connect_database
: Connects to a specific MySQL database.execute_query
: Executes MySQL queries and returns results in JSON format.
Configuration
- Environment variables include
MYSQL_HOST
,MYSQL_USER
,MYSQL_PASSWORD
, among others.
Development
- Sync dependencies, build package, and publish using
uv
commands. - Debugging via MCP Inspector.