mcp-mysql-server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_HOSTYesMySQL server host
MYSQL_USERYesMySQL username
MYSQL_DATABASEYesMySQL database name
MYSQL_PASSWORDYesMySQL user's password

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
connect_dbConnect to MySQL database
queryExecute a SELECT query
executeExecute an INSERT, UPDATE, or DELETE query
list_tablesList all tables in the database
describe_tableGet table structure