TokenToSeaMCP Hub
中文 Console

MySQL Read-only MCP Server

dpflucas

Gives agents read-only access to MySQL databases to inspect schemas and run queries.

Setup

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

Add to CursorAdd to VS Code

claude mcp add mysql-read-only --env MYSQL_DATABASE='<MYSQL_DATABASE>' --env MYSQL_HOST='<MYSQL_HOST>' --env MYSQL_PASSWORD='<MYSQL_PASSWORD>' --env MYSQL_PORT='<MYSQL_PORT>' --env MYSQL_USER='<MYSQL_USER>' -- npx -y @smithery/cli install @dpflucas/mysql-mcp-server --client claude

Environment variables

  • MYSQL_DATABASE
  • MYSQL_HOST
  • MYSQL_PASSWORD
  • MYSQL_PORT
  • MYSQL_USER

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