mysql-mcp-server logo

mysql-mcp-server

by MCP-Mirror

MCP MySQL Server is a server application for MySQL database operations based on MCP (Model Context Protocol). This server provides tools that allow AI models to interact with the MySQL database.

View on GitHub

Last updated: N/A

What is mysql-mcp-server?

MCP MySQL Server is a server application for MySQL database operations based on MCP (Model Context Protocol). It provides tools for AI models to interact with a MySQL database.

How to use mysql-mcp-server?

The server can be run using Docker, Docker Compose, or directly with Python. Configuration involves setting up database connection information and MCP port. Tools can be added by implementing the logic in execute functions and registering them with the @tool decorator.

Key features of mysql-mcp-server

  • Database interaction for AI models

  • Supports creating, describing, explaining, inserting, selecting, and showing tables

  • Containerized deployment via Docker and Docker Compose

  • Uses MCP for AI communication

Use cases of mysql-mcp-server

  • Enabling AI models to query and analyze data in MySQL databases

  • Automating database tasks through AI-driven tools

  • Generating data analysis reports using AI

  • Providing a secure and controlled interface for AI to interact with databases

FAQ from mysql-mcp-server

What is MCP?

MCP (Model Context Protocol) is a protocol for AI models to interact with external systems.

What databases are supported?

Currently, only MySQL 8.0 is supported.

How do I add a new tool?

Implement the tool's logic in the executors directory, register it using the @tool decorator, and import it in mysql_mcp_server/executors/__init__.py.

What are the deployment options?

The server can be deployed using Docker, Docker Compose, or directly with Python.

What is the purpose of the .env file?

The .env file is used to manage environment variables, such as database credentials and port numbers.