MySQL MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_HOSTYesThe hostname of the MySQL server.
MYSQL_USERYesThe username for connecting to the MySQL database.
MYSQL_DATABASEYesThe name of the MySQL database to connect to.
MYSQL_PASSWORDYesThe password for connecting to the MySQL database.

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
execute_sqlExecute an SQL query on the MySQL server