TokenToSeaMCP Hub
中文 Console

MySQL MCP

kevinwatt

Gives LLMs read and write access to MySQL databases with transaction support and performance monitoring.

Setup

Choose your client, copy the config, then fill in any required environment variables.

Add to CursorAdd to VS Code

claude mcp add mysql --env MYSQL_HOST='<MYSQL_HOST>' --env MYSQL_PORT='<MYSQL_PORT>' --env MYSQL_USER='<MYSQL_USER>' --env MYSQL_PASS='<MYSQL_PASS>' --env MYSQL_DB='<MYSQL_DB>' -- npx -y @kevinwatt/mysql-mcp

Environment variables

  • MYSQL_HOST
  • MYSQL_PORT
  • MYSQL_USER
  • MYSQL_PASS
  • MYSQL_DB

Replace the placeholders with your own credentials and keep them out of version control.