mcp-mysql-server

mcp-mysql-server

2

MCP MySQL Server is a flexible server based on Spring AI, designed for executing any SQL commands against configured MySQL databases. It supports multiple datasources and dynamic switching, with extensibility via Groovy scripts.

MCP MySQL Server Overview

  • A Spring AI MCP server that supports executing arbitrary SQL.
  • Environment Requirements: JDK 21 or higher, Maven 3.8.0 or higher, and MySQL 5.7 or higher.
  • Features:
    • Supports executing any SQL statement.
    • Multiple datasource configurations.
    • Dynamic datasource switching.
    • User-defined datasource configuration.
  • Extension Functionality: Supports Groovy script-based extensions configured via extension.yml, allowing dynamic tool invocations at runtime.
  • Data Source Configuration: Default and custom configurations are supported through YAML files.